Re: [osg-users] Scale object based on camera distance

2019-01-07 Thread Chris Hanson
Are you using osgEarth? On Mon, Jan 7, 2019 at 3:38 PM David Mitchell wrote: > Thanks, Trajce. That looks like it will do what I need. Since this was > my first post to the forums, apparently it wouldn't show up until an admin > approved it and during that time I was able to modify the >

Re: [osg-users] Scale object based on camera distance

2019-01-07 Thread David Mitchell
Thanks, Trajce. That looks like it will do what I need. Since this was my first post to the forums, apparently it wouldn't show up until an admin approved it and during that time I was able to modify the GeoPositionNodeAutoScaler class from osgEarth to do what I need it to. Looking at

Re: [osg-users] Scale object based on camera distance

2019-01-06 Thread Trajce Nikolov NICK
Hi David, have a look at osg::AutoTransform On Mon, Jan 7, 2019 at 1:41 AM David Mitchell wrote: > I have certain nodes/objects in my scene that I always want to be the same > size regardless of their distance from the camera and I'm trying to figure > out the best way to go about doing this.

[osg-users] Scale object based on camera distance

2019-01-06 Thread David Mitchell
I have certain nodes/objects in my scene that I always want to be the same size regardless of their distance from the camera and I'm trying to figure out the best way to go about doing this. My first thought is to create a custom NodeCallback to add to the node as a cull callback and then get