Re: [osg-users] OpenSceneGraph-2.8.2-rc4 problem with osgViewerFox
Hello ^^ If I try to compile the sample-program in debug-mode I also get an error, but a violation access-error (when he tries calling readNodeFile). I've also experienced the linker-warning when trying to compile in Release-mode. So has anyone solved the problem yet? Or does anyone have a different approach/idea how it could work? Thank you! Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15815#15815 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG and WPF Questions
Hello everyone, sorry for not writing so long, but I've been quite busy. I've tried some things to integrate OSG in .NET, but none of the solutions were satisfactory. As stated by Brian above, the WPF popup windows were flickering and I didn't manage to get the rendering to texture to work. Then I tried WinForms and there also at least the shadow of those windows were flickering. :( Now my boss said I should leave .NET aside and said I should try using the Fox-Toolkit. So everyone thank you for your help in .NET, but seems like I won't work on this topic any further. Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15810#15810 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG and WPF Questions
Hello everyone, thank you for your replies :) @Sergey: Thank you but I've tried exactly that, but the problem is that I want to integrate the window in the WPF-application and not open another window :( @Andrew: If I'm not wrong WPF uses only one HWND for the whole application. I guess that is where the problem lies, maybe I mix up my handlers. Anyway thank you for the code, maybe another way is to create a winforms-control and embed it into WPF (though it seems very strange OSG->Winforms->WPF). @Can: OK, I've never worked with ActiveX before so I'm not sure what you're talking about, but I'll research it, thanks. Again, thank you all, it's great that there are people here willing to help (and so fast :D) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15602#15602 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG and WPF Questions
Hi, seems like the 5 posts above should be in a new topic ^^; Addition to my post: I got the osgNETDemo running, but still its WindowsForms and not WPF, so I'd still be happy about any advise /help someone could give me :) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15594#15594 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OSG and WPF Questions
Hello, I'm new to OSG and WPF (though I've read quite a view tutorials the past 2 weeks) so I hope I don't ask too many stupid questions :) Task I have to program something very similar to a CAD-program. The program should be able to load files (stl-files) and you should be able to manipulate the model in different ways, selecting triangles, points, cutting, ... For the visualisation of the models and functionality I chose OSG since it seems to offer quite a lot and is pretty fast. (Also it has a reader for stl-files ;) ) The UI has to be made with WPF. So basically the "OSG-window" should be controlled via menus, buttons, mouse and keyboard-input. What I found out For the past view days I've researched this matter and found only a few tutorials on msdn and codeproject. But if I got that right the way to do the integration is: - C++: create a class ("OpenGLHwnd") that inherits from HwndHost - C++: create a window (or a dialog, but dialog didn't work for me) - C++: attach the viewer with the window (code taken from this site "... .NET-control ...") - C++: compile the whole thing as managed dll (/clr) - C#/WPF: use the dll and attach an instance of the class as child in a placeholder In the OpenGLHwnd-class I have to override BuildWindowCore, DestroyWindowCore, OnRenderSizeChanged and OnRender. Status Well, I just set up the whole thing and tried to make the "OpenGL"-window fit in the WPF-application. In this "OpenGL"-Window I just try to display two pyramids using OSG. My Problem If I use "normal" OpenGL-commands everything is displayed, but if I use the viewer, somehow not only the WPF-window is opened, but also an additional fullscreen window which shows the pyramids. I don't seem to get the window out of the fullscreen mode and fit in the WPF-application. My Questions Well, can anyone give me some advise to fix the problem? Or can someone tell me if the way I want to integrate OSG in WPF is right, because it seems pretty much like a bad "workaround" to me ^^; Are there any tutorials on this matter? (I've looked at the osgDotNetDemo from hesicong.net, but it doesn't work -> applicationcan't be initialized) I hope everything is understandable since english is not my mother tounge. Thank you in advance! Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15581#15581 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org