Search found 18 matches

by maroxe
Mon Sep 14, 2009 6:18 am
Forum: PSP Development
Topic: [pspgu] help with index-list
Replies: 8
Views: 3621

up
by maroxe
Mon Sep 07, 2009 6:37 am
Forum: PSP Development
Topic: [pspgu] help with index-list
Replies: 8
Views: 3621

well, i tried to draw a torus unsuccssefly /* Initialisation function */ vertices = (TCNPVertex*) malloc(sizeof(NPVertex) * 100); indices = (unsigned short*) malloc(sizeof(unsigned short) * 9 * 9); genera...
by maroxe
Sun Sep 06, 2009 1:13 am
Forum: PSP Development
Topic: Gu inistialisation
Replies: 3
Views: 1458

if those functions are not called, gu will use the RAM?
by maroxe
Sat Sep 05, 2009 3:30 am
Forum: PSP Development
Topic: [pspgu] help with index-list
Replies: 8
Views: 3621

jsharrad wrote:Look at the gu samples that came with the sdk
i didn't find aything iterresting. A part the vertex sample wich is a little bit complicated and doesn't exactly what i want it to do(it's just calculating, doesn't render anything at the screen)
by maroxe
Sat Sep 05, 2009 3:13 am
Forum: PSP Development
Topic: Gu inistialisation
Replies: 3
Views: 1458

Gu inistialisation

I see sometimes in pspgu initialisation this lines: void* fbp0 = getStaticVramBuffer(BUF_WIDTH,SCR_HEIGHT,GU_PSM_8888); void* fbp1 = getStaticVramBuffer(BUF_WIDTH,SCR_HEIGHT,GU_PSM_8888); void* zbp = getStaticVramBuffer(BUF_WIDTH,SCR_HEIGHT,GU_PSM_4444&#41...
by maroxe
Fri Sep 04, 2009 10:02 am
Forum: PSP Development
Topic: [pspgu] help with index-list
Replies: 8
Views: 3621

anyone to help?
by maroxe
Fri Sep 04, 2009 1:00 am
Forum: PSP Development
Topic: [pspgu] help with index-list
Replies: 8
Views: 3621

i tried both but no one worked: http://pastebin.archlinux.fr/358207
by maroxe
Thu Sep 03, 2009 11:56 pm
Forum: PSP Development
Topic: Why memalign?
Replies: 13
Views: 7414

Thank's all, it's clearer know
by maroxe
Thu Sep 03, 2009 6:23 am
Forum: PSP Development
Topic: [pspgu] help with index-list
Replies: 8
Views: 3621

[pspgu] help with index-list

Hi, Because of the lack of documentation of using index-list, i need your help. Imagine i have three vertices: V1: position: x1, y1, z1; texture: u1, v1; color: c1; V2: position: x2, y2, z2; texture: u2, v2; color: c2; V3: position: x3, y3, z3; texture: u3, v3; color: c3; /* and so on */ I want to d...
by maroxe
Thu Sep 03, 2009 4:49 am
Forum: PSP Development
Topic: Why memalign?
Replies: 13
Views: 7414

i steal don't understand, if a data is 32bits aligned, it will be 16bits aligned. So why in every tutorial for PSP we use memalign(16, ...)?
Also, the list passed to sceGu, f don't specify "__attribute__((aligned(16)))" no vertexis shown at the screen
by maroxe
Thu Sep 03, 2009 12:20 am
Forum: PSP Development
Topic: GumDrawArray and index array
Replies: 1
Views: 879

up
by maroxe
Wed Sep 02, 2009 4:30 pm
Forum: PSP Development
Topic: GumDrawArray and index array
Replies: 1
Views: 879

GumDrawArray and index array

Hi, first eccuse my bad english I wanna know if the index array must point to a vertex or to ther vertex composants. I mean, if my vertex tab is like that: vertex[] = { { u, v, color, x, y, z },// vert 0 { u, v, color, x, y, z },// vert 1 // .... { u, v, color, x, y, z }// vert n } and my index arra...
by maroxe
Wed Sep 02, 2009 12:44 pm
Forum: PSP Development
Topic: Why memalign?
Replies: 13
Views: 7414

I red in the doc of sceGuDrawArray:
Every vertex must align to 32 bits, which means that you HAVE to pad if it does not add up!
by maroxe
Wed Sep 02, 2009 12:18 pm
Forum: PSP Development
Topic: Physics engine for PSP
Replies: 7
Views: 3492

ok thanks
by maroxe
Wed Sep 02, 2009 12:16 pm
Forum: PSP Development
Topic: Why memalign?
Replies: 13
Views: 7414

thanks for you reply.
so i must understand that i always have to use memalign(16, whatever) instead of new/malloc?
by maroxe
Wed Sep 02, 2009 1:53 am
Forum: PSP Development
Topic: Physics engine for PSP
Replies: 7
Views: 3492

i was talking about 3d physics engin ...
i couldn't find ode in pspliraries
by maroxe
Tue Sep 01, 2009 9:23 pm
Forum: PSP Development
Topic: Physics engine for PSP
Replies: 7
Views: 3492

Physics engine for PSP

Hi,
Is there any physics engine port for PSP?
by maroxe
Tue Sep 01, 2009 6:34 pm
Forum: PSP Development
Topic: Why memalign?
Replies: 13
Views: 7414

Why memalign?

Hi, I red in many tutorial that i should use memalign to allocate memory for my vertices. for example, this is my Vertex class: struct Vertex { float u, v; unsigned int color; float x, y, z; }; this is how i should allocate memory: vertices = (Vertex*) memalign&...