Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-19 Thread tianzjyh
Hi, Roko, Just check function osg::AutoTransform::setPosition(const Vec3d& pos), and try setting "pos" to (0,0,0), then maybe you will find a clue. -- Cheers, --- TianZJ At 2017-01-20 10:10:31, "Roko Talk" wrote: >Hi TianZJ, > >thank you for your reply

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-19 Thread Roko Talk
Hi TianZJ, thank you for your reply :) - Are you sure combining stuff from within the osgautotransform example is enough to achieve what I want for osg::Geometry? Because for text I can realize it with the above posted command. Many thanks! :) Cheers, Roko -- Read this topic

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-19 Thread tianzjyh
hi, Roko, The example "osgautotransform" demonstrates different kinds of text auto-transform, e.g. ranged min-scale, max-scale, fixed position. If you are not sure about the implementation inside the source code, just try to combine the different kinds of texts inside the example, and

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-19 Thread Roko Talk
Ps. To specify what I'm exactly looking for, it is an equivalent for osg::Geometry of the following stuff for osgText::TextBase::: Code: CharacterSizeMode OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT I hope now it is clear what I'm looking for :) -- Read

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-19 Thread Roko Talk
Hey Robert, I thought it is clear what I'm struggling with. I'm able to reproduce the whole osgautotransform example. Also I'm able to reproduce it with a geometry geode. But I'm struggling with what functionalities I have to combine to be able to let my geometry geode have a constant screen

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-19 Thread Robert Osfield
On 19 January 2017 at 15:34, Roko Talk wrote: > does any one else has maybe an idea? : ) I suspect others will be like myself and unable to guess what bit you are struggling to get working and what you don't understand. Why not create a small example, such as by modifying

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-19 Thread Roko Talk
Hey guys, does any one else has maybe an idea? : ) Many thanks! Cheers, Roko -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70007#70007 ___ osg-users mailing list

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-18 Thread Roko Talk
Hey Robert, I checked out the whole example (as I did before my first post), but sadly none of them does what I would like to have, something staying at specific world coordinates but keeping it screen size when I zoom. Do I have to combine some parts of the example? Or am I just to unable to

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-18 Thread Robert Osfield
On 18 January 2017 at 14:49, Roko Talk wrote: > Hi Robert, > > Many thanks for the fast reply! > > Do I understand correctly that the example contains exactly the case I'm > looking for? Or just something close to what I'm looking for? The example doesn't do *exactly*

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-18 Thread Roko Talk
Hi Robert, Many thanks for the fast reply! Do I understand correctly that the example contains exactly the case I'm looking for? Or just something close to what I'm looking for? And I have no idea what to do with you FYI ^^' - I assume it is relevant to my problem, but do you mind to explain

Re: [osg-users] Geometry in world coordinates but with same screen size - how to do?

2017-01-18 Thread Robert Osfield
Hi Roko, Have a look at the osgautotransform example as this is both a unit test and means of illustrating how to use it. FYI, the coordinates of the subgraph of the AutoTransform are scaled to screen coords, so a subgraph of 10 units across will be scaled to 10 pixels on screen. Robert. On 18