[osg-users] texture mapping to trapezoid

2009-05-22 Thread Can Hosgor
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

Re: [osg-users] texture mapping to trapezoid

2009-05-22 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Can Hosgor Sent: Friday, May 22, 2009 8:21 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] texture mapping to trapezoid Hi, I 'm having trouble mapping a texture2d to a quad. The texture

Re: [osg-users] texture mapping to trapezoid

2009-05-22 Thread Can Hosgor
Hi Shayne, Thank you for the quick response :) A screen shot of quad is available here: http://img36.imageshack.us/img36/5741/problem2009052217560820.jpg I left my texture attributes as default. Also didn't change anything at a parent stateset (in other words, i gave the node returned by

Re: [osg-users] texture mapping to trapezoid

2009-05-22 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
, 2009 9:04 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] texture mapping to trapezoid Hi Shayne, Thank you for the quick response :) A screen shot of quad is available here: http://img36.imageshack.us/img36/5741/problem2009052217560820.jpg I left my texture attributes

Re: [osg-users] texture mapping to trapezoid

2009-05-22 Thread Paul Martz
] texture mapping to trapezoid Hi Shayne, Thank you for the quick response :) A screen shot of quad is available here: http://img36.imageshack.us/img36/5741/problem2009052217560820.jpg I left my texture attributes as default. Also didn't change anything at a parent stateset (in other words, i