[osg-users] Texture coords in osgmultiplerenderingtargets.

2012-10-10 Thread Peterakos
Hello.

in the example  osgmultiplerenderingtargets, why are the texture
coordinates initialized as:

0, 0
tex_width, 0
tex_width, tex_height
0, tex_height

instead of

0,1
1,0
1,1
0,1

(the result is different)

Thank you for your time.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Texture coords in osgmultiplerenderingtargets.

2012-10-10 Thread Raymond de Vries

Hi,

That is because TextureRectangle is used and not Texture2D. Look up the 
difference in the OpenGL pages.


HTH
Raymond




On 10/10/2012 2:46 PM, Peterakos wrote:

Hello.

in the example  osgmultiplerenderingtargets, why are the texture 
coordinates initialized as:


0,0
tex_width, 0
tex_width,tex_height
0,tex_height

instead of

0,1
1,0
1,1
0,1

(the result is different)

Thank you for your time.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Texture coords in osgmultiplerenderingtargets.

2012-10-10 Thread Sergey Polischuk
Hi most likely, it uses a texture rectangle instead of texture2d, it uses texture coords in pixels. Cheers. 10.10.2012, 16:46, "Peterakos" hay...@gmail.com:Hello.in the example  osgmultiplerenderingtargets, why are the texture coordinates initialized as:0,0tex_width, 0tex_width,tex_height0,tex_heightinstead of 0,11,01,10,1(the result is different)Thank you for your time.,___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org