Hi Thomas,

The view being reset to 0,0,0 when pressing 'Z' before any animation
path has been created is a bug and certainly needs to be addressed.
The RecordAnimationPathHandler is meant for recording animation paths
rather than loading an playing already saved ones, and given one can
easily record an animation path file, then re-run a viewer with a new
model and then press 'Z' one wouldn't expect the previously saved
animation path to step in a take control - it could be totally
inappropriate.

I believe the appropriate fix would be to not have the
RecordCameraPathHandler do anything when no animation path has been
recorded. I have implemented better handling of an empty/invalid
AnimationPath so that the AnimationPathManipulator isn't created when
the path is not valid.  This fix is now checked into svn/trunk and the
OSG-3.0 branch.

Robert.

On Thu, Jul 21, 2011 at 5:20 PM, Thomas Lerman <[email protected]> wrote:
> Images disappear when playback is initiated on an empty (no data) 
> AnimationPathManipulator (nothing was recorded in the current session of the 
> application). At the least, the playback should not occur when no data 
> exists. At the best when no data exists, it should use the file name if it 
> exists to load playback. My submission takes care of these cases. The 
> comments in the text looks like it used to or was intended to load the file. 
> Testing was done with all scenarios of having data without a file, data with 
> a file, no data with a file, and no data without a file. Version downloaded: 
> 3.0.0.
>
> To reproduce:
> 1) Start application
> 2) Hit 'z', record a path, and stop with 'z'
> 3) Hit 'Z' to playback the path without any problem
> 4) Close & restart application
> 5) Hit 'Z' to playback the path previously saved and the images disappears
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to