Sign in to follow this  
huaner

how to bright some area of the scene

Recommended Posts

Hi: the requirement of artist is some area is brighter than other area. the whole scene has a direct light to light world; the diffuse of sun light is white, so l don't know how to rectity the light. then, i change the color operation. this way can resolve some situation. but, if the texture is nearly white, the result is that the color is exploded.so, which way can reslove this question? add a another light? i just use the fixed pipeline. thanks

Share this post


Link to post
Share on other sites
Normal 8-bit (0-255) rendering has always had problems with saturation so adding more light or making an area brighter will often cause the image to be 'washed out' and very pale/bright.

One simple option is to reduce the ambient lighting (setting it to D3DCOLOR_XRGB(255,255,255) effectively disables fixed-function lighting) so that existing or additional lights have more influence.

Another more complex option is to use additive blending, either during initial rendering or as some sort of post-processing operator masked out by the stencil buffer.

hth
Jack

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