• Advertisement
Sign in to follow this  

point Light,directional light...

This topic is 1355 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How to set lights for 3d models?, problem is , i set point light in cameraposition, when ever i revolve the camera object doesn't look good it becomes more artificial(like darker in one side and brighter in another side),and when i use directional lighting its so brighter objects becomes white how to reduce the intensity of the directional light..?and  how do i do some good real 3d lighting ..!! suggest me some tutorials or send me some links for that...! 

Share this post


Link to post
Share on other sites
Advertisement

Could you give more details:

1. What graphics API are you using (OpenGL,DirectX, other) ?

2. Do you have some screenshots ? (you know, pictures tell more than 1000 words).

3. Do you have some code sniplet to demonstrate how you setup your lighting ?

Share this post


Link to post
Share on other sites

If you use pixel shader you can reduce the light intensity using a factor value who is mul at the end of lighting equation :

LightIntensity * LightColor * (NdotL + SpecFactor)

About the dark zone, the result depends on your attenuation factor, the equation now become :

LightIntensity * LightColor * (NdotL + SpecFactor) * Attenuation

You can use smooth-step interpolation using Begin and End params to have easy setup.

If you have a light who is near of a plane surface, the light will not bounce like the real world.

To achieve that you have to write a Global Illumination real time or generated, using generated, you will have to not move the light.

If you are new in the world of lighting equation, I suggest you to not try to achieve Global Illumination (GI) before you understand lighting.

Edited by Alundra

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement