forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sceGumArray Question

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Sat Sep 17, 2005 5:22 pm    Post subject: sceGumArray Question Reply with quote

I'm trying to render but I see a distorted model. I know the model is ok, and I checked the verts and indicies and they look fine. Can someone just peek at this code and see if you see anything obvious:

sceGumDrawArray(GU_TRIANGLES,GU_TEXTURE_32BITF|GU_VERTEX_32BITF|GU_INDEX_16BIT|GU_TRANSFORM_3D,count*3,&indBuff[start],&vertBuff[0]);

indBuff is unsigned short array, start is currently 0, cause theirs only 1 mesh.

vertBuff is 5 floats, 2 UV, 3 (XYZ). I checked and they are correct from the model.

count is the number of faces, so I do *3 to get the number of verticies

Now, keep in mind, I am using the same code to load verts from a file and it renders fine in directx, so I know I'm reading them fine. Just with this GU I dont see all of the model, its distorted. Any ideas?

Jeff.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group