Hey everyone
I have a question about the vertex data sort.
tranditional method always sort the vertex data by
first vertex:Pos,Normal,Tex.......
decond vertex:Pos,Normal,Tex.......
third vertex:Pos,Normal,Tex.......
then store all vertex into a struct like
struct vtxData{ PosData pos;NorData nor;TexData tex; };
then we can create a buffer respond how many vertices we have
like this vtxData l_vtxData = new vtxData[vtxCount];
so the buffer should like this
pos,nor,tex,pos,nor,tex,pos,nor,tex,pos,nor,tex,pos,nor,tex,pos,nor,tex.....
Can I sort vetex data by
pos,pos,pos,nor,nor,nor,tex,tex,tex
if I changed the data sort as above,when I draw the vertices
have any things I should to change?
like pd3dDevice->CreateInputLayoutor or else?
by the way the DX10 Nov SDK have already remove the XFile support(rmxfguid.h and rmxftmpl.h)
so I thought maybe we have to load mesh by self(It's too bad /__\)
I detected the Collada :) and thought it's nice
have any sample that DX10 using collada loading model?
I am trying to using FCollada to load file and reference Nvidia's DX10 sample "smoke",
but it's too diffcult to me lol
thanks any advice