[SOLVED] RTT with GLES2 on Linux/X11, Ogre 1.8

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
pyrrhula
Gnoblar
Posts: 17
Joined: Wed Jan 25, 2012 11:47 pm

[SOLVED] RTT with GLES2 on Linux/X11, Ogre 1.8

Post by pyrrhula »

Hi,

I'm just wondering if anyone could confirm that RTT (Render-To-Texture) works at all in Ogre 1.8 using the GLES2 rendersystem on X11/Linux? (not Android, NaCL or iOS)

I've been spending several full days now trying to make this work, and have been trying to trace each and every gl call the rendersystem makes. No matter what I try I only get a completely black texture as result, running it on the target hardware (Omap3/SGX530). There are no reported GL/GLES errors either. 1The same application works fine on regular GL. The hardware is able to use FBO's just fine when running the raw SGX demos.

Thanks!
Last edited by pyrrhula on Thu Aug 23, 2012 8:45 am, edited 1 time in total.
oiram
Halfling
Posts: 87
Joined: Sun Dec 13, 2009 5:06 am
x 6

Re: RTT with GLES2 on Linux/X11, Ogre 1.8

Post by oiram »

1. set texture filtering trilinear for default filtering.
2. set RTT filtering binear

just try this~

textures with filtering trilinear setting it's must be generated mipmaps texture.
RTTmap has only 1 mipmap so filtering must set binear.
this issue only caused on ogl es2.
pyrrhula
Gnoblar
Posts: 17
Joined: Wed Jan 25, 2012 11:47 pm

[SOLVED] Re: RTT with GLES2 on Linux/X11, Ogre 1.8

Post by pyrrhula »

Hi Oriam,

thank you very much for replying!! :-) This solved the whole thing!

I ended up defining my rtt material texture unit like so now:

Code: Select all

texture_unit
{
    texture RttTexture
    tex_address_mode clamp
    filtering linear linear none
}
Thanks again!!