Sign in to follow this  
dartainiar

List of problem : Create 3d Model's UV Atlas

Recommended Posts

dartainiar    122
I use triangle list to implement my 3d model datastructure.
struct CUSTOMVERTEX
{
    D3DXVECTOR3 position; 
    D3DXVECTOR3 normal;   
};

struct 3DMODEL{
    UINT numTriangle;
    CUSTOMVERTEX* vertexlist;
};

1.how do I transfer my model to ID3DXMesh ? 2.how do I generate a texture atlas by using D3DXUVAtlasPartition ,D3DXUVAtlasPack and D3DXUVAtlasCreate these three function?If my texture is a bitmap. 3.In the description of function D3DXUVAtlasPartition.The parameter "pFacePartitioning [out] A pointer to an array of the final face-partioning data. Each element contains one DWORD per face " what's that mean?Does it mean that a face data of three vertex triangle compressed in a DWORD?

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