[osg-users] Background image texture rescaling problem
robert.osfield at gmail.com
Sat Sep 15 09:48:03 PDT 2007
On 9/15/07, John Steinbis <jsteinbis at gmail.com> wrote:
> Thanks Robert,
> I have this working now without rescaling the image. My solution was
> to pad the image with zeros making it a power of two and then specify
> the correct percentage of the image to use as 2D texture. Not sure if
> this is the best solution but it works and is fast enough for me.
This is not an elegant way to tackle the problem, workable yes, but
I'd recommend spending a little time - readying up about
TextureRectangle or just disabling the resize of non power of two
textures, you'll end up with a more efficient and elegant solution.
More information about the osg-users