Can,

Could you provide an image of the textured quad for us to look at? Also can
you provide the original texture (spot.bmp)?

What is your texture state set up as in your geometry node? Is your original
texture non power of two?

Thanks,
-Shayne

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Can Hosgor
Sent: Friday, May 22, 2009 8:21 AM
To: [email protected]
Subject: [osg-users] texture mapping to trapezoid

Hi,

I 'm having trouble mapping a texture2d to a quad. The texture looks correct
when the quad is rectangle/square shaped, but incorrect when it is trapezoid
shaped.

I'm using the following code to create the geometry:
http://pastebin.com/m47ba3f47

How can i fix it so that the texture looks correct (as if it was squeezed at
the top and stretched at the bottom)

Thank you!

Cheers,
Can

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





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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to