Ive made some pyramids and i want to add light, but i have to find the normals. I know what a normal is, but how do i find it? For a cube, it would be pretty easy. But the pyramids triangles have a slant to them. Is there some program that will find it for me? Or is there some formula?
You use a cross product.
I found this, which explains it reasonably well:
http://www.gamedev.net/reference/articles/article1682.asp
I hope you can survive some C++ code!
I found this, which explains it reasonably well:
http://www.gamedev.net/reference/articles/article1682.asp
I hope you can survive some C++ code!
Never forget the boards search function, theres a wealth of information here. :)
Calculating Normals
Calculating Normals