Search found 14 matches

by longjoel
Thu Feb 12, 2009 4:27 pm
Forum: PSP Development
Topic: Loading textures causes crash.
Replies: 11
Views: 3442

I just noticed something, you use glTexImage2D(GL_TEXTURE_2D, 0, 3, 64, 64, 0, GL_BGR, GL_UNSIGNED_BYTE, t0->pixels); Internal format 3 and external being GL_BGR. They have to be the same. When you changed it to GL_RGB it worked because 3 is mapped to GL_RGB internally. So assuming GL_BGR is actual...
by longjoel
Thu Feb 12, 2009 3:45 pm
Forum: PSP Development
Topic: Loading textures causes crash.
Replies: 11
Views: 3442

I've narrowed it down, it is infact glTexImage that is causing the issue. It only seems to want to work with GL_RGB, trying to use GL_BGR causes it to crash. Does glTexImage actually accept GL_BGR, i.e. what is the status reported from glGetError() before and after this call? I'll tell you after i ...
by longjoel
Thu Feb 12, 2009 7:57 am
Forum: PSP Development
Topic: Loading textures causes crash.
Replies: 11
Views: 3442

I've narrowed it down, it is infact glTexImage that is causing the issue. It only seems to want to work with GL_RGB, trying to use GL_BGR causes it to crash.

Is there a way to get GL_BGR to work or am I going to have to alter my artwork or swap the red and blue channels when I load the texture?
by longjoel
Thu Feb 12, 2009 5:27 am
Forum: PSP Development
Topic: Loading textures causes crash.
Replies: 11
Views: 3442

In your "buildTextures" function , you're creating 2 textures( 1 with size of 3 elements , and another one with 2), but only 1(Just 1 out of 5) actually gets binded. Its simple , you have no idea what you're doing ... Thank you for your constructive feedback, PosX100. Your post has helped...
by longjoel
Wed Feb 11, 2009 3:47 pm
Forum: PSP Development
Topic: Loading textures causes crash.
Replies: 11
Views: 3442

pretty please?
by longjoel
Sat Feb 07, 2009 5:11 am
Forum: PSP Development
Topic: Loading textures causes crash.
Replies: 11
Views: 3442

Can I please get some help with this? I've been digging through the psgl source and i can't seem to find anything that i'm doing wrong.
by longjoel
Thu Feb 05, 2009 12:01 pm
Forum: PSP Development
Topic: Loading textures causes crash.
Replies: 11
Views: 3442

Loading textures causes crash.

I can't figure out what's causing the crash when I call glEnable(GL_TEXTURE_2D). Is there something wrong with how I'm creating the textures? glBindTexture(GL_TEXTURE_2D, surfaceTex[0]); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST)...
by longjoel
Sun Feb 01, 2009 9:55 am
Forum: PSP Development
Topic: Can't use glGenBuffers (or any other VBO methods)
Replies: 3
Views: 1975

GlennNZ wrote:Thanks to my programming colleague, I have a solution.

Code: Select all

#define GL_GLEXT_PROTOTYPES
...is required before including the glext header.

If I'd looked more carefully at the glext.h file, there is the line

Code: Select all

#ifdef GL_GLEXT_PROTOTYPES
Lesson learned (perhaps)
Thanks a bunch.
by longjoel
Sun Feb 01, 2009 7:17 am
Forum: PSP Development
Topic: Welcome to the PSP development forum!
Replies: 14
Views: 69006

Do you guys have a super secret IRC channel?
by longjoel
Sun Feb 01, 2009 5:38 am
Forum: PSP Development
Topic: Can't use glGenBuffers (or any other VBO methods)
Replies: 3
Views: 1975

Re: Can't use glGenBuffers (or any other VBO methods)

I'm trying to convert some of my vertex arrays to vertex buffer objects (using pspgl), but my compiler doesn't want to know. src/Model.cpp:863: error: ‘glGenBuffers’ was not declared in this scope src/Model.cpp:864: error: ‘glBindBuffer’ was not declared in this scope src/Model.cpp:865: error: ‘glB...
by longjoel
Sun Feb 01, 2009 5:35 am
Forum: PSP Development
Topic: About RM/RMVB player on psp.NEED HELP!!!
Replies: 26
Views: 23094

realmedia is a dead proprietary format. I agree, you energies would be better spent converting your library to mp4 or something along those lines.
by longjoel
Sun Feb 01, 2009 5:30 am
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 129385

Hi longloel, maybe you could explain how to setup code::blocks in a mini tutorial? I usually use Eclipse and visual studio but have no experience on Code::Blocks, is there any special trick to get it working or does it work out of the box? Well, I thought I had it working, but it wasn't producing t...
by longjoel
Thu Jan 29, 2009 2:10 pm
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 129385

Hi, I just got the SDK and have been playing around with it. I can get the examples to compile just fine with Make, but I'm still having problems integrating with code::blocks. Here are my settings. Compiler: -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/include -O2 -G0 -Wall -D_PSP_FW_VERSION=15...
by longjoel
Thu Jan 29, 2009 5:12 am
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 129385

Hi, I just got the SDK and have been playing around with it. I can get the examples to compile just fine with Make, but I'm still having problems integrating with code::blocks. Here are my settings. Compiler: -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150...