FSAA GLES2 texture seems doesn't work
Posted: Thu Jan 26, 2017 1:30 pm
I'm using ogre 1.10 and I'm trying to make render to texture. I need fsaa=4.
I'm creating texture:
The last parameter is FSAA. So, I guess I'll see anti-aliasing. And it's works on PC(linux), but it doesn't on android(6.0), lines like stairs. I use the same code for android and for linux. If i'll set fsaa 0, I'll get the same result on linux and android. But this parameter doesn't change anything on android. So, i don't understand why there is no effect.
As I understand, on Android texture with fsaa setup here: GLES2Texture::_createSurfaceList. So, I loged it. FSAA is 4, that's correct. So, i confused, because I doesn't see result of this fsaa.
This code(in GLES2Texture::_createSurfaceList) called a single time with mFSAA=4:
I'm creating texture:
Code: Select all
Ogre::TexturePtr rttTexture =
Ogre::TextureManager::getSingleton().createManual(
"RttTex",
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
Ogre::TEX_TYPE_2D,
mOgreRenderWnd->getWidth(), mOgreRenderWnd->getHeight(),
0,
Ogre::PF_R8G8B8A8,
Ogre::TU_RENDERTARGET,
0,
false,
4);
As I understand, on Android texture with fsaa setup here: GLES2Texture::_createSurfaceList. So, I loged it. FSAA is 4, that's correct. So, i confused, because I doesn't see result of this fsaa.
This code(in GLES2Texture::_createSurfaceList) called a single time with mFSAA=4:
Code: Select all
GLES2HardwarePixelBuffer *buf = OGRE_NEW GLES2TextureBuffer(mName,
getGLES2TextureTarget(),
mTextureID,
width, height, depth,
GLES2PixelUtil::getClosestGLInternalFormat(mFormat, mHwGamma),
GLES2PixelUtil::getGLOriginDataType(mFormat),
static_cast<GLint>(face),
mip,
static_cast<HardwareBuffer::Usage>(mUsage),
doSoftware && mip == 0, mHwGamma, mFSAA);