Hello Keyan,
On 08/15/2012 10:37 AM, Keyan wrote:
> thanks for the example. It works too. Unfortunately, I still can't get it
> running in my app. I debugged OSGSimpleTextForeground.cpp to make sure it is
> called. initText and draw are both called, and the values look fine, as far
> as I can tell.
>
> I believe it must be somewhere in my settings, but I can't tell where. It
> would be great, if you could take a look:
>
> http://pastebin.com/8rtzcLQX
I believe the problem is that you are creating your own viewport, but
the SimpleTextForeground is added to the SimpleSceneManager's one. I
haven't looked what you use the SSM for, but if it interferes with your
rendering setup [1] perhaps its base class NavigationManager is better
suited to your needs?
Cheers,
Carsten
[1] The SSM takes care of a bunch of things which makes it very
convenient for tasks where you just want to render a scene, but for
cases where you need a bit more control it can occasionally get in the
way ;)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users