Hello Christoph,

Christoph Schäfer wrote:
> I have to following simplified app structure:
> 
> * App core: thread A using aspect 0 (OSG::Init)
> * Qt gui and rendering : thread B using aspect 1
> 
> 
> The app starts up fine. I load a model using the gui, triggering an 
> operation executed by thread A. The model is loaded and added to the 
> scene root.
> 
> Before each frame rendering aspect 1 will sync to aspect 0 to pull in 
> the changes. This seems to work, I can see the models hierarchy pop up 
> in my scene graph within the gui and I see some geometry (it is the all 
> mighty tie model) in the render window. The odd thing is, opensg seems 
> to ignore the camera position on rendering and all rendering setup like 
> clipping etc at all. From what I can see through my debug output the 
> camera look from, at and cart node are updated and are being synced 
> correctly on user navigation input. Am I doing something commonly wrong 
> with this sync setup?

two quick questions:
- do you do the navigation/rendering setup on aspect 1, then it is 
possible/likely it gets overwritten when the sync from aspect 0 comes in.
- do you clear the changelist of aspect 0 after you have synced all 
changes to aspect 1? Otherwise everything would be recopied all the time 
making the above case where you overwrite changes made on aspect 1 even 
more likely.

        Hope it helps,
                Carsten

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to