Textures in OGLES | developer.brewmp.com Textures in OGLES | developer.brewmp.com

Developer

Textures in OGLES

Forums:

Hi,

I have experience with OGL, but with OGLES, interestingly I'm being unable to texture map objects.

Does BREW OGLES implementation support texture mapping?

NOTE: I am using BREW SDK 2.0.1.

Thanks.

Hi,
Texture mapping is supported in the OpenGL-ES extension. If you are unable to successfully load a texture, it is most likely due to the use of invalid texture data. Have you tried calling glGetError() to see if there are any errors reported?

Hi,
Texture mapping is supported in the OpenGL-ES extension. If you are unable to successfully load a texture, it is most likely due to the use of invalid texture data. Have you tried calling glGetError() to see if there are any errors reported?

Textures are definitely fully supported by our implementation. Are you using the default minification filter? By default, the min filter uses mipmaps, so if you don't have all the mipmap levels defined, texturing will be disabled.
If that's not the problem, feel free to post your setup code here and I'll take a look at it.

Textures are definitely fully supported by our implementation. Are you using the default minification filter? By default, the min filter uses mipmaps, so if you don't have all the mipmap levels defined, texturing will be disabled.
If that's not the problem, feel free to post your setup code here and I'll take a look at it.

Is there any sample on using BREW, OpenGL ES and textures?
I mean some thing like loading an image using BREW API and then use the texture using OpenGL ES.

Is there any sample on using BREW, OpenGL ES and textures?
I mean some thing like loading an image using BREW API and then use the texture using OpenGL ES.

theres the supercube example on the qualcomm opengles webpage i believe

theres the supercube example on the qualcomm opengles webpage i believe

I can´t find the sample.
All I found is This Link.
The file is a PDF that give some information about SuperCube.
Do you know where I can find the sample?
Thanks

I can´t find the sample.
All I found is This Link.
The file is a PDF that give some information about SuperCube.
Do you know where I can find the sample?
Thanks

I guess they haven't released it publically yet. it may have been on the brew3d conference cds i'm not sure.

I guess they haven't released it publically yet. it may have been on the brew3d conference cds i'm not sure.

I posted how I create opengl es textures in another thread. I think it explains most of the tricky stuff. Everything else is just stnd opengl.

I posted how I create opengl es textures in another thread. I think it explains most of the tricky stuff. Everything else is just stnd opengl.

Sorry for replying to an old thread. It happened that at that opportunity, I only had 20 days to implement a 3D game prototype.
After a while seeing no answers yet, I wrote a software 3D engine for BREW. Fortunately, I succeeded on that, although the engine is not in anyway optimized for fixed-point (my target was the emulator, so no problem at all). There is no real use for the engine because of that. But it allowed to finish the game within the deadline.
Now I am creating a full 3D game engine using OGLES, and then with more time to experiment with BREW, I've succeeded loading and uploading textures using the current implementation.
It is working great, thanks to all replies.
By the way, the engine is going to support a lot of things, like a custom and compact 3D model format, multiple cameras, frustum culling, smart space partitioning, shaders, and something more. And at this time it is target to real devices, of course.
That is it. Cheers!

Sorry for replying to an old thread. It happened that at that opportunity, I only had 20 days to implement a 3D game prototype.
After a while seeing no answers yet, I wrote a software 3D engine for BREW. Fortunately, I succeeded on that, although the engine is not in anyway optimized for fixed-point (my target was the emulator, so no problem at all). There is no real use for the engine because of that. But it allowed to finish the game within the deadline.
Now I am creating a full 3D game engine using OGLES, and then with more time to experiment with BREW, I've succeeded loading and uploading textures using the current implementation.
It is working great, thanks to all replies.
By the way, the engine is going to support a lot of things, like a custom and compact 3D model format, multiple cameras, frustum culling, smart space partitioning, shaders, and something more. And at this time it is target to real devices, of course.
That is it. Cheers!

I am trying to load a texture. After the following lines I get an error value of 0x00003000.
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, m_texWidth, m_texHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, m_textureData);
EGLint err = eglGetError();
What could this error mean? I am unable to draw this texture. What I get is a scrambled image.

I am trying to load a texture. After the following lines I get an error value of 0x00003000.
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, m_texWidth, m_texHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, m_textureData);
EGLint err = eglGetError();
What could this error mean? I am unable to draw this texture. What I get is a scrambled image.

(sorry for posting in the wrong thread...cudnt find a way to delete :) )

(sorry for posting in the wrong thread...cudnt find a way to delete :) )