Re: [osg-users] Updating OSG and osgearth in project

2012-12-11 Thread Max Sergeev
Thanks for advices, though problem is still here Robert, I have OSG 3.0.1 and osgearth 2.2 compiled in some folder; in my project I changed all dependencies to point into that folder. Glenn, I did clean and rebuild now but project still gives me access violation. I shall try osgearth 2.3 but

[osg-users] Updating OSG and osgearth in project

2012-12-10 Thread Max Sergeev
Hello! So I have this project that uses OSG version 2.9 and osgearth version 2.0. Now there's need in some of osgearth 2.2 functions (like osgearthQt). Using VS 2010. If anyone has experience updating osg libraries which are used in project, would you please share it? I mean, there should be

Re: [osg-users] qt rendering thread

2012-11-14 Thread Max Sergeev
Hello! Have you looked into OsgQtBrowser and OsgQtWidgets examples? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=51090#51090 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] How to ignore keyboard events

2012-10-18 Thread Max Sergeev
So here's some new info, maybe someone will have any ideas about my problem. The problem is, again, when I press any keyboard key, all of my Qt widgets one by one move to certain point of the screen and freeze there, not working anymore. I'm trying to fight it with filtering keyboard events.

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-10 Thread Max Sergeev
Thanks for quick replies, I'm posting code here with simple example of what I am doing: Code: #include iostream #include osg/Notify #include osg/io_utils #include osg/ArgumentParser #include osg/MatrixTransform #include osg/AutoTransform #include osg/Camera #include osg/TexMat #include

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-10 Thread Max Sergeev
Problem solved! Got it from Qt side (thanks to Maxim Gammer for advice), those solved problem: Code: QTextCodec *cyrillicCodec = QTextCodec::codecForName(CP1251); QTextCodec::setCodecForTr(cyrillicCodec); QTextCodec::setCodecForLocale(cyrillicCodec);

[osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-09 Thread Max Sergeev
Hello! Got another question about Qt and OSG :) There is project where Qt controls are used inside OSG scene (creating camera for each of them and stuff), and the next problem is that I need cyrillic symbols (russian language). Using wstring works using OSG HUD, but in Qt the symbols are

Re: [osg-users] How to ignore keyboard events

2012-09-30 Thread Max Sergeev
robertosfield wrote: The osgViewer classes are built around not having any event handlers by default and it's the application developers responsibility to add these to their applications, so it's not a case of working out how to block events but rather just adding the event handlers you

Re: [osg-users] How to ignore keyboard events

2012-09-27 Thread Max Sergeev
Magnus Kessler wrote: On Wednesday 26 Sep 2012 11:33:44 Max Sergeev wrote: You can stop a Viewer from exiting on Escape by calling viewer.setKeyEventSetsDone(0); on it. The osgvnc example is using this, for instance. See the ViewerBase documentation for more information about

Re: [osg-users] Qt crashes on key press

2012-09-26 Thread Max Sergeev
Allright, I think I've got another, more global question: is there a way to make OSG ignore all keypresses, all keyboard events? Just like this, so it would not react on S, W or even Escape keypresses -- Read this topic online here:

[osg-users] Qt crashes on key press

2012-09-24 Thread Max Sergeev
Hello! I've a problem with Qt once again :) There is OSG scene, where I put some Qt controls, like in osgQtBrowser example, where Qt controls are getting rendered like OSG objects (I create camera for them and stuff). So, when I press any key on keyboard, Qt controls just jump somewhere around

Re: [osg-users] Qt and OpenThreads

2012-09-19 Thread Max Sergeev
Thanks, Nico, very interesting info, I'll read that through. Was not my case, though: Can't believe how dumb my mistake actually was was: mixing release OSG libraries with debug Qt libraries. Never mix debug with release, thats what I've learned :) Thanks to all who wanted/tried to help.

[osg-users] Qt and OpenThreads

2012-09-14 Thread Max Sergeev
Hello! I'm stuck on one problem. There is kind of big project, and I need to make Qt interface on it. What I try to do is make a camera for Qt-interface element. The problem comes with using OpenThreads: I'm trying to run OSG rendering inside new thread, yielding to rendering of Qt element,

Re: [osg-users] Trying to make Qt HUD inside OSG scene

2012-08-28 Thread Max Sergeev
Hi, Robert, Alistair Thanks for your replies. I've seen osghud example, but that one has no clickable elements on the HUD camera. I've tried looking into osgpick example aswell, as it looks more suitable for my needs (with clickable buttons), but the thing is I have to use

[osg-users] Trying to make Qt HUD inside OSG scene

2012-08-16 Thread Max Sergeev
Hello! I'm kind of newbie in both OSG and Qt, still I'm trying to make Qt HUD upon my OSG window, what I want is Qt interface elements fixed inside OSG scene, not spinning with the model. The thing is, I need Qt elements INSIDE osg scene, not OSG scene inside Qt window (like in OSGviewerQt