Archived

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

yyh

Light Map problem

Recommended Posts

My problem is The Org Texture have a UV sets(a UV coords) The Light Map Texture have a different UV sets(a different UV coords) I use m_pd3dDevice->DrawIndexedPrimitive(Direct3D) render once for the Org Texture, but I cannot render the Light Map Texture with Mulit Texture, because the Light Map Texture have a different UV coords, My question is : Is i need to use the m_pd3dDevice->DrawIndexedPrimitive to render again of the Light Map Texture, I thing this is stupid because I need to render the model twice by use the m_pd3dDevice->DrawIndexedPrimitive

Share this post


Link to post
Share on other sites
Yup you either need to make two passes or use multitexturing (you supply two sets of coordinates, not sure how this works in Direct3D so you''ll have to look it up, you might need to modify your vertex buffer structures).

Share this post


Link to post
Share on other sites