Re: [osg-users] Texture Image Size

2008-12-27 Thread Ryan Morris
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

Re: [osg-users] Texture Image Size

2008-12-27 Thread Ryan Morris
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 __

Re: [osg-users] Texture Image Size

2008-12-23 Thread Ryan Morris
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

Re: [osg-users] Texture Image Size

2008-12-23 Thread Ulrich Hertlein
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

Re: [osg-users] Texture Image Size

2008-12-23 Thread Ryan Morris
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 __

Re: [osg-users] Texture Image Size

2008-12-23 Thread Dunhour, Mike (CIV)
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

Re: [osg-users] Texture Image Size

2008-12-22 Thread Gordon Tomlinson
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

[osg-users] Texture Image Size

2008-12-22 Thread Ryan Morris
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