Nah, it's just it's default behaviour. Every time the context is
regenerated (open application, change screen orientation, go to desktop and
resume, etc) it creates again the viewer for the new conditions and the
scene is emptied. It's a toy example and there are a lot of cases that have
to be accounted in a real world application and that i didn't put there.
The logic step it's to preserve the root node of the scene in some way,
like passing a reference pointer to the java section or maintain a variable
in the native path, but beware of global pointers to such work because they
tend to be unrealiable.

Good luck

2012/7/2 Emil Le sur <[email protected]>

>
>
> Is it an Android problem ? A basic OSG problem ? An OSG on Android problem
> ? I simply wanted to know if any of you already had (and hopefully solved)
> this problem or if you could show me the right direction.
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to