[osg-users] Camera::resizeAttachments + texture rect
Robert Osfield
robert.osfield at gmail.com
Thu Jan 5 03:21:10 PST 2017
Hi James.
On 4 January 2017 at 17:20, James Turner <zakalawe at mac.com> wrote:
> Hi,
>
> I have just been surprised to learn that Camera::resizeAttachments doesn’t handle TextureRectangle. Would a patch to change this behaviour be accepted? Or is it intentional for some reason?
I am a bit surprised as well, just looked at the code and it only all
the other main texture types... Yes a patch would be accepted :-)
> (Yes the texture coordinates have to be adjusted for a rectangular texture but I still prefer that over using a 2D texture with considerable wasted space)
There is no reason why there need be waster space with a Texture2D,
all modern cards will support non power of two textures, you just need
to set the Texture's ResizeNonPowerOfTwo to false to make it clear
that texture can be a non power of two.
Robert.
More information about the osg-users
mailing list