There are plenty of osg examples that show how to create your own event
handler by subclassing from GUIEventHandler. For example look at osgpoints.
Make your own event handler, and change the text visibility (using its node
mask) based on whatever keys you choose.
To update text dynamically, use
Use event handlers, node masks or a switch.
Sent from my iPhone
> On Dec 20, 2018, at 5:28 PM, Diego Mancilla wrote:
>
> Hello ravi,
>
> Thank you for your your answer.
>
> What you suggest can be accomplish by the use a visitor or a callback?: Lets
> say that I want to change show/hide the
Hello ravidavi,
Thank you for your your answer.
What you suggest can be accomplish by the use a visitor or a callback?: Lets
say that I want to change show/hide the text when the user press a key,
moreover, if some of the text for nodes (cessna) should be shown/hidden with
some key and
Hello ravi,
Thank you for your your answer.
What you suggest can be accomplish by the use a visitor or a callback?: Lets
say that I want to change show/hide the text when the user press a key,
moreover, if some of the text for nodes (cessna) should be shown/hidden with
some key and others
If you will be dynamically changing your text, then specify that when you
first create it:
osgText::Text* text = new osgText::Text;
text->setDataVariance(osg::Object::DYNAMIC);
Note that setting the data variance is important for multithreaded Viewers
Seconded. Silver Lining will probably solve all your problems and the
licensing cost is SUPER reasonable.
If you have any questions, hit me up or Frank Kane (the author of Silver
Lining and founder of Sun Dog) is super responsive.
On Thu, Dec 20, 2018 at 3:40 PM Trajce Nikolov NICK <
Hi Bruce,
you familiar with SilverLining ? Atmosphere model by SunDog (
https://sundog-soft.com) .. It works well in ECEF Geocentric and it is
really affordable .. Give it a shot, there is a evaluation license .. You
get the code too
On Thu, Dec 20, 2018 at 2:31 PM Bruce Clay wrote:
> Robert:
Hello,
I have a couple of doubts regarding the proper way of handling osg::Text
inside an animation.
For the sake of simplicity lets say we are working on the osganimate example,
and we have multiple cessna moving around.
1- What is the proper way of changing the text of osg::Text on
Robert:
Thanks for your reply.
It was not the answer I hoped for but we move on
Bruce
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75328#75328
___
osg-users mailing list
HI Bruce,
When I wrote the osgParticle::PrecipitationEffect is was specifically for
local ground based usage, I didn't attempt the handle the case of a
geocentric scene. Off the top of my head I don't know if would be possible
to adapt it - I'd need to sit down spend time review the code and
10 matches
Mail list logo