Sign in to follow this  
Weng

How to make a lamp post light up?

Recommended Posts

Hi, I have created a lamp post which is supposed to light up at night. It is made up of a cylinder(the base) and a sphere. How do I create the effect of the lamp post lighting up at night? I placed a light source at the position of the sphere and adjusted the diffuse values. But the entire scene is lighted up instead. I also tried using emissive materials for the sphere but it did not have the "lighting up" effect.

Share this post


Link to post
Share on other sites
When you create a light, one of the functions takes a parameter that points to four values. If you want a positional light, the last value is 1 and the other three values are the position of the light. If the last value is 0, then it means the light is directional and the other 3 values are a light-vector.

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