• Register

War of the Voxels is an upcoming free first person shooter. The world is completely destructible, and either randomly generated or custom-made maps can be loaded.

Post news Report RSS New Lighting

The lighting system in War of the Voxels has been drastically improved! Take a look at the lighting in action.

Posted by on

Previously, all lighting was calculated on the GPU by simply using the normals of the terrain. Although this was fast, it caused many surfaces to look dull and unvaried. Also, it didn't take into account occlusion of surfaces; if you were underground, it wouldn't be any darker than if you were above ground.

With the new lighting system, this has all changed! Occlusion is taken into account, giving the terrain much more richer tones and making the terrain much more realistic. And the best part -- all this comes at little to no extra performance cost compared to the previous version, thanks to some optimizations!

Take a look!

GPU Lighting Only (current version):

CPU Lighting Only:

CPU + GPU Lighting:

GPU Lighting Only (current version):

CPU Lighting Only:

CPU + GPU Lighting:

As you can see, there are still some bugs (sudden jump to dark), but those are being worked on. Let us know what you think!

Post comment Comments
hogsy
hogsy - - 619 comments

Can't really see any visual difference between your CPU lighting and CPU+GPU lighting.

Reply Good karma Bad karma+1 vote
Expack
Expack - - 312 comments

Indeed. I also wonder why the CPU handles ambient occlusion in this case instead of the GPU, which is what traditionally handles ambient occlusion.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,337 comments

I'm guessing it's not *real* ambient occlusion. Rather, vertices in the corners are simply tinted darker, and the other vertices are not tinted, and the GPU interpolates these colors producing the appearance of ambient occlusion. This is pretty standard in Minecraft-style engines and is generally a LOT faster than real SSAO and can be done on limited platforms (like phones) whereas SSAO can only be done on mid-to-high-end GFX cards.

Reply Good karma Bad karma+1 vote
Gresh1234
Gresh1234 - - 326 comments

"Arrrrghh!" Says the GPU!

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: