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.
41
votes
4answers
13k 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 ...
3
votes
3answers
694 views
How can I change this isometric engine to make it so that you could distinguish between blocks that are on different planes?
I have been working on an isometric minecraft-esque game engine for a strategy game I plan on making. As you can see, it really needs some sort of shading. It is difficult to distinguish between ...
10
votes
3answers
1k views
Can I achieve a torchlight effect (lighter area around a light source) in a 2D game?
I am thinking of writing myself a simple 2D game. It will not shine with perfect graphics or gameplay at first, but I'd consider it my first step in PC game development. So, imagine such simple ...
3
votes
2answers
392 views
2D lighting theory: day-and-night cycle, spot lights at night
I am writing a rogue-like 'zombie' management game. The game map will be similar to Prison Architect. A top-down 50 X 50 grid.
I want to implemented a day night cycle and during the night I would ...
0
votes
4answers
198 views
Opengl lighting not working
I have rendered a spinning model in LWJGL. I have calculated normals and enabled lighting. Now I make a light:
float lightpos[] = {0, 0, 0, 0};
FloatBuffer lightposb = ...
15
votes
3answers
2k views
How can I create a lighting effect like this?
This is the most beautiful 2d lighting I have ever seen, and I'd like to perform lighting like this too. How do I do it?
I don't care about the physics or how the particles are simulated - I only ...
11
votes
2answers
3k views
How can I implement lighting in a voxel engine?
I am creating the MC like terrain engine, and I have thought that lighting would make it look a whole lot nicer.The problem is that the blocks are not being lit properly when a block which emits light ...
12
votes
4answers
2k views
How can I implement voxel-based lighting with occlusion in a Minecraft-style game?
I am using C# and XNA. My current algorithm for lighting is a recursive method. However, it is expensive, to the point where one 8x128x8 chunk calculated every 5 seconds.
Are there other lighting ...
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 ...
6
votes
2answers
597 views
Rendering collections of light sources
I have a small test environment where small point lights are scattered. Players should able to collect them.
The collectible lights are rendered using a simple billboard technique where two triangles ...
4
votes
1answer
758 views
How does Minecraft render its sunset and sky?
In Minecraft, the sunset looks really beautiful and I've always wanted to know how they do it.
Do they use several skyboxes rendered over eachother? That is, one for the sky (which can turn dark and ...
5
votes
1answer
928 views
Fast pixelshader 2D raytracing
I'd like to do a simple 2D shadow calculation algorithm by rendering my environment into a texture, and then use raytracing to determine what pixels of the texture are not visible to the point light ...
2
votes
1answer
252 views
Has anyone got the Krypton Lighting Engine working in MonoGame for Windows 8?
I've converted the core of the Krypton Lighting Engine so that it's compatible with Windows 8.
The trouble I'm having when actually using it is that it can't load the KryptonEffect.xnb file. I'm ...
3
votes
1answer
1k views
Can't get LWJGL lighting to work
I'm trying to enable lighting in lwjgl according to the method described by NeHe and this post. However, no matter what I try, all faces of my shapes always receive the same amount of light, or, in ...
1
vote
2answers
623 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 ...