J.P. Delport wrote:
> Hi Ben,
> 
> I'm not sure if you are still scaling the image... If you are using 
> Texture2D you can call texture->setResizeNonPowerOfTwoHint(false); on 
> them to do not scale before uploading. Modern GPU are quite OK with non 
> power of two textures. You can also use TextureRectangle instead of 
> Texture2D.
> 
> 


Sounds interesting! I assume that using TextureRectangle does not auto-resize 
the image file like Texture2D does? 

If so, that would solve one of my pet peeves in my life! Not to mention a 
consequence of letting users add graphic map images in my project – since I 
don’t expect them to understand the powers of two problem. That would save me 
some future grief!  

D Glenn!

------------------------
D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your 
Desk!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=25123#25123





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

Reply via email to