[osg-users] Open Gl command in OSG^^
Hi All I know that OSG is extend library from Open GL but I don't find more OpenGl command as Gl.GlSphere,Gl.GlLighting .. and more ^^ Hi I don't know how to OSG use OpenGl to render model or some command to draw model of OsgViewer ^^ Hi have some one introduce for me ^^ Thanks, Ba. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Unspecified osgShadow problem
Hi Ümit, When I used "osgshadow --noUpdate --sm" resulted screen look like osgShadowError5.jpg [...] My System : XP SP2, ATI Radeon HD 2300, OSG 2.9.5 last Repository Look at the shadow in your osgShadowError5.jpg, you'll see that the cone's shadow is under the cube and vice versa. It has been discussed before on this list that on some ATI drivers, some texture coordinates are inverted (I don't remember if you need to negate the t coordinate or something like that) when doing shadow texture lookups (sampler2DShadow). Search the archives for details. Unfortunately I don't think the problem has been characterized precisely enough (some drivers have the problem, some don't) so no one has made a check for it in the osgShadow code yet. As for Shadow Texture the problem might be the same or it might not be. I'm not sure, I don't even think it's used that much. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgPlugins] GoogleMode
I think a possible solution to this is osgconv -o googlemode [model 1.flt] [model 2 .dae]. Is this valid? I think this might be the solution. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=14625#14625 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] GLSL and OSG
FYI: if you search the OSG mail archives the reasons have been discussed in detail before this Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __ -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ulrich Hertlein Sent: Friday, June 26, 2009 11:43 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] GLSL and OSG On 26/6/09 4:39 PM, Maxime BOUCHER wrote: > Just a question of curiosity. > > I can guess Z and Y defaults haven't been change just for fun neither the vector column/row. > But I wonder which are these reasons. The Z-up is popular in the vis-sim industry as it feels more natural to assume X-east, Y-north, Z-up. But it's not hard-coded or anything, just the default. You can change it without problems by specifying an up vector of osg::Vec3(0,1,0). Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FBOs, MRTs, pixelformats, depth textures....
Can anyone give me a hint about this? Cheers, J. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=14622#14622 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] maya plugin, anyone interested?
Hi Rabbi, On Sat, Jun 27, 2009 at 2:45 PM, Rabbi Robinson wrote: > Ok, I will give it a try and see how it works. Can .osg contain callbacks? > They are needed in animation. Yes .osg format supports callbacks, but you do need to provide the implementation of the reading/writing of the callback. Have a look at src/osgPlugins/osg/AnimationPath.cpp for example code. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] race condition in GraphicsWindowWin32?
Hi Cory, How did you close the application? Pressing escape or closing it via the window close button? Does the problem happen with other examples, such as osgwindow? Robert. On Fri, Jun 26, 2009 at 9:28 PM, Cory Riddell wrote: > In another message thread I've been talking about a threading problem in > my app. I just figured out how to reproduce it with one of the samples, > so I thought I would post that here in hopes that somebody else would > have an idea on how to fix this. > > I think it's a shutdown sequence race. To reproduce the problem, start > the osgviewerMFC sample app. Load the cow, turn on stats (hit 's') then > close the app. Sometimes you will get a crash. To make the crash happen > all the time, add a Sleep() call to the start of the WM_DESTROY handler > in MFC_OSG_MDIView.cpp: >> void CMFC_OSG_MDIView::OnDestroy() >> { >> Sleep(1200); >> if(mOSG != 0) delete mOSG; >> >> WaitForSingleObject(mThreadHandle, 1000); >> >> CView::OnDestroy(); >> } > > As far as I can see, when GraphicsWindowWin32 process the WM_DESTROY > message, it sets _valid to false for the context. This prevents > ~Viewer() from closing the context. This leaves a thread running and > that generates an access violation because it tires to use elements that > have been deleted. If the Viewer destructor is processed first, then > everything is ok. > > This is related to the presence of a slave camera (that's why you have > to turn the stats display on). > > Any ideas? > > Thanks, > Cory > ___ > 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