so the parameters are:color, x,y,z
Code: Select all
GU_INDEX_16BIT|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D
so the parameters should be:nx, ny,nz, color, x,y,z
Code: Select all
GU_INDEX_16BIT|GU_NORMAL_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D
u,v,nx, ny,nz, color, x,y,z
Code: Select all
GU_INDEX_16BIT|GU_UV|GU_NORMAL_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D
the struct (code for the last one) is this:
Code: Select all
class Vertex3dbV4 {
public:
float u, v; // UV-texture
float nx,ny,nz; // normals
unsigned int color;// AABBGGRR
float x,y,z;
};
cause something must be wrong...
loads the model correct, but puts random colors to the mesh, no shading..
greets
lumo