Hi Carsten, 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 Cheers, Keyan On 15 Aug 2012, at 16:43, Carsten Neumann wrote: > Hello Keyan, > > On 08/15/2012 04:33 AM, Keyan wrote: >> thanks for the tip. Unfortunately it is still not working. The only >> difference that I see, is that I do not use the OSG::GLUTWindow::create() >> but OSG::PassiveWindow::create(). Could that be the problem? > > ok, PassiveWindow should not make a difference [1]. I think at this point > your best bet is to run under a debugger and put a breakpoint in > SimpleTextForeground::draw() and see if it gets called at all or if it exists > early before drawing anything. > > Cheers, > Carsten > > [1] I'm attaching a version that uses PassiveWindow. I had to make one > additional change (call pwin->resize(300, 300)) in the beginning to pass the > initial window size in. Glut apparently only calls the reshape function after > rendering the first frame which for me caused an OpenGL error, because > glOrtho was called with invalid arguments (left == right, top == bottom). > <testSimpleSceneManager.cpp>------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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
