Miguel,

I'm very glad that it is working for you.   Hopefully it will meet your 
requirements or at least give you a jump start for your application.

Mike Hartman 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miguel Martinez
Sent: Thursday, May 31, 2007 9:18 AM
To: osg users
Subject: Re: [osg-users] about the osgViewerMFC example

Hi Michael & Robert,
I found the problem. Now everything works OK.
Is not necessary to switch off the display lists.

I didn't realize that the selected model wasn't loading correctly,
that was becasuse in this Developer Releases the plugin DLL's
are in different folders, so the .osg files didn't load :P

Sorry if I made you loose too much time with this stupid problem.
I should debug better the code before asking.... :S
But thank you very much for answering, and to take interest of it !


// Miguel Martinez


Hartman, Michael W. (MSFC-NNM06AA05Z)[PEOPLETEC] escribió:
> Miguel & Robert,
>
> I have made some changes that seem to fix the closing crash but still not 
> sure what is causing the problem with rendering.  I have tried the program on 
> several different machines and all of them run fine.  I just saw a post where 
> someone recommended to turn off displaylists (setUseDisplayList(false)) and 
> this could be something for you to try.
>
> I will try to get the modified files out to Robert this afternoon for the 
> closing bug and hopefully that will clean that up.
>
> Please let me know if turning off the displaylist fixes the rendering problem.
>
> Thanks,
> Mike
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miguel Martinez
> Sent: Tuesday, May 29, 2007 3:25 AM
> To: osg users
> Subject: Re: [osg-users] about the osgViewerMFC example
>
> Hi Robert & Mike
>
> I tested the osgViewerMFC of the 1.9.6 version, with the 
> PFB_DOUBLEBUFFER defined,
> and I get exactly the same results.
>
> I have no idea of what can be wrong.
>
>
> Robert Osfield escribió:
>   
>> Hi Mike & Miguel,
>>
>> First up the PFB_DOUBLEBUFFER was fixed by Mike last week, so is part
>> of the 1.9.6 release.
>>
>> Second up, not sure why the optimizer might fail.  I haven't used this
>> example at all (I work  under Linux), in general the optimizer does
>> crash.
>>
>> Thirdly, this is a note for Mike, the threads on exit should clean
>> themselves up automatically, but... if the graphics context is deleted
>> before viewer threads are stopped then it could cause problems that
>> the viewer can't do anything about.  On close windows you should see
>> if you can defer the window close to the viewer to handle.
>> Alternatively call stopThreading on the viewer on the windows.
>>
>> Finally I have to add this example is really an example that would
>> probably be best done using CompositeViewer with each new window a
>> separate View rather than a separate Viewer.
>>
>> Robert.
>>
>>
>>
>> On 5/28/07, Hartman,  Michael W. (MSFC-NNM06AA05Z)[PEOPLETEC]
>> <[EMAIL PROTECTED]> wrote:
>>     
>>> Not sure why the optimizer crashed but with the second issue I had 
>>> the same problem on my home computer and found that the pixel 
>>> description needed to have PFD_DOUBLEBUFFER defined.  Once I added 
>>> this I was able to see the object but without it all I had was a blue 
>>> background for the window.  Please check to make sure that your pixel 
>>> description has this defined (located in the MFC_OSG.cpp file).   I 
>>> know that the latest subversion contains this change.
>>>
>>> As for the last issue; I have also seen this (on my home pc, it is 
>>> intermittent) and believe it is a threading issue (trying to close 
>>> the window before all threads have exited) and I don't have much 
>>> experience with threading so I would have to rely on the community to 
>>> get into the code and figure out how to fix the issue.
>>>
>>> Thanks,
>>> Mike
>>>
>>> ________________________________
>>>
>>> From: [EMAIL PROTECTED] on behalf of Miguel Martinez
>>> Sent: Mon 5/28/2007 3:49 AM
>>> To: osg users
>>> Subject: [osg-users] about the osgViewerMFC example
>>>
>>>
>>>
>>> Hi all,
>>>
>>> I have the 1.9.5 OSG release, and testing the osgViewerMFC example I
>>> have found several problems:
>>>
>>> - When loading a model, optimizer.optimize crashes
>>> - When I comment this line, the program runs correctly but when I load a
>>> file, I dont see the model, just an empty scene.
>>> - When I close the app, the program crashes in 
>>> CMDIChildwindow::MDIDestroy()
>>>
>>> I'm using VC.NET 2003.
>>> Am I the only one with this problem ? Am I doing something wrong ?
>>> Can someone post another more stable example using MFC's ?
>>>
>>> thanks !
>>>
>>> // Miguel Martinez
>>> _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://openscenegraph.net/mailman/listinfo/osg-users
>>> http://www.openscenegraph.org/
>>>
>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://openscenegraph.net/mailman/listinfo/osg-users
>>> http://www.openscenegraph.org/
>>>
>>>
>>>       
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://openscenegraph.net/mailman/listinfo/osg-users
>> http://www.openscenegraph.org/
>>
>>     
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>   

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to