I've added all the parts that i thought i needed to get it to render, but when i compile with all this stuff, i get a black screen.
Here is the stuff ive added:
i changed my vertex to have the weights:
Code: Select all
typedef struct pspVertex {
float weights[8];
float u,v;
unsigned int color;
float nx, ny, nz;
float x,y,z;
};
I added this small section right before i call sceGuDrawArray to setup the bones
Code: Select all
ScePspFMatrix4 mat[8];
for (int i=0; i<8; i++)
{
gumLoadIdentity(&mat[i]);
sceGuBoneMatrix(i, &mat[i]);
sceGuMorphWeight(i, 1.0f );
}
Code: Select all
sceGumDrawArray(GU_POINTS, GU_WEIGHTS(8)|GU_WEIGHT_32BITF|GU_TEXTURE_32BITF|GU_VERTEX_32BITF|GU_NORMAL_32BITF|GU_COLOR_8888|GU_TRANSFORM_3D,
meshes[x].numVertices, 0, meshes[x].vertices);