Sign in to follow this  
Ashaman73

Environment maps in dark environments

Recommended Posts

Ashaman73    13715

I'm struggeling with environment maps in dark environments and want to know if there might be some tricks to reduce its artifacts.

 

The issue is, that in dark environments surfaces will not receive any standard diffuse/specular light, only the light source indepedent environment map will light them up, making it clearly visible, especially in HDR rendering (low key value). Using proper light probes will limit the effect, but my game is often very dark and very dynamic when it comes down to light sources and level topology.

 

This effect can be observed in other games too, e.g. L4D2 where certain guns uses env-maps in dark areas.

 

Any ideas ?

Share this post


Link to post
Share on other sites
MJP    19754

One thing some games do is they will "normalize" their reflection probes by dividing all texels by the intensity of the brightest texel. Then at run time they will multiply the reflection map value by the intensity of the baked diffuse lighting (usually either light maps or SH environment probes). This helps the probes "fit in" better with varying lighting conditions, especially if your probes are sparse.

You can also potentially make your reflections a lot better in all conditions by pre-baking some AO. This can be especially useful if you're using a fresnel term, since it tends to produce a rim-lighting-esque effect on meshes if you don't apply any visibility to the sampled reflections.

Edited by MJP

Share this post


Link to post
Share on other sites
Ashaman73    13715

[quote name='MJP' timestamp='1358206350' post='5021610']
Then at run time they will multiply the reflection map value by the intensity of the baked diffuse lighting (usually either light maps or SH environment probes).
[/quote]

I've no light maps or similar available, but I thought about using the light intensity to adjust the power of  the env-map. The disadvantage is, that I need to apply it after the lighting passes are completed, this is an additional fullscreen pass + reading of the material buffer (stencil buffer is of no use here due to the material management).

 

[quote name='MJP' timestamp='1358206350' post='5021610']
You can also potentially make your reflections a lot better in all conditions by pre-baking some AO. This can be especially useful if you're using a fresnel term, since it tends to produce a rim-lighting-esque effect on meshes if you don't apply any visibility to the sampled reflections.
[/quote]

I often use pre-baked AO to reduce the env-map effect in darker areas of the mesh, fresnel is although installed, still HDR and env-maps are tricky and hard to tweak (in bright parts of the map you almost don't see the effect, in dark partsit is almost glowing).

 

I will test out your first sugguestion, thx for the feedback.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this