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 

Another point

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



Joined: 15 Aug 2005
Posts: 3
Location: DEVON, UK!!

PostPosted: Wed Aug 17, 2005 1:06 am    Post subject: Another point Reply with quote

Im just learning 3D as well as PSP so at the moment im playing around with vertices. At the moment im plotting points and then going to move into triangles.

The problem im having is with the Lines sample. If ripped this apart to play with just points and then triangles, however when Im writing to the main buffer with 3 vertices im getting a fourth at what looks like 0,0.

Quote:
for (i = 0; i < NUM_VERTICES; i++)
{
// we make local copies of the line into the main buffer here, so we don't have to flush the cache

struct Vertex* vertices = sceGuGetMemory(3 * sizeof(struct Vertex));

// create a lineloop
vertices[i] = triangle[i];

sceGuDrawArray(GU_POINTS,GU_VERTEX_32BITF|GU_TRANSFORM_2D,3,0,vertices);
}


If I just write triangle directly from its current memory location I dont get the fourth point on screen :|

Can anyone help.
_________________
Here I sit, broken hearted, ate a dime, but only farted.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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