Jump to content
  • Advertisement
Sign in to follow this  
bengaltgrs

.X file Normal Mapping

This topic is 4744 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

I know that a mesh requires 2 sets of texture coordinates for bump mapping or normal mapping to work, but a .X file only has 1 set. Would it be possible to export a .X file from 3ds max with 2 sets of texture coordinates or manually go through the .X file and add a second set of texture coordinates? Or would it be a better idea to write a small program that just runs through a .X file and creates an FVF? -Chris

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by bengaltgrs
I know that a mesh requires 2 sets of texture coordinates for bump mapping or normal mapping to work, but a .X file only has 1 set. Would it be possible to export a .X file from 3ds max with 2 sets of texture coordinates or manually go through the .X file and add a second set of texture coordinates? Or would it be a better idea to write a small program that just runs through a .X file and creates an FVF?

-Chris


The Max .X file exporter included in recent DirectX SDK updates exports normals, tangents and binormals information if they are present in Max (which calculates them for you in Max7).

Alternatively, you can use the D3DXComputeTangentFrame* functions to compute the necessary coordinate frames.

Hope this helps,

Paul Bleisch

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!