Archived

This topic is now archived and is closed to further replies.

Genearting Tangent Space...

This topic is 5508 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Dear all, I noticed on alot of the nVidia code demos(including the ones for cg), that tangent space is generated on cpu instead of on gpu, then passed to the card. In fact, I only saw one demo with them doing it on card? Why? Is there something I didn''t get that makes it not good to do it on the gpu? Thanks, Jesse www.laeuchli.com/jesse/

Share this post


Link to post
Share on other sites
Well, for static models calculating the tangent space matrix/vectors can be done as a pre-processing stage. This matrix is then used at run time to convert the light direction vector into tangent space, which can be done either on the CPU or GPU (using a vert prog). I suspect alot of the demos do the world to tangent space calcs on the CPU for ease of reading in the code, and more than likely so more people can run the demos. I think there are more cards out there that have dot3 capabilities than vert prog funtionality.

Share this post


Link to post
Share on other sites