Re: [osg-users] race condition in GraphicsWindowWin32?

2009-06-28 Thread Robert Osfield
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 Riddellc...@codeware.com 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


Re: [osg-users] maya plugin, anyone interested?

2009-06-28 Thread Robert Osfield
Hi Rabbi,

On Sat, Jun 27, 2009 at 2:45 PM, Rabbi Robinsonlonga...@gmail.com 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] FBOs, MRTs, pixelformats, depth textures....

2009-06-28 Thread Joseba Rodriguez
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] GLSL and OSG

2009-06-28 Thread Tomlinson, Gordon
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


[osg-users] [osgPlugins] GoogleMode

2009-06-28 Thread Adam Wise
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