checkdgt
Joined: 15 Aug 2005 Posts: 3 Location: DEVON, UK!!
|
Posted: Wed Aug 17, 2005 1:06 am Post subject: Another point |
|
|
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. |
|