Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

put the point light in the back, why the triangle still has the color

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 tcige   Members   

206
Like
0Likes
Like

Posted 12 April 2013 - 12:21 AM

diffuse light has been blocked, but the ambient light still has

 

in reality, it should be almost black, how can i do that



#2 MaxDZ8   Members   

5007
Like
0Likes
Like

Posted 12 April 2013 - 01:45 AM

If there is ambient light, it will be applied. Turn off ambient. If ambient is already off, check your normals. If normals are ok, check normal and light transform.


Previously "Krohm"


#3 tcige   Members   

206
Like
0Likes
Like

Posted 12 April 2013 - 02:20 AM

If there is ambient light, it will be applied. Turn off ambient. If ambient is already off, check your normals. If normals are ok, check normal and light transform.

 

yeah, it's the problem of ambient

 

if i want to keep the ambient part of light and material, can the front triangle be black?



#4 MaxDZ8   Members   

5007
Like
2Likes
Like

Posted 12 April 2013 - 02:30 AM

No. Ambient is a pure +.

If ambient is (25, 32, 48), those numbers will be added to all shaded pixels with no distance or orientation attenuation. See Mathematics of lighting. Note

 

Global Illumination = Ambient Light + Diffuse Light + Specular Light + Emissive Light

 

Also see Ambient Lighting. Ambient light is "constant" light.


Previously "Krohm"


#5 tcige   Members   

206
Like
0Likes
Like

Posted 12 April 2013 - 02:36 AM

No. Ambient is a pure +.

If ambient is (25, 32, 48), those numbers will be added to all shaded pixels with no distance or orientation attenuation. See Mathematics of lighting. Note

 

Global Illumination = Ambient Light + Diffuse Light + Specular Light + Emissive Light

 

Also see Ambient Lighting. Ambient light is "constant" light.

 

thanks a lot






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.