Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [graphics]

A very generic term referring to visual part of a game. Try to avoid unrelevant usage and instead tag for specific graphics type (2D, 3D), API, framework or a library you are using, if possible.

Filter by
Sorted by
Tagged with
27 votes
3 answers
8k views

What does the graphics card do with the fourth element of a vector as the final position?

From this question it appears you would want a four-element position vector, as it is simpler to modify its position with matrix multiplication. On its own this would imply the fourth element should ...
sebf's user avatar
  • 2,664
56 votes
7 answers
80k views

How can I draw outlines around 3D models?

How can I draw outlines around 3D models? I'm referring to something like the effects in a recent Pokemon game, which appear to have a single-pixel outline around them:
mystic portal's user avatar
5 votes
2 answers
4k views

What's the difference between Alpha and PreMulAlpha?

I've seen videos comparing the two but it looks like there's no difference and they don't explain what's the difference
HoloWiseWolfMPP's user avatar
10 votes
5 answers
16k views

Graphics for non-Graphics Designers [closed]

Are there resources for programmers with little to no graphics design talent, but still want to make good-enough graphics for their own programs? I'm interested in both 2d and 3d computer generated ...
zmdat's user avatar
  • 615
10 votes
1 answer
30k views

The view matrix finally explained

I must say that I am really confused by how a view matrix is constructed and works. First, there are 3 terms: view matrix, lookat matrix, and camera transformation matrix. Are those 3 the same, or ...
Raouf's user avatar
  • 103
76 votes
5 answers
59k views

Which image format is more memory-efficient: PNG, JPEG, or GIF?

Which image format is more efficient to save memory? PNG, JPEG, or GIF?
Tredecies Nocturne's user avatar
25 votes
9 answers
19k views

Tips and Tools for creating Spritesheet animations

I am looking for a tool that I can use to create sprite sheet easily. Right now I am using Illustrator, but I can never get the center of the character in the exact position, so it looks like it is ...
Spooks's user avatar
  • 2,965
19 votes
2 answers
6k views

How are physics or graphics components typically built in a component-oriented system?

I have spent the last 48 hours reading up on Object Component systems, and feel I am ready enough to start implementing it. I got the base Object and Component classes created, but now that I need to ...
Aidan Knight's user avatar
16 votes
6 answers
5k views

How can I improve or replace my programmer art? [closed]

Say I'm a programmer who has done his own sprites or 3d models which would fall into programmer-ish kind of art. What steps can I take in order to improve or replace my own art?
Spoike's user avatar
  • 1,461
10 votes
3 answers
7k views

What is the name of the perspective style of games like Final Fantasy 6, Chrono Trigger or Alundra?

What is the actual term for the 'top-down' style of the Super Nintendo games such as Final Fantasy 6, Chrono Trigger, et cetera. I'm looking for the equivalent term of: 'isometric' - (Jaggered ...
Chris's user avatar
  • 516
6 votes
4 answers
8k views

Which Side Was Hit?

I am working on an Android game and I have two objects A and B (both rectangles) and when they collide I simply want to know which side of B was hit. I have detected the collision fine, but I am ...
Alex_Hyzer_Kenoyer's user avatar
67 votes
8 answers
30k views

Where to start with game development? [closed]

I asked this earlier in this thread at stackoverflow.com. One of the early comments redirected me here to gamedev.stackexchange.com, so I'm reposting here. Searching for related questions I found a ...
65 votes
6 answers
145k views

What is ambient occlusion?

I've heard about ambient occlusion and it looks nice, but what exactly is it?
Dr. Snoopy's user avatar
  • 5,105
32 votes
3 answers
89k views

Moving an object in a circular path

I want to move one object (dot) in a circular path. How should I change the X and Y coordinates to accomplish this?
Ganapathy C's user avatar
25 votes
11 answers
16k views

Do I really need to use a graphics API?

Is it necessary to use graphics APIs to get hardware acceleration in a 3D game? To what degree is it possible to free of dependencies to graphics-card APIs like OpenGL, DirectX, CUDA, OpenCL or ...
Rubayet Bijoy's user avatar
9 votes
3 answers
7k views

Any interesting thesis topic? [closed]

I study Computer Science at Technical University of Lodz (in Poland) with Computer Game and Simulation Technology specialization. I'm going to defend BSc thesis next year and I was wondering what ...
38 votes
7 answers
26k views

About floating point precision and why do we still use it

Floating point has always been troublesome for precision on large worlds. This article explains behind-the-scenes and offers the obvious alternative - fixed point numbers. Some facts are really ...
system_is_b0rken's user avatar
37 votes
1 answer
10k views

Rendering SVG art directly in XNA

Suppose I have a bunch of 2D art in some vectorized format such as SVG. Is there an easy-ish way to render that directly without having to implement a full SVG renderer myself? Of course I could ...
drxzcl's user avatar
  • 1,799
30 votes
5 answers
3k views

24-Bit Colordepth not enough?

I noticed that in very soft gradients, the 24-Bit colordepth is not enough as you can see the transitions of the color. This pops out the most in dark scenes or night skies. Why doesn't anybody ...
RenX's user avatar
  • 707
27 votes
4 answers
29k views

Bezier curve arc length

See also: same question on Math.SE How can I find the arclength of a Bezier curve? For example, a linear Bezier curve has the length: ...
Mateen Ulhaq's user avatar
19 votes
8 answers
8k views

What all should be happening during the "Loading" screen?

Do I just need to be creating instances of all of my graphics into memory that are loaded from file? What is the best way to handle this? Do I just need some sort of assets manager that creates ...
Bryan Denny's user avatar
  • 5,103
15 votes
3 answers
11k views

How do I scale down pixel art?

There are plenty of algorithms to scale up pixel art. (I prefer hqx, personally.) But are there any notable algorithms to scale it down? My game is designed to run at a resolution of ...
Michael Stum's user avatar
  • 2,543
12 votes
5 answers
6k views

High Performance Vector Graphics Solutions [closed]

I'm looking for a high performance vector graphics library I can use in my games. I'm thinking along the lines of vector graphics such as those that can be made with SVG. I'll consider any language ...
CiscoIPPhone's user avatar
  • 5,268
9 votes
2 answers
5k views

How to handle pixel-perfect collision detection with rotation?

Does anyone have any ideas how to go about achieving rotational pixel-perfect collision detection with Bitmaps in Android? Or in general for that matter? I have pixel arrays currently but I don't know ...
DRiFTy's user avatar
  • 576
4 votes
1 answer
1k views

How to program a cutting tool for 3D model in game

I'm looking for a resource to figure out how to program a function to cut a 3d model in game. Example: Enemy/NPC is sliced into 2 pieces with a sword. His body is not hollow, you can see bloody ...
Jesse S's user avatar
  • 41
3 votes
5 answers
9k views

SDL zooming/upscaling without images becoming blurry?

I'm working on a game with 32px tiles and I have one question regarding this and scaling. When I try to see my game fullscreen my image just becomes blurry. I remember playing NES games and when the ...
Lisandro Vaccaro's user avatar
3 votes
2 answers
1k views

Making Edges of Hand-Drawn Tileset Match Up

I'm making a tile-based platformer. A friend at college is doing all my art, and so far it's beautifully hand-drawn. The problem is, I can't seem to make the edges of the tilesets match up. He ...
Caleb P's user avatar
  • 33
2 votes
2 answers
1k views

How do I make a progress bar with letters that get "filled in"?

I want to make a progress bar made of text! I have two images: One with the text in gray, the other coloured: As my game is loading, I want the letters to "fill up" with color: They would start ...
Alex_Hyzer_Kenoyer's user avatar
0 votes
0 answers
545 views

Landscape mode for game?

TL;DR: I have made 8 new layouts for each activity layout, but they are not showing up. For example, I have a layout-land directory with a layout, but that layout ...
Ruchir Baronia's user avatar
0 votes
1 answer
672 views

How do I detect how much of an object has been "cleaned" by the player?

I want to let the player wipe some dust off of a book, then start a short animation. Here's what it looks like: I'm using a clipping region on the "dusty" book bitmap image to progressively hide the ...
user42196's user avatar
114 votes
7 answers
257k views

How do I get started making Android games? [closed]

I am new to game development. I am interested in developing 2D games for the Android platform. What is the best place to start with (i.e) What are the basics and how to proceed? I already have ...
63 votes
5 answers
74k views

What are normal, tangent and binormal vectors and how are they used?

I would like to find out the following information: What are they? Example usage in game development (the area they are used in) About the following vector types: ...
Jaanus Varus's user avatar
47 votes
12 answers
16k views

How can people recognize what engine a game uses, based off its graphics?

With many games, you can say "oh, that's the Unreal Engine, for sure", or "this was made with an upgraded Rockstar Advanced Engine". We can often recognize the engine used for a game just by looking ...
Bart van Heukelom's user avatar
43 votes
3 answers
12k views

What is the purpose of the stencil buffer ? More precisely, what is a stencil in computer graphics?

I read the stencil word a lot, and I don't have a clue what is its real purpose in computer graphics. Seeing the picture in black and white on wikipedia, I'm still having problem with it. Why do we ...
jokoon's user avatar
  • 5,253
36 votes
4 answers
38k views

What's the difference between mesh and a model?

Which one is created first? For example if a team worked on a graphical asset of a car, what would be a model and what would be a mesh of the car?
BleakCabalist's user avatar
34 votes
10 answers
8k views

What makes a game look "good"? [closed]

I am working on a 3D space game using OpenGL and C++ and I am planning to focus on giving the game modern, eye-catching graphics, but the more I think of it the more I realise I don't really know what ...
toficofi's user avatar
  • 657
33 votes
3 answers
19k views

How can I make a good-looking explosion particle effect?

I'm not much of an artist, but I'm trying to make decent particle effects in a 2.5D game. I'm making a replica of Wii Play's "Tanks" and I can't quite get the explosions to look good. I'm not going ...
Tesserex's user avatar
  • 2,294
32 votes
7 answers
10k views

Why do games ask for screen resolution instead of automatically fitting the window size?

It seems to me that it would be more logical, reusable and user-friendly to implement flexible, responsive UI layout over a 3d or 2d screen, which can then be run on any screen resolution. Some ...
user44900's user avatar
  • 321
30 votes
3 answers
17k views

How can I make this style of 2D "glowing" graphics?

I'm comfortable with the basics of building a 2d sprite based game in XNA, where all my objects are simply .png images that I move around. What things do I need to learn next to be able to develop a ...
TerryB's user avatar
  • 1,273
30 votes
4 answers
32k views

How can a programmer learn to draw 2D assets? [closed]

Are there any good tutorials for someone who wants to create 2D graphical game assets? Drawing classes for absolute beginners, preferably teaching skills that can be as relevant as possible to games - ...
Zaky German's user avatar
  • 1,136
29 votes
4 answers
76k views

How can I include vertex color information in .OBJ files?

The .obj files I export are missing data for vertex colors. Is there a way to include color information in the .obj file? If not, what are the alternatives?
Mina Wissa's user avatar
28 votes
5 answers
21k views

Why is Y up in many Games?

I learned at school that the z-axis is up. It is the same in modeling software like Blender. However in many games the y-axis is up. What is the reason?
danijar's user avatar
  • 5,731
23 votes
3 answers
4k views

Are there 3D projections other than orthographic and perspective? [closed]

The question is pretty much in the title. Are there notable 3D projections other than orthographic and perspective that could be used in a 3D system such as OpenGL? In particular, are there any that ...
Joey Eremondi's user avatar
19 votes
1 answer
3k views

Rendering oily/polluted water?

Any shader wizards out there have an idea of how to achieve an oily/polluted water effect, similar to this: Ideally, the water would not be uniformly oily, but instead the oil could be generated from ...
Robert Fraser's user avatar
17 votes
2 answers
18k views

OpenGL: VBO or glBegin() + glEnd()?

I recently was given this link to a tutorial site from someone who I gave the original OGL Redbook to. The third header down says distinctly to forget glBegin() & glEnd() as the typical render ...
S. Fitzgerald's user avatar
15 votes
1 answer
23k views

How can I easily create cloud texture maps?

I am making 3d planets in my game; these will be viewed as "globes". Some of them will need cloud layers. I looked at various Blender tutorials for creating "earth", and for their cloud layers they ...
EdwardTeach's user avatar
15 votes
5 answers
7k views

Where do I start if I want to independently learn game graphic design? [closed]

I want to learn how to create custom graphics, not use freely available resources. But I have been looking around for articles or tutorials on how to start with 2D game design in general, and I can't ...
Kenji Kina's user avatar
13 votes
2 answers
7k views

Realistic metal shader

How do you create a good metal shader? For different metals and say more or less eroded / rusty and so on. I know that one difference from ordinary materials is that metal should 'colour' the ...
Valmond's user avatar
  • 2,454
11 votes
3 answers
7k views

Animation in OpenGL using 3D Models

I have created a model in Blender. Now i want to read that 3D model in my c++ program. I figured that a model can be exported to various file formats e.g. .obj, .3ds or COLLADA and then can be read in ...
snape's user avatar
  • 709
10 votes
3 answers
6k views

Where to hire graphic designers for mobile games?

I need to find someone talented to create a series of 2D graphics a la cart for my mobile games. My graphics are just not impressive enough, but the game play is solid and fun. This is sort of a ...
Ben Mc's user avatar
  • 201