Search found 10 matches

by Seagaetcm
Sun Jul 29, 2007 4:23 pm
Forum: PSP Development
Topic: how much the skelecton number for one triangle influenced by
Replies: 0
Views: 953

how much the skelecton number for one triangle influenced by

I browse the skinmesh example in PSPSDK. I realized that one vertex influenced by 8 matirix. But i am not sure how much the matirix can be used for one triangle? May be only 8? or can used 24 because of 8 * 3 = 24?

thanks for help.
by Seagaetcm
Sun Jul 22, 2007 2:39 pm
Forum: PSP Development
Topic: I had a bus error. Please help!
Replies: 2
Views: 4582

I think this infor will be useful for help Exception - Bus error (data) Thread ID - 0x04D55737 Th Name - GDBServer Module ID - 0x0280F875 Mod Name - GDBServer EPC - 0x088232E8 Cause - 0x1000001C BadVAddr - 0x00010004 Status - 0x20088613 zr:0x00000000 at:0x0008FF00 v0&...
by Seagaetcm
Sat Jul 21, 2007 2:34 am
Forum: PSP Development
Topic: I had a bus error. Please help!
Replies: 2
Views: 4582

I had a bus error. Please help!

I render a model with PSPGL. But there is a Bus error when called function glDrawRangeElements: glDrawRangeElements (mode=4, start=53, end=464, count=1884, type=5123, indices=0x8a28ff0) at pspgl_varray_draw_range_elts.c:199 199 __pspgl_varray_draw_range_elts(mode, typ...
by Seagaetcm
Sun Jul 08, 2007 4:10 pm
Forum: PSP Development
Topic: Problem puzzle me. Reading Tga file and caculate data size..
Replies: 10
Views: 4475

I think there it is not problem with data alignment. I modify code as it: unsigned char unCompressHeader[12] = {0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0}; unsigned char tgaHeader[12]; unsigned char header[6]; fread( &tgaHeader, ...
by Seagaetcm
Sun Jul 08, 2007 2:04 pm
Forum: PSP Development
Topic: Problem puzzle me. Reading Tga file and caculate data size..
Replies: 10
Views: 4475

My gcc version is "psp-gcc (GCC) 4.1.2 devkitPSP release 11 (PSPDEV 20060507)" I tried struct __attribute__ ((__packed__)) TGAHeader, the value is (gdb) p h $1 = {idlength = 0 '\0', colourmaptype = 0 '\0', datatypecode = 2 '\002', colourmaporigin = 0, colourmaplength = 0, colourmapdepth = ...
by Seagaetcm
Sat Jul 07, 2007 3:06 pm
Forum: PSP Development
Topic: Problem puzzle me. Reading Tga file and caculate data size..
Replies: 10
Views: 4475

I had tested the code at VS2005, it is correct. here it is the code: #pragma pack(1) struct TGAHeader { char idlength; char colourmaptype; char datatypecode; short int colourmaporigin; short int colourmaplength; char colourmapdepth; short int x_origin; short int y_origin; sh...
by Seagaetcm
Fri Jul 06, 2007 7:37 pm
Forum: PSP Development
Topic: Problem puzzle me. Reading Tga file and caculate data size..
Replies: 10
Views: 4475

Sorry, I make a mistake in the post. I do not copy the code from file, so the code in my program really is fread(&Head, sizeof(TgaFileHead), 1, file); I debug the Head value by GDB, it is correct. but the next line DataSize = Head.w * Head.h; ...DataSize is zero.
by Seagaetcm
Fri Jul 06, 2007 12:42 pm
Forum: PSP Development
Topic: Problem puzzle me. Reading Tga file and caculate data size..
Replies: 10
Views: 4475

Problem puzzle me. Reading Tga file and caculate data size..

I wrote code to read tge files. the code like that: #pack(1) struct TgaFileHead { ... // some value define short w; short h; ... // some value define } #pack() // sizeof(TgaFileHead) = 18 // in function: int DataSize = 0; TgaF...
by Seagaetcm
Sat Jun 30, 2007 4:15 pm
Forum: PSP Development
Topic: Problem with compile pspgl
Replies: 2
Views: 1343

I had update the code just now, it is fixed. thanks Jim.
by Seagaetcm
Sat Jun 30, 2007 2:21 pm
Forum: PSP Development
Topic: Problem with compile pspgl
Replies: 2
Views: 1343

Problem with compile pspgl

I had download pspgl via svn. but it can not be compile correctly by pspdev environment. some errors reported: psp-gcc -std=gnu99 -g -Wall -Wmissing-prototypes -Os -G0 -fsingle-precision-constant -I. -I d:/pspdev/psp/include -I :/pspdev/psp/sdk/include -funit-at-a-time -MD -MF .deps/eglBindTexImage....