PDA

View Full Version : Lighting



dutchstud
02-14-2002, 01:14 PM
No matter what i do with my lighting, all the sides of my cube always look the same color. do i need something like normals or something, or is my light wrong or what?

02-14-2002, 01:28 PM
Yes you do need to specify the normals. Also you might have to change the attributes of your lighting



Originally posted by dutchstud:
No matter what i do with my lighting, all the sides of my cube always look the same color. do i need something like normals or something, or is my light wrong or what?

dutchstud
02-14-2002, 02:24 PM
is there a simple way to do this? or do i have to go through some big calculation that i found for every face on my cube?

chowe6685
02-14-2002, 05:35 PM
if your cube is axis aligned the normals should be quite simple, but for larger meshes, if you are storing them in some sort of structure you can quite easily use the cross product to calculate all the normals