Skip to main content
GameDev.net gamedev.net
🔒 Locked

Bumpmapping matrices

Started by _Madman_ May 14, 2003 at 1:27 AM 0 replies 200+ views
Original Post
_Madman_
_Madman_
When I want to do bumpmapping, I need base texture & normal map. I guess I''ll be creating normal map with nvidias tool. So now I have normals per pixel in texture space & light in world space. In order to get light to texture space I must get texture space matrix. So next step is I multiply light vector with inverse modelview matrix, then multiply it with texture matrix. The texture matrix for quad can be built by taking edge vectors, normalizing them and using cross product to get normal. And In moving environment I must take in account that Eye vector should be transfomed same way. Is that''s the right way? ______________________________ Madman
______Madman

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.