Ok I'm not sure anyone cares but I managed to solve my issue. I'm not
sure WHY it works but apparently
texmat->setMatrix(osg::Matrix::scale(0.5,0.5,1) *
osg::Matrix::translate(0.5,0.5,1));
maps the image over the whole node. If anyone has an explanation I'd
love to hear it otherwise I'm just pres
I think I'm getting closer to my solution but I still am having
issues. Using the texmat->setMatrix i have been able to translate my
texture but not scale it. I don't quite understand what I am doing
wrong. Any advice you all can provide would be awesome!
Thanks! And Merry Christmas!
-Rusty
__
Ulrich,
I've been playing around with your suggestions, I just don't quite
understand how to implement the osg::TexMat::setMatrix. I've been
going through the ref docs and still haven't got it. Maybe a code
sample? =) Thanks again!
-Russ
___
osg-users ma
Hi Rusty,
On 24/12/08 5:38 AM, Ryan Morris wrote:
I understand what you are saying about mapping to each vertex but I'm
unclear how you get the vertex arrays from a node (not a geod etc).
Only Drawables have vertices/normals/texcoords so you have to walk you way down the
hierarchy from Node t
Gordon,
I understand what you are saying about mapping to each vertex but I'm
unclear how you get the vertex arrays from a node (not a geod etc).
And sadly it doesn't appear to me that TexGen has the ability to
"stretch" the image. Thanks again!
-Rusty
__
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ryan
Morris
Sent: Monday, December 22, 2008 9:09 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Texture Image Size
I've
m/> www.gordontomlinson.com
__
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ryan Morris
Sent: Tuesday, December 23, 2008 5:09 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Texture Image Size
I've been l
I've been looking through the mailing list and tutorials and I can't seem to
find something that fits my issue. I've got a large node (.osg) exported
with Blender and I can load it and apply a texture (.rgb image) to it but I
can't seem to get the image to cover the whole node. I can set it to REPE
8 matches
Mail list logo