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 

Polygon rednering problem

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



Joined: 19 Oct 2005
Posts: 6

PostPosted: Wed Oct 19, 2005 8:25 pm    Post subject: Polygon rednering problem Reply with quote

I have encounter 3 problem

where can u get a detail explaination of the psp hardware and doc on the pspdev?

1) vertex data format

Is there a fix order in which the data is of the vertex should be?
for example UV come freist then vertex color then normal then vertex position

2) I am loading a file which i exported from 3dmax . I create a memeory for the verteices and copy the file data into the memory area i created

then i draw the vertex array

however i found that not all the array will appear and it take sometime for all the triangle to appear.

sometime it only appear after i press home then cancel to go back to the game . why is this so? is there some special timing for memeory issue i shoudl consider?

thanks
Back to top
View user's profile Send private message
memon



Joined: 03 Oct 2005
Posts: 63

PostPosted: Wed Oct 19, 2005 11:20 pm    Post subject: Reply with quote

The pspgu.h header file is good place to checkout that kind of stuff. The vertex ordering info is also available at the wiki (http://wiki.ps2dev.org/psp:ge_vertex_format) The order is:

* Vertex order:
* [for vertices(1-8)]
* [texture uv]
* [weights (0-8)]
* [color]
* [normal]
* [vertex]
* [/for]

The 'for' stuff means that you can define vertex with multiple values and blend between them using the hardware.

I would guess that the second problem is about cache. You need to either write to uncached address when creating the vertex array, or flush the data chache after you have finished creating the vertex array. Search back a little this forum and you will find that this is the usual solution to any flickering not not appearing problems :) I hope this info eventually finds its way to the wiki, as it is usually the first weird thing to think about when coming from pc platform.
Back to top
View user's profile Send private message
jsgf



Joined: 12 Jul 2005
Posts: 254

PostPosted: Thu Oct 20, 2005 4:30 am    Post subject: Reply with quote

The cache document is at http://goop.org/psp/cache-howto.html. I'll put it on the wiki when I get the chance, but it seems to be down right now.
Back to top
View user's profile Send private message Visit poster's website
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