[osg-users] drawing line geometry on a 2D ortho viewport
Hello, im sorry to keep asking for help but im totaly stuck on trying to draw prmitive geometry to a 2D ortho screen in OSG. Ive been experimenting with both the OSGhud and OSG geometry examples an i have just ended up with a huge mess, with no visible results. I have taken the OSG geometry example and i can compile and run it fine and see the lines and polygons. I have then converted the viewer camera to a 2Dorth projection matrix, but in doing so i get no geomtry visible. In addition it seems the gemoetry example is still rendering the geomtry in 3d space with Vec3 required for the vertex points, but in the native opengl examples i have seen on the net they use Vec2 for simple X,Y. this is the original main code from the OSG geometry example int main(int, char **) { // create the model osg::Group* root = new osg::Group; root-addChild( createScene() ); root-addChild( createBackground() ); //osgDB::writeNodeFile(*root,"geoemtry.osg"); osgViewer::Viewer viewer; // add model to viewer. viewer.setSceneData( root ); return viewer.run(); } can any help me by showing how the viewer camera can be set to 2D orth, no quad, no background,so that one can still see the geometry rendered on screen. Everytime i set it to 2D ortho no geometry is ever visible. Any help appreciated, im tearing my hair out, and have no idea what to try next. ThanksPeter DeSantis[EMAIL PROTECTED]Jumbo Vision International Pty LtdUnit 2 ,1 Aitken WayKewdale WA 6105AustraliaTel: 61 8 9353 6200Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] drawing line geometry on a 2D ortho viewport
Hi thanks for that i got that to work, but i dont understand why the bellow option where i adjust the viewer camera directly does not work as well ? It only seems to work if i set them as nodes and add as childs. Why is that ? It seems to me to be doing the same thing In addition i assume 1.using the ABSOLUTE_RF option sets the view matrix to the default opengl (is that right ??) is it the same as the default opengl glLoadidentity for a different axis alignment 2. then i would have to use osg:Matrix rot; rot.makeRotate(90,osg::Vec3(1,0,0)); to rotate the matrix so that i have a +x(right), +Y (up) axis alignement. int main(int, char **){ // create the model osg::Group* root = new osg::Group; root-addChild( createScene() ); osgViewer::Viewer viewer; viewer.getCamera()-setProjectionMatrixAsOrtho2D(-2,2,-2,2); viewer.getCamera()-setViewMatrix(osg::Matrix::identity()); // add model to viewer.viewer.setSceneData( root );return viewer.run();} thanks for any help Peter Hi,try this modified code and compare with the unchanged example. You can use ABSOLUTE_RF as well, you will just need to rotate the matrix for the viewer's default camera. Or change the default camera to be in your coord system.From the transform callback you can see that the default view direction of the camera is aligned with the y-axis.transform-setMatrix(osg::Matrix::translate(0.0f,1.0f+cosf(time*_angular_velocity),0.0f));Therefore, the flat geometry will be drawn in the x-z plane (as you can see from the example's geom).You can use the 3rd coordinate of your geometry to place different things at different ranges (layers) from the camera.cheersjpint main(int, char **){// create the modelosg::ref_ptrosg::MatrixTransform modelview_abs = new osg::MatrixTransform();//modelview_abs-setReferenceFrame(osg::Transform::ABSOLUTE_RF);modelview_abs-setMatrix(osg::Matrix::identity());osg::ref_ptrosg::Projection projection = new osg::Projection();projection-setMatrix(osg::Matrix::ortho2D(-2,2,-2, 2));projection-addChild(modelview_abs.get());modelview_abs-addChild(createScene());modelview_abs-addChild( createBackground() );/*osg::Group* root = new osg::Group;root-addChild( createScene() );root-addChild( createBackground() );*///osgDB::writeNodeFile(*root,"geoemtry.osg");osgViewer::Viewer viewer;// add model to viewer.//viewer.setSceneData( root );viewer.setSceneData( projection.get() );return viewer.run();}Peter DeSantis wrote: Hello, im sorry to keep asking for help but im totaly stuck on trying to draw prmitive geometry to a 2D ortho screen in OSG. Ive been experimenting with both the OSGhud and OSG geometry examples an i have just ended up with a huge mess, with no visible results. I have taken the OSG geometry example and i can compile and run it fine and see the lines and polygons. I have then converted the viewer camera to a 2Dorth projection matrix, but in doing so i get no geomtry visible. In addition it seems the gemoetry example is still rendering the geomtry in 3d space with Vec3 required for the vertex points, but in the native opengl examples i have seen on the net they use Vec2 for simple X,Y. this is the original main code from the OSG geometry example int main(int, char **) { // create the model osg::Group* root = new osg::Group; root-addChild( createScene() ); root-addChild( createBackground() ); //osgDB::writeNodeFile(*root,"geoemtry.osg"); osgViewer::Viewer viewer; // add model to viewer. viewer.setSceneData( root ); return viewer.run(); } can any help me by showing how the viewer camera can be set to 2D orth, no quad, no background,so that one can still see the geometry rendered on screen. Everytime i set it to 2D ortho no geometry is ever visible. Any help appreciated, im tearing my hair out, and have no idea what to try next. Thanks Peter DeSantis [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Jumbo Vision International Pty Ltd Unit 2 ,1 Aitken Way Kewdale WA 6105 Australia Tel: 61 8 9353 6200 Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org-- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] loading a bitmap and displaying it
Hello i want to load a bitmap image and display it in osg. I wasplaning to emulate the osgHUD example and load a bitmap, map it to a quadstrip as a texture and addit as a child to the root node, using a ortho2d matrix for the camera. is this the only way to display a full screen bitmap in OSG ? And is there a way i could draw to the screen instead of loading a bitmap ? ThanksPeter DeSantis[EMAIL PROTECTED]Jumbo Vision International Pty LtdUnit 2 ,1 Aitken WayKewdale WA 6105AustraliaTel: 61 8 9353 6200Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] finding image files and how to correctly exit and osg application
Hi Robert, i was tripping myself up. When i was running the release exe outside the VS enviroment, it was not finding either the image file or the third party dll to load the image file. Then when i run it 3 times or more it would get locked to a XP os process. I dont know why. It seems to work ok now that the exe can file the images and dll. thanks Peter Hi Peter,The OSG itself doesn't lock files, it typically just open, reads thencloses them, so the culprit is almost certainly the OS or VisualStudioscrewing things up. Curiously I haven't heard of other with thisproblem. What OS are you working on?Another issue that seems to haunt Windows users is the various MSlibrary dependencies that VS requires, could it be that somethinghasn't been installed correctly on the other machines.Robert.On Jan 17, 2008 5:51 AM, Peter DeSantis [EMAIL PROTECTED] wrote: Hi i have successfully used cmake to build osg 2.2.0 with visual studio 2008. I have been able to create from scratch a new project in anew directory structure a test project based on the osgshape example and it builds and runs fine in both debug and release mode. MY problem is when i copy the release exe to another test machine i also copy the runtime dll and the image file that is loaded in the shape example to the same directory the exe is running from on the new computer. The exe runs fine, but does not find the image texture file even when its in the current directroy and in addition once the exe has been run i use the Esc key to exit it and then the program and directory become locked to some process i can not delete the file or directory i have to logout or reboot. Based on the OSGshape example is there a correct way to prevent the exe being locked to a process, and how can i make sure the image file is always found. The exe only gets locked when i run it independtly, theres no problem when i run it from visual studio. Thanks Peter DeSantis [EMAIL PROTECTED] Jumbo Vision International Pty Ltd Unit 2 ,1 Aitken Way Kewdale WA 6105 Australia Tel: 61 8 9353 6200 Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org --- Original Message --- From:"Robert Osfield" [EMAIL PROTECTED] To:"OpenSceneGraph Users" osg-users@lists.openscenegraph.org Date:Fri, 18 Jan 2008 08:52:21 + Subject:Re: [osg-users] finding image files and how to correctly exit and osg application Hi Peter,The OSG itself doesn't lock files, it typically just open, reads thencloses them, so the culprit is almost certainly the OS or VisualStudioscrewing things up. Curiously I haven't heard of other with thisproblem. What OS are you working on?Another issue that seems to haunt Windows users is the various MSlibrary dependencies that VS requires, could it be that somethinghasn't been installed correctly on the other machines.Robert.On Jan 17, 2008 5:51 AM, Peter DeSantis [EMAIL PROTECTED] wrote: Hi i have successfully used cmake to build osg 2.2.0 with visual studio 2008. I have been able to create from scratch a new project in anew directory structure a test project based on the osgshape example and it builds and runs fine in both debug and release mode. MY problem is when i copy the release exe to another test machine i also copy the runtime dll and the image file that is loaded in the shape example to the same directory the exe is running from on the new computer. The exe runs fine, but does not find the image texture file even when its in the current directroy and in addition once the exe has been run i use the Esc key to exit it and then the program and directory become locked to some process i can not delete the file or directory i have to logout or reboot. Based on the OSGshape example is there a correct way to prevent the exe being locked to a process, and how can i make sure the image file is always found. The exe only gets locked when i run it independtly, theres no problem when i run it from visual studio. Thanks Peter DeSantis [EMAIL PROTECTED] Jumbo Vision International Pty Ltd Unit 2 ,1 Aitken Way Kewdale WA 6105 Australia Tel: 61 8 9353 6200 Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users ma
[osg-users] looking for a simple example
Can anypoint point to or provide an example for OSg that would help me to learn to do the stuff bellow 1. open a viewer then 2. draw to the screen, i want to draw a test pattern like image and make it full screen with no borders. In doing so i would also have to know the screen current resolution, so i could make the test pattern bars equal sizes, regardless of the curent res 3. again in a fullscreen viewer load and display full screen bmp files, and create and image viewer Im using VC++ 2008 and XP I have done stuff in the past using straight opengl to draw to the opengl window, and load bmp to the opengl window but im note sure where to start with OSG ThanksPeter DeSantis[EMAIL PROTECTED]Jumbo Vision International Pty LtdUnit 2 ,1 Aitken WayKewdale WA 6105AustraliaTel: 61 8 9353 6200Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] stereo projector support in OpenSceneGraph
Hi , i do heaps of stereoscropic stuff with quadro cards. If you your projector takes 2 input sources, you can try connect to the two dvi ports on a single quadro card. then go the driver of the quadro card driver section and put the qudro into clone mode so that you get the same single desktop display on both outputs. The go to the advanced properties section on the quadro card and enable the stereoscopic feature, then select "clone mode stereo" as the stereo type. Then you can run any stereoscopic application that uses the standard "quad buffer frame sequential" opengl sterescopic format and the quadro driver will auto convert it to the clone stereo mode. In addition of course you could also try putting the quadro card into a dual view display mode, ignore everything i said above and run you application in a "dual screen" stereo format. I think openscenegraph supports both the bove stereo formats i mention. Its also usefull to understand exactly the format your projector is expecting as well. Peter Hi, our lab get a new stereo projector connects to two video outputs on one Quadro FX 5500. Does OpenSceneGraph support such stereo display? I used to do stereo display using two machine and now I have no idea how to do it using one single video card. Anyinformation will be appreciated. Yanling --- Original Message --- From:"Yanling Liu" [EMAIL PROTECTED] To:"OpenSceneGraph Users" osg-users@lists.openscenegraph.org Date:Wed, 16 Jan 2008 20:51:02 -0500 Subject:[osg-users] stereo projector support in OpenSceneGraph Hi, our lab get a new stereo projector connects to two video outputs on one Quadro FX 5500. Does OpenSceneGraph support such stereo display? I used to do stereo display using two machine and now I have no idea how to do it using one single video card. Any information will be appreciated. Yanling ___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] finding image files and how to correctly exit and osg application
Hi i have successfully used cmake to build osg 2.2.0 with visual studio 2008. I have been able to create from scratch a new project in anew directory structure a test project based on the osgshape example and it builds and runs fine in both debug and release mode. MY problem is when i copy the release exe to another test machine i also copy the runtime dll and the image file that is loaded in the shape example to the same directory the exe is running from on the new computer. The exe runs fine, but does not find the image texture file even when its in the current directroy and in addition once the exe has been run i use the Esc key to exit it and then the program and directory become locked to some process i can not delete the file or directory i have to logout or reboot. Based on the OSGshape example is there a correct way to prevent the exe being locked to a process, and how can i make sure the image file is always found. The exe only gets locked when i run it independtly, theres no problem when i run it from visual studio. ThanksPeter DeSantis[EMAIL PROTECTED]Jumbo Vision International Pty LtdUnit 2 ,1 Aitken WayKewdale WA 6105AustraliaTel: 61 8 9353 6200Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] stereo projector support in OpenSceneGraph
The technology used by the cinema to show beowolf can vary. The latest is the infitec based interfernce filters that dolby is using in the stereo cinemas that they are producing. there is a good cheap stereo media player based on media player classic for windows that works very very well and supports just about every stereo mode under the sun Peter On Thu, 17 Jan 2008, Jeremy Moles wrote: On Thu, 2008-01-17 at 16:47 -0500, Jeremy Moles wrote: On a separate but related note: I've got some 3D classed from the Beowulf movie. :) Can I make the cow pop out at me somehow? Bah, never mind--Wikipedia says Beowulf used a unique kind of stereo that only works on a special screen. :)This is a z-screen which applies polarization filtering on a stereoscopic image (frame) pair. The z-screen portion is easily replicated on a computer display with osg. Now if we only had a stereoscopic movieplayer plugin for osg... :} -bob On Thu, 2008-01-17 at 09:20 +, Robert Osfield wrote: Hi Yanling, The OSG supports various stereo modes, there is a page stereo on the openscenegraph.org wiki with details. For yourself you'll want to set up the graphics card with either with two screens and two graphics graphics windows, or two screens using TwinView so that the two screens are driven by one graphics window, the later will provide the best perfomance. The osgViewer library will automatically detect the set up and set up up a window across all the screens you have, and if you enable HORIZONTAL_SPLIT stereo mode then it'll set up the stereo across either both windows or just the single one. I have used both set ups before with the OSG so is well trodden ground. Try: osgviewer cow.osg --stereo HORIZONTAL_SPLIT Robert. On Jan 17, 2008 1:51 AM, Yanling Liu [EMAIL PROTECTED] wrote: Hi, our lab get a new stereo projector connects to two video outputs on one Quadro FX 5500. Does OpenSceneGraph support such stereo display? I used to do stereo display using two machine and now I have no idea how to do it using one single video card. Any information will be appreciated. Yanling ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org --- Original Message --- From:Bob Huebert [EMAIL PROTECTED] To:[EMAIL PROTECTED], OpenSceneGraph Users osg-users@lists.openscenegraph.org Date:Thu, 17 Jan 2008 14:22:33 -0900 (AKST) Subject:Re: [osg-users] stereo projector support in OpenSceneGraph On Thu, 17 Jan 2008, Jeremy Moles wrote: On Thu, 2008-01-17 at 16:47 -0500, Jeremy Moles wrote: On a separate but related note: I've got some 3D classed from the Beowulf movie. :) Can I make the cow pop out at me somehow? Bah, never mind--Wikipedia says Beowulf used a unique kind of stereo that only works on a special screen. :)This is a z-screen which applies polarization filtering on a stereoscopic image (frame) pair. The z-screen portion is easily replicated on a computer display with osg. Now if we only had a stereoscopic movieplayer plugin for osg... :} -bob On Thu, 2008-01-17 at 09:20 +, Robert Osfield wrote: Hi Yanling, The OSG supports various stereo modes, there is a page stereo on the openscenegraph.org wiki with details. For yourself you'll want to set up the graphics card with either with two screens and two graphics graphics windows, or two screens using TwinView so that the two screens are driven by one graphics window, the later will provide the best perfomance. The osgViewer library will automatically detect the set up and set up up a window across all the screens you have, and if you enable HORIZONTAL_SPLIT stereo mode then it'll set up the stereo across either both windows or just the single one. I have used both set ups before with the OSG so is well trodden ground. Try: osgviewer cow.osg --stereo HORIZONTAL_SPLIT Robert. On Jan 17, 2008 1:51 AM, Yanling Liu [EMAIL PROTECTED] wrote: Hi, our lab get a new stereo projector connects to two video outputs on one Quadro FX 5500. Does OpenSceneGraph support such stereo display? I used to do stereo display
Re: [osg-users] Fwd: CMake and VS 2008
Hello i have been trying to use cmake to compile osg src examples such as the osgteapot example, so that i can use it as a starting bas to learn osg. So far i have had no success. I have visual studio 2008 pro installed on XP sp2. I have osg 2.2 and can run all the pr compiled examples ok. if i use cmake-2.4.8-RC-11-win32-x86.exe and select visual studio 9 2008 in the configure option then i get an error saying it was unable to find a build program corresponding to visual studio 9 2008. if i use cmake 2.5, it successfull finds visual studio 9 2008 then begins the build process till it gets to about 10% then every single time it throws up and error that reads "unknown cmake command SETUP_EXAMPLE" and then i cannot get past this point. If any one has any ideas or a step by step guide as to what i should be doing please let me know. Im realy just looking for a basic example project that works in visual 2008 c++, that sets up a viewer window and loads a model, so that i can use that as a basic starting point. So far all the online examples i can find are for earlier versions of osg and VS and while i can get them to build i cant get them to run thanks for any help Peter Hello everyone,I just got this from Bill Hoffman, one of the CMake developers, in relation to my saying that you need CMake 2.5.x or eventually 2.6 to use it with VS2008 (9.0). They added support for it in the next version of CMake, and would appreciate it if we could test it.Personally, I only use 9.0 at home for now, so I will test it out tonight when I get back.J-S- Forwarded message from [EMAIL PROTECTED] -Date: Wed, 09 Jan 2008 12:43:58 -0500From: Bill Hoffman [EMAIL PROTECTED]Reply-To: Bill Hoffman [EMAIL PROTECTED]Subject: CMake and VS 2008To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]Via a google alert on CMake, I noticed this post of yours: Re: [osg-users] what binaries and libs can be used with visual ... You need CMake 2.5 (which is in the "nightly CVS snapshots" section on cmake.org - http://www.cmake.org/files/vCVS/ ) or 2.6 when it comes out. See the compilation instructions on openscenegraph.org, and pay heed to the platform specific info for VS2005, which still applies to 2008. 2. My c++ is a bit rusty, ...I have added support for VS 2008 to 2.4.8 RC 11, that you can find here:http://www.cmake.org/files/v2.4/cmake-2.4.8-RC-11-win32-x86.exeI am not on that list, but it would be nice if you could forward thisinformation to the list. I am about to make the 2.4.8 final release,and it would be good to get some feedback from OSG users. Thanks.-Bill- End forwarded message --- __Jean-Sebastien Guay [EMAIL PROTECTED]http://whitestar02.webhop.org/This message was sent using IMP, the Internet Messaging Program.___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org --- Original Message --- From:Jean-SbastienGuay [EMAIL PROTECTED] To:osg-users@lists.openscenegraph.org Date:Wed, 09 Jan 2008 13:46:28 -0500 Subject:[osg-users] Fwd: CMake and VS 2008 Hello everyone,I just got this from Bill Hoffman, one of the CMake developers, in relation to my saying that you need CMake 2.5.x or eventually 2.6 to use it with VS2008 (9.0). They added support for it in the next version of CMake, and would appreciate it if we could test it.Personally, I only use 9.0 at home for now, so I will test it out tonight when I get back.J-S- Forwarded message from [EMAIL PROTECTED] -Date: Wed, 09 Jan 2008 12:43:58 -0500From: Bill Hoffman [EMAIL PROTECTED]Reply-To: Bill Hoffman [EMAIL PROTECTED]Subject: CMake and VS 2008To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]Via a google alert on CMake, I noticed this post of yours: Re: [osg-users] what binaries and libs can be used with visual ... You need CMake 2.5 (which is in the "nightly CVS snapshots" section on cmake.org - http://www.cmake.org/files/vCVS/ ) or 2.6 when it comes out. See the compilation instructions on openscenegraph.org, and pay heed to the platform specific info for VS2005, which still applies to 2008. 2. My c++ is a bit rusty, ...I have added support for VS 2008 to 2.4.8 RC 11, that you can find here:http://www.cmake.org/files/v2.4/cmake-2.4.8-RC-11-win32-x86.exeI am not on that list, but it would be nice if you could forward thisinformation to the list. I am about to make the 2.4.8 final release,and it would be good to get some feedback from OSG users. Thanks.-Bill- End forwarded message --- __Jean-Sebastien Guay [EMAIL
[osg-users] what binaries and libs can be used with visual studio 2008 ?
Hi just 2 questions. 1. Can the visual studio 2008 use the compiled win32 binaries and libs in the osg 2.2 release or not ? I seen a lot of to and fro about this issue on the mailing list and wonder can some one give me a definite answer on this. If the naswer is no, then what do i need to do to get compatiable libs or binaries to use with visual studio 2008 ? 2. My c++ is a bit rusty, but when you link the libs into your project, and build a final result does it not embed the libs into you application exe and eleiminate the need for the run time osg DLL's. I thought that was the reason to link in the libs ? If this is not the case why not ? and then what exasctly is needed to run a final application on a XP/vista machine that has a clean install of the os ? EG osg runtime dll + c++ runtime or what ? Any advice appreciated ThanksPeter DeSantis[EMAIL PROTECTED]Jumbo Vision International Pty LtdUnit 2 ,1 Aitken WayKewdale WA 6105AustraliaTel: 61 8 9353 6200Fax: 61 8 9353 6211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgDotNet and Windows Forms
Hi Jason, thanks for your emails. I have not been able to get your osg component to work. I have updated the project references to the osgdotnet wappers and tao.opengl and tao.platform.windows to where they are on my system. the build goes ok, but trying to run the program or view the component in the form designer causes an error, where it says Could not load file or assembly 'Osg.NET, Version=0.8.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Hide at OSGTesting.OSGControl..ctor() The variable 'osgControl1' is either undeclared or was never assigned. HideEdit at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression _expression_)at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression _expression_)at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement) then causes visual c# express 2005 to crash and close. As i mentioned i have referenced the wrappers ok, and the build works ok, but so far i cannot work out what the problem is. I am using the latest download of the prebuilt wrappers on the OSG website, and the dll's from Tao framework, and the runtime DLL's are in the directories. I am using OSG 2.0.0 as specified at the wrapper download page. If you have any thoughts it would be appreciated. Peter DeSantis Hi Gavin,Peter DeSantis sent me an email offline and I sent him the project file I'm using. Here is the entire project. It is a VS2005 Express solution and you'll need to update your references to your copyof the wrappers. Thanks,JasonOn 10/3/07, Gavin Pailing [EMAIL PROTECTED] wrote:Hi,Have you made any progress with this as I think that I am having the same problem?I've been able to build osgDotNet generator and the wrappers and verify thatit is working using the same quad code which runs osgViewer full screen. Ialso followed Jason's example of using TAO to host osg content. It appears that the TAO control is working fine (assuming that a plain black backgroundis to be expected by default) but the OSG content does not appear.These are my first efforts at using OSG so I apologise if I'm missing anything obvious.Regards,Gavin-Original Message-From: [EMAIL PROTECTED][mailto: [EMAIL PROTECTED] On Behalf Of ChristofferMarkussonSent: 19 September 2007 14:13To: osg-users@lists.openscenegraph.orgSubject: Re: [osg-users] osgDotNet and Windows Forms Hi Jason,Thanks for your help!I've used your code to create a controller in Visual Studio. But whenI try to use the controller in a project it dosen't render anything.Could you please give me an example of how you use your controller? Christoffer2007/9/19, Jason Beverage [EMAIL PROTECTED]:Hi Christoffer,Here is a simple control that uses TAO to display an OSG window that I've used for testing.Thanks!Jason2007/9/18, Christoffer Markusson [EMAIL PROTECTED]: I'm using OSG together with C# in Visual Studio 2005 using the osgDotNet wrappers.Is there an easy way to integrate and display an OSG window in aWindows Form? Does anyone have example code? Christoffer___ osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org --- Original Message --- From:"Jason Beverage" [EMAIL PROTECTED] To:[EMAIL PROTECTED], "OpenSceneGraph Users" osg-users@lists.openscenegraph.org Date:Wed, 3 Oct 2007 12:27:33 -0400 Subject:Re: [osg-users] osgDotNet and Windows Forms Hi Gavin,Peter DeSantis sent me an email offline and I sent him the project file I'm using. Here is the entire project. It is a VS2005 Express solution and you'll need to update your references to your copy of the wrappers. Thanks,Jason On 10/3/07, Gavin Pailing [EMAIL PROTECTED] wrote: Hi,Have you made any progress with this as I think that I am having the same problem?I've been able to build osgDotNet generator and the wrappers and verify thatit is working using the same quad code which runs osgViewer full screen.Ialso followed Jason's example of using TAO to host osg content.It appears that the TAO control is working fine (assuming that a plain black backgroundis to be expected by default) but the OSG content does not appear.These