Sign in to follow this  

multiple uv coords in .x file?

Recommended Posts

hey guys I want to single-pass multitexture a .x mesh using a different set of uv coordinates than that mesh defines. the goal of this is to eliminate the illusion of tiling. how could i go about drawing my second texture this way? i don't see how =/ is there a better way to multitexture? -Sean

Share this post

Link to post
Share on other sites
I had the same problem when i was working with lightmaps...create another vertex definition that includes the secondary uv channel, something like this:

struct VERT
D3DVECTOR normal;
float u, v;
float u2, v2;


then clone your mesh using this fvf and fill the texture coords :)

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