Search found 32 matches

by BlackDragon777
Mon Oct 10, 2005 8:38 am
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

No ideas?
by BlackDragon777
Wed Oct 05, 2005 2:36 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

I don't think anything is wrong with my structure holding my information about the model. Why do I think this? Well, I have written a basic 3d model loader in OpenGL that loads various file formats such as 3ds, obj, asc, x, custom formats, etc. When I extract the info from the files, I can texture m...
by BlackDragon777
Wed Oct 05, 2005 5:29 am
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Thanks, I will play around with it. =)


GOD Bless you Always!!!!!!
by BlackDragon777
Mon Oct 03, 2005 2:24 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

I tired doing it only for V but it still doesn't map correctly but it is very close.
by BlackDragon777
Mon Oct 03, 2005 1:43 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Ok, I did a for(j=0; j<756*3; j++) { vertecies[j].u = 1.0f - vertecies[j].u; vertecies[j].v = 1.0f - vertecies[j].v; } And I can tell that the model is VERY VERY close to being texture properly because now I can actually see some of the textures coming together however the model still isn't texture ...
by BlackDragon777
Mon Oct 03, 2005 12:32 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

So I should do both

u = 1.0f - u;

v = 1.0f - v;

or just

v = 1.0f - v;


?????
by BlackDragon777
Mon Oct 03, 2005 12:31 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

So I should do both

u = 1.0f - u;

v = 1.0f - v;

or just

v = 1.0f - v;


?????
by BlackDragon777
Mon Oct 03, 2005 11:47 am
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

I don't quite follow you Ector. What should I do to my texture coords? Thanks in advance!
by BlackDragon777
Mon Oct 03, 2005 6:44 am
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Hey thanks TIM! I did try Ector's tool and it brought me closer to getting it to work. At least my texture shows up correctly but it isn't being mapped properly still. So here is the link to my code, model, and model's texture. What I did was I wrote a 3DS/ ASC 2 OpenGL commands tool just for quick ...
by BlackDragon777
Mon Oct 03, 2005 3:17 am
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Hey Tim! Thanks for your help thus far. You have really tried to help me and I appreciate that. The texture you converted for me no longer comes up as an orangish texture but rather a blueish texture now. What I did though was I tried using the PSPTEX converter that you sent me a link to in your las...
by BlackDragon777
Mon Oct 03, 2005 2:19 am
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Any ideas about what I am doing wrong?
by BlackDragon777
Sun Oct 02, 2005 3:08 am
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Hmm I tried your converted image Tim. However this time it makes my body look orangish. Here is my texture mapping code. Is there anything that I am not doing corectly? // setup texture sceGuTexMode&#40;GU_PSM_8888,0,0,0&#41;; sceGuTexImage&#40;0,256,256,256,body_start&#41;; sceGuTex...
by BlackDragon777
Sat Oct 01, 2005 1:31 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Can someone please convert my texture to a 32-bit or a 16-bit ABGR RAW format texture so that I can see if there is a problem with my code or my image software. The link to the texture is here.

http://www.jujikasoft.com/PSP/body1.bmp

Thanks!
by BlackDragon777
Thu Sep 29, 2005 11:09 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

What software can I use to make a raw texture that reads as ARGB as I don't think my Adobe photoshop 7 does that?
by BlackDragon777
Thu Sep 29, 2005 12:51 pm
Forum: PSP Development
Topic: Texture Mapping with the Gu Lib
Replies: 24
Views: 7444

Texture Mapping with the Gu Lib

Hi! I am trying to texture map my 3d object using the gulib. So far, I can see my 3d model. it renders fine. However If I try to add a texture to it, the texture turns to a pink color and is distorted but the model still stays in tact. I modified the samples/gu/cube example. I have a model with 756 ...
by BlackDragon777
Sun Sep 25, 2005 5:07 pm
Forum: PSP Development
Topic: Rotation Math Question
Replies: 4
Views: 1958

Hey! Thanks! I wasn't subtracting the origin points away. Thanks, that fixed my problem!

GOD Bless you Always!!!!
by BlackDragon777
Sun Sep 25, 2005 11:36 am
Forum: PSP Development
Topic: Rotation Math Question
Replies: 4
Views: 1958

Rotation Math Question

Hey everyone. I have a simple math question for you. I know how to rotate a point about the origin by using matricies. I also know how to do it using the formula. The way I do it is x = x*cos(theta) - y*sin(theta) y = x*sin(theta) + y*cos(theta) However I want to rotate my triangle about an arbitrar...
by BlackDragon777
Sat Sep 24, 2005 6:49 am
Forum: PSP Development
Topic: PSP gu library. Drawing Lines
Replies: 7
Views: 2580

Well just for reference incase anyone else encounters my same problem, my point2D structure looked like so, typedef struct &#123; int x,y; &#125; point2D; When in actuality, like chp suggested, it should look like so, typedef struct &#123; float x,y,z; &#125; point2D; Thanks for all ...
by BlackDragon777
Sat Sep 24, 2005 4:03 am
Forum: PSP Development
Topic: Shift operator in Matrix Function Question
Replies: 2
Views: 1253

Oh! Ok I see it now! Yeah I guess that would help a lot with readability. Thanks ooPo
by BlackDragon777
Sat Sep 24, 2005 1:40 am
Forum: PSP Development
Topic: Shift operator in Matrix Function Question
Replies: 2
Views: 1253

Shift operator in Matrix Function Question

Hmmm I read the post that shine sent me about rotating triangles and their properties. I have a question though. Why does the author of the code choose to use a shift operation for the indicies of his array of numbers in his matrix? Here is an example of his code void matrix_identity&#40;float* ...
by BlackDragon777
Fri Sep 23, 2005 2:45 pm
Forum: PSP Development
Topic: My Triangle Dissapears
Replies: 3
Views: 1467

Oh ok Cool thanks a lot Shine!
by BlackDragon777
Fri Sep 23, 2005 2:13 pm
Forum: PSP Development
Topic: PSP gu library. Drawing Lines
Replies: 7
Views: 2580

Well I can draw triangles. However I can't seem to draw lines afterall. This is how I setup my code for drawing lines. Points = &#40;point2D *&#41;sceGuGetMemory&#40;sizeof&#40;point2D&#41;*2&#41;; Points&#91;0&#93;.x = 10; Points&#91;0&#93;.y = 11; Points&...
by BlackDragon777
Fri Sep 23, 2005 11:58 am
Forum: PSP Development
Topic: My Triangle Dissapears
Replies: 3
Views: 1467

I guess if I said sceGuInit(), I wouldn't have had to post this. Sorry about this one. It was a careless overlook. However I do have one other question. How could I do a goraud shaded triangle based on the code I have provided? It seems that if I use sceGuColor 3 times before drawing the points, the...
by BlackDragon777
Fri Sep 23, 2005 11:35 am
Forum: PSP Development
Topic: My Triangle Dissapears
Replies: 3
Views: 1467

My Triangle Dissapears

Well, I managed to draw a triangle to the screen however it only stays on the screen for half a second and then is cleared. I am swapping buffers so maybe I need to draw my triangle to some other place in emmory as well however the sample graphics demos didn't seem to be doing that. Here is my main ...
by BlackDragon777
Fri Sep 23, 2005 11:33 am
Forum: PSP Development
Topic: PSP gu library. Drawing Lines
Replies: 7
Views: 2580

Nevermind. I got it now. Thanks anyways though!
by BlackDragon777
Fri Sep 23, 2005 1:48 am
Forum: PSP Development
Topic: PSP gu library. Drawing Lines
Replies: 7
Views: 2580

Also when I say I want to draw lines using the hardware, I mean I want to do it similar to the way you do it on a PS2. I don't want to use software by using a function that plots pixels on a line. I want to send a simple graphics packet to the gs in the PSP and have it draw the line for me. Any idea...
by BlackDragon777
Fri Sep 23, 2005 1:42 am
Forum: PSP Development
Topic: PSP gu library. Drawing Lines
Replies: 7
Views: 2580

PSP gu library. Drawing Lines

So where can I read the documentation on the gu library. Also how to I draw lines using the hardware. Are there some tutorials? I checked out the Lines smaple in the pspsdk however I didn't quite follow it. I don't know exactly what all the commands do. Can someone point me in the right direction pl...
by BlackDragon777
Fri Sep 16, 2005 2:32 am
Forum: PSP Development
Topic: After installing the PSP toolchain, what do I do?
Replies: 10
Views: 2765

I put it at the beginning of my path as you suggested mrbrown however I still get the same error. Is there any other build or setup doc I could go through to get my envirnment working write. All the compilers are working, just when I try to make something, I get that build error. Any other suggestio...
by BlackDragon777
Fri Sep 16, 2005 12:50 am
Forum: PSP Development
Topic: After installing the PSP toolchain, what do I do?
Replies: 10
Views: 2765

Hmm.... this is weird. blackdragon@blackdragonpc /usr/local/pspsdk-1.0+beta/tools $ ls Makefile bin2c.exe bin2o.o mksfo.c pack-pbp.exe psp-config.o Makefile.am bin2c.o bin2s.c mksfo.exe pack-pbp.o unpack-pbp.c Makefile.in bin2o.c bin2s.exe mksfo.o psp-config.c unpack-pbp.exe bin2c.c bin2o.exe bin2s....
by BlackDragon777
Thu Sep 15, 2005 10:40 pm
Forum: PSP Development
Topic: After installing the PSP toolchain, what do I do?
Replies: 10
Views: 2765

I tried that but it still doesn't work. Same error. blackdragon@blackdragonpc ~ $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/ActiveStat e Perl Dev Kit 6.0/bin/:/cygdrive/c/Perl/bin/:/cygdrive/c/WINDOWS/system32:/cygd rive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/W...