Sign in to follow this  
bengaltgrs

.X file Normal Mapping

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this