The simulation of light and illumination in games, including its interaction with the environment. A core element of games that can bring out vivacity into otherwise static worlds.

learn more… | top users | synonyms

5
votes
3answers
3k views

How do I fix this weird lighting problem?

I'm making a small game in Unity, and some models are displaying very ugly shading. The shading usually looks funky along the edges between triangles. I'm pretty new to working in 3D; I bet this is ...
6
votes
1answer
265 views

Is there any difference between storing textures and baked lighting for environment meshes?

I assume that when texturing environments, one or several textures will be used, and the UVs of the environment geometry will likely overlap on these textures, so that e.g. a tiling brick texture can ...
1
vote
2answers
2k views

why specular light is not running?

i'm on JOGL this is my method for lighting: private void lights(GL gl) { float[] LightPos = {0.0f, 0.0f, -1.0f, 1.0f}; float[] LightAmb = {0.2f, 0.2f, 0.2f, 1.0f}; float[] LightDif = ...
8
votes
4answers
655 views

I need help with 3d shading/lighting

How do you guys handle shading in a 3d game? I have a directional light source that shades one side of a tree made of cubes. The remaining 3 sides all get ambient shading only. So the 3d effect is ...
1
vote
2answers
689 views

Getting a black scene with XNA, what am I doing wrong?

I'm new to XNA (ver 4) and I'm obviously doing something wrong but I don't know what. So far I have managed to model my scene (quite simple, just a bunch of squares which are calculated--there are no ...
9
votes
3answers
2k views

Lighting in a Minecraftian World

Minecraft is a game that is largely based on a heightmap and uses that heigtmap information to flood the world with light. From my understanding the highest point in the heightmap is the end of the ...
4
votes
2answers
1k views

Blending 2d images to subtract alpha

I'm looking into doing a 2d lighting system with a result similar to this: http://forums.tigsource.com/index.php?topic=15619.0 This thread I believe disregards color, as well as doesn't really list a ...
3
votes
1answer
542 views

How to create a simple “spot light” effect with Sdl or Sdl.Net?

i'm wondering: how to create a simple "car headlight" (for i.e) or a torch spotlight in Sdl or Sdl.NET ? Does anyone know how ? Thanks
2
votes
2answers
2k views

2D Real-Time shadows on level on a level made from a Dynamic Bitmap

The Bitmap has transparency, and only non-transparent pixels are solid and used for hit detection for the physics engine and gameplay. I have seen some versions done with convex hulls, but for ...
44
votes
4answers
18k views

How is 2D lighting implemented?

I am wondering what the best way to approach a "lighting" effect in 2D games is. For instance, if my main character is glowing, what techniques can I use to complete the visual effect of the character ...
4
votes
2answers
1k views

Lighting Objects with Textures - OpenGL

I'm trying to get lighting effects on a textured object; I'm using .obj and .mtl files to define them. No matter what I try my object is either invisible, unlit (plain texture), or completely white. ...