ok, thanks, but the main question is why gluScaleImage destroy the data in
the image and how do I prevent it.

thanks,
 Guy.
----- Original Message -----
From: "Robert Osfield" <[EMAIL PROTECTED]>
To: "OpenSceneGraph Users" <[email protected]>
Sent: Tuesday, November 06, 2007 11:12 AM
Subject: Re: [osg-users] Scaling images


> Hi Guy,
>
> If you hardware is capable of non power of two textures switch off the
> hint to resize non power of two textures:
>
>   texture->setResizeNonPowerOfTwoHint(false);
>
> Robert.
>
> On Nov 6, 2007 5:48 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >  I'm trying to send float data beyond the range of [0, 1] to a texture.
> > I set the texture and the image format to float. If the image size is
power
> > of two, things seems to be ok, but if the sizes are different it seems
the
> > the gluScaleImage command truncate the values in some manner (it's even
not
> > clamping everything above 1.0 to 1.0 and everything below 0 to 0, but
some
> > truncation that leaes only the fraction of the value). Any ideas how to
> > prevent it from happenning?
> >
> > thanks,
> >  Guy
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> >
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to