Re: [osg-users] [osgOcean] ocgOcean question
Hi Nick, I don't know too much about the implementation details of osgOcean but I believe the compute off the ocean geometry is done on the CPU right now. When I've done testing the CPU load has not been anywhere near what you are seeing though. Are you testing under a debug build? Robert. On Tue, Jan 5, 2010 at 6:52 AM, Trajce Nikolov nikolov.tra...@gmail.com wrote: What I am getting is View in a Window. Please see the attached image. The osgOcean opens another window instead of rendering in the one I created. Any ideas, hints? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Mon, Jan 4, 2010 at 8:50 AM, Trajce Nikolov nikolov.tra...@gmail.com wrote: Hi Tian Ma, well, the example works just fine. Also, when I step thru, I am not getting any errors. Just not able to see the ocean surface and getting the screen aligned quad (black) ... Any ideas? Nick http://www.linkedin.com/in/tnick On Mon, Jan 4, 2010 at 5:46 AM, Tian Ma tianxiao...@foxmail.com wrote: Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 ___ 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
Re: [osg-users] [osgOcean] ocgOcean question
Hi Nick, osgOcean (with all the effects turned on) renders to a quad on the screen, this is because there are a number of post processing effects that require it (glare, dof). If I understand your problem correctly, you will need to set the frame buffer size to the size of your window with setScreenDims( osg::Vec2f ) and the quad will fill the window. Alternatively turn off glare and depth of field. Regards, Kim. 2010/1/5 Trajce Nikolov nikolov.tra...@gmail.com What I am getting is View in a Window. Please see the attached image. The osgOcean opens another window instead of rendering in the one I created. Any ideas, hints? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Mon, Jan 4, 2010 at 8:50 AM, Trajce Nikolov nikolov.tra...@gmail.comwrote: Hi Tian Ma, well, the example works just fine. Also, when I step thru, I am not getting any errors. Just not able to see the ocean surface and getting the screen aligned quad (black) ... Any ideas? Nick http://www.linkedin.com/in/tnick On Mon, Jan 4, 2010 at 5:46 AM, Tian Ma tianxiao...@foxmail.com wrote: Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 ___ 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
Re: [osg-users] [osgOcean] ocgOcean question
Hi Kim, I turned that off and I see the quad only under water. One more thing. I am trying to implement osgEphemeris with osgOcean, and so far it looks good but two problems. Somehow, when I add the ephemeris into the ocean scene, I am getting the sun rotated 180 around Z, and it is scaled - at least that are the visual impressions. Any thoughts on this? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Tue, Jan 5, 2010 at 11:14 AM, Kim Bale kcb...@googlemail.com wrote: Hi Nick, osgOcean (with all the effects turned on) renders to a quad on the screen, this is because there are a number of post processing effects that require it (glare, dof). If I understand your problem correctly, you will need to set the frame buffer size to the size of your window with setScreenDims( osg::Vec2f ) and the quad will fill the window. Alternatively turn off glare and depth of field. Regards, Kim. 2010/1/5 Trajce Nikolov nikolov.tra...@gmail.com What I am getting is View in a Window. Please see the attached image. The osgOcean opens another window instead of rendering in the one I created. Any ideas, hints? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Mon, Jan 4, 2010 at 8:50 AM, Trajce Nikolov nikolov.tra...@gmail.comwrote: Hi Tian Ma, well, the example works just fine. Also, when I step thru, I am not getting any errors. Just not able to see the ocean surface and getting the screen aligned quad (black) ... Any ideas? Nick http://www.linkedin.com/in/tnick On Mon, Jan 4, 2010 at 5:46 AM, Tian Ma tianxiao...@foxmail.com wrote: Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 ___ 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
Re: [osg-users] [osgOcean] ocgOcean question
Hi Nick I turned that off and I see the quad under water. see attached Did you turn off depth of field aswell? Somehow, when I add the ephemeris into the ocean scene, I am getting the sun rotated 180 around Z, and it is scaled - at least that are the visual impressions. Any thoughts on this? In the reflection on the ocean surface or the scene itself? K. 2010/1/5 Trajce Nikolov nikolov.tra...@gmail.com Hi Kim, I turned that off and I see the quad under water. see attached One more thing. I am trying to implement osgEphemeris with osgOcean, and so far it looks good but two problems. Somehow, when I add the ephemeris into the ocean scene, I am getting the sun rotated 180 around Z, and it is scaled - at least that are the visual impressions. Any thoughts on this? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Tue, Jan 5, 2010 at 11:14 AM, Kim Bale kcb...@googlemail.com wrote: Hi Nick, osgOcean (with all the effects turned on) renders to a quad on the screen, this is because there are a number of post processing effects that require it (glare, dof). If I understand your problem correctly, you will need to set the frame buffer size to the size of your window with setScreenDims( osg::Vec2f ) and the quad will fill the window. Alternatively turn off glare and depth of field. Regards, Kim. 2010/1/5 Trajce Nikolov nikolov.tra...@gmail.com What I am getting is View in a Window. Please see the attached image. The osgOcean opens another window instead of rendering in the one I created. Any ideas, hints? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Mon, Jan 4, 2010 at 8:50 AM, Trajce Nikolov nikolov.tra...@gmail.com wrote: Hi Tian Ma, well, the example works just fine. Also, when I step thru, I am not getting any errors. Just not able to see the ocean surface and getting the screen aligned quad (black) ... Any ideas? Nick http://www.linkedin.com/in/tnick On Mon, Jan 4, 2010 at 5:46 AM, Tian Ma tianxiao...@foxmail.comwrote: Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 ___ 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 list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgOcean] ocgOcean question
Hi Kim, Did you turn off depth of field aswell? yes In the reflection on the ocean surface or the scene itself? in the scene Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Tue, Jan 5, 2010 at 12:06 PM, Kim Bale kcb...@googlemail.com wrote: Hi Nick I turned that off and I see the quad under water. see attached Did you turn off depth of field aswell? Somehow, when I add the ephemeris into the ocean scene, I am getting the sun rotated 180 around Z, and it is scaled - at least that are the visual impressions. Any thoughts on this? In the reflection on the ocean surface or the scene itself? K. 2010/1/5 Trajce Nikolov nikolov.tra...@gmail.com Hi Kim, I turned that off and I see the quad under water. see attached One more thing. I am trying to implement osgEphemeris with osgOcean, and so far it looks good but two problems. Somehow, when I add the ephemeris into the ocean scene, I am getting the sun rotated 180 around Z, and it is scaled - at least that are the visual impressions. Any thoughts on this? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Tue, Jan 5, 2010 at 11:14 AM, Kim Bale kcb...@googlemail.com wrote: Hi Nick, osgOcean (with all the effects turned on) renders to a quad on the screen, this is because there are a number of post processing effects that require it (glare, dof). If I understand your problem correctly, you will need to set the frame buffer size to the size of your window with setScreenDims( osg::Vec2f ) and the quad will fill the window. Alternatively turn off glare and depth of field. Regards, Kim. 2010/1/5 Trajce Nikolov nikolov.tra...@gmail.com What I am getting is View in a Window. Please see the attached image. The osgOcean opens another window instead of rendering in the one I created. Any ideas, hints? Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Mon, Jan 4, 2010 at 8:50 AM, Trajce Nikolov nikolov.tra...@gmail.com wrote: Hi Tian Ma, well, the example works just fine. Also, when I step thru, I am not getting any errors. Just not able to see the ocean surface and getting the screen aligned quad (black) ... Any ideas? Nick http://www.linkedin.com/in/tnick On Mon, Jan 4, 2010 at 5:46 AM, Tian Ma tianxiao...@foxmail.comwrote: Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 ___ 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 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
Re: [osg-users] [osgOcean] ocgOcean question
Hi Nick: The effect is very interesting. I just want to get the effect profile, which means that we could see both underwater and above water. How could I get that effect? Cheers, MT Trajce Nikolov wrote: Hi Kim, I turned that off and I see the quad under water. see attached One more thing. I am trying to implement osgEphemeris with osgOcean, and so far it looks good but two problems. Somehow, when I add the ephemeris into the ocean scene, I am getting the sun rotated 180 around Z, and it is scaled - at least that are the visual impressions. Any thoughts on this? Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Izmit, 41, Turkey On Tue, Jan 5, 2010 at 11:14 AM, Kim Bale () wrote: Hi Nick, osgOcean (with all the effects turned on) renders to a quad on the screen, this is because there are a number of post processing effects that require it (glare, dof). If I understand your problem correctly, you will need to set the frame buffer size to the size of your window with setScreenDims( osg::Vec2f ) and the quad will fill the window. Alternatively turn off glare and depth of field. Regards, Kim. 2010/1/5 Trajce Nikolov () What I am getting is View in a Window. Please see the attached image. The osgOcean opens another window instead of rendering in the one I created. Any ideas, hints? Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Izmit, 41, Turkey On Mon, Jan 4, 2010 at 8:50 AM, Trajce Nikolov () wrote: Hi Tian Ma, well, the example works just fine. Also, when I step thru, I am not getting any errors. Just not able to see the ocean surface and getting the screen aligned quad (black) ... Any ideas? Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) On Mon, Jan 4, 2010 at 5:46 AM, Tian Ma () wrote: Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) (http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick)) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 (http://forum.openscenegraph.org/viewtopic.php?p=22044#22044) ___ osg-users mailing list () http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org) ___ osg-users mailing list () http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org) ___ osg-users mailing list () http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org) -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22123#22123 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgOcean] ocgOcean question
Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgOcean] ocgOcean question
Hi Tian Ma, well, the example works just fine. Also, when I step thru, I am not getting any errors. Just not able to see the ocean surface and getting the screen aligned quad (black) ... Any ideas? Nick http://www.linkedin.com/in/tnick On Mon, Jan 4, 2010 at 5:46 AM, Tian Ma tianxiao...@foxmail.com wrote: Hi Nick: Could you run the ocean example successfully? Any errors occured when you get a back screen? Cheers, MT Trajce Nikolov wrote: Hi, I am trying to embed the ocean stuff into my application. I mimic the code from the example, and all I get is 2D black screen aligned quad. Any hints? Thanks Nick http://www.linkedin.com/in/tnick (http://www.linkedin.com/in/tnick) Sent from Devlet, Ankara, Turkey -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22044#22044 ___ 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