[osg-users] 答复: Blank screen

2015-01-30 Thread Clement.Chu
Hi Robert, This is the code for showing image in MFC window. (I followed the osgviewerMFC example). osg::ref_ptr traits = new osg::GraphicsContext::Traits; traits->x = 0; traits->y = 0; traits->windowDecoration = false; traits->doubleBuffer = true; traits->sharedContext = 0; traits->setInheri

Re: [osg-users] compositeView in multithreaded Win32 MFC MDI application

2015-01-30 Thread Dan Shebounin
Well, I have tried a strategy 1 Viewer per 1 ClientWnd. I'm not using Doc/View model. It works pretty well for me. The only thing I have discovered so far: you shouldn't initialize OSG and render thread in WM_CREATE handler. This will cause a crash. Because of this, I have to initialize OSG and

Re: [osg-users] Aborting frames that take too long

2015-01-30 Thread Ben Strukus
I did some more research into what's going on and, on a hunch, changed my threading model from ThreadPerCamera (default for my PC) to SingleThreaded and ThreadPerContext. I found that setAbortRenderPtr does indeed lock up the camera thread on ThreadPerCamera, however it seems to behave 100% corr

[osg-users] Problem with bump map/shadowing and osg 3.1.1 to 3.2.0

2015-01-30 Thread Alexandre Vaillancourt
Hello We've just noticed that we had issues with bump map and shadowing after upgrading from 3.1.1 to 3.2.0 and I was wondering if it was a known issue and if there were some ways to fix it. The issue is that the nodes that use both features (bump map AND shadowing) are not visible. I'm not famil

Re: [osg-users] Blank screen

2015-01-30 Thread Robert Osfield
Hi Clement, My guess is that way you hacking the screen size change by creating a new context is screwing up the way context ID's and OpenGL objects are managed. My recommendation would be to just switch off window decoration and change the window size of the context rather than creating a new on

[osg-users] Blank screen

2015-01-30 Thread Clement.Chu
Hi all, I am trying to output my volume image on full screen with MFC by changing GraphicsContext in camera. First I get GraphicsContext from camera and then close it. Then I created a new GraphicsContext with setting screen number and size of full screen and then set it to camera. It work

Re: [osg-users] [osgPlugins] plugin v8 in version 3.3.1

2015-01-30 Thread Robert Osfield
Hi Nguyen, It's about 15 months since I wrote the experiment V8 and Python plugins. This plugins were written as a initial test how easy it would be to support JavaScript and Python respectively - they simply link to the 3rd party library and run the script but there isn't any OSG scene graph inte

Re: [osg-users] compositeView in multithreaded Win32 MFC MDI application

2015-01-30 Thread Émeric MASCHINO
Hi, > It is an app in OSG examples, named osgviewerMFC, that demonstrates almost > exactly what I need. > > The app doesn't use CompositeView class. And things are much simpler then. Yep, there's no really problem replacing the Viewer by a CompositeViewer in the osgviewerMFC example, except for

[osg-users] [osgPlugins] plugin v8 in version 3.3.1

2015-01-30 Thread nguyen duy nam
Hi, what is version v8 used in osg 3.3.1, i dont know anyone can tell me. because, im build plugin v8 with v8 newer 3.28 or 3.20 it error 1>-- Build started: Project: Plugins v8, Configuration: Debug Win32 -- 1> V8ScriptEngine.cpp 1>G:\Buildnew\OpenSceneGraph-3.3.1\src\osgPlugins\V8\V8Scr