- This topic has 2 replies, 2 voices, and was last updated 3 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › Navigation Recorded Camera
Hi,
when using the RecordedCamera component in navigation mode is there a way to manually set the speed of the camera moving for each movement (i.e. determine key times at which the camera reaches each way point)? As far as my understanding goes it takes 50s for every move to happen right now.
Also, is it possible to use lookAt values rather than quaternion orientation or compute quaternions with position + lookAt information? I am having trouble figuring out orientation when adding new way points.
I am using Sofa 20.06 with Sofa Python (still Python 2).
Thanks!
Ok, so I just figured that the entire sequence loops after 200 s and all of the moves take up the same fraction of that – adding points in the middle of movements should then enable me to influence the speed the way I want to.
What is strange about the stuff regarding orientation is that when I manually configure a camera pose that I like and then use ‘Save View’ to receive the position and orientation that pose is not the same when using RecordedCamera in navigation mode. This makes it incredibly hard to find good values for navigation at the moment. Also, for some reason the movements are not continuous at some point.
E.g. this is the movement I am testing currently with my object being located at ‘0 0 6’:
rootNode.createObject('RecordedCamera', name='recCam',
cameraPositions='0 0 0 0 0 -2 -3.16585 1.921903 -1.64586 -2.84849 1.06864 -1.08607',
cameraOrientations='1 0 0 0 1 0 0 0 0.988631 0.0218145 -0.13557 -0.061273 0.988631 0.0218145 -0.13557 -0.061273',
listening='1', projectionType='0', navigationMode='1')
First two moves (zooming out and slight tilt with side movement) work fine but then the view jumps before the third move is executed (also the end pose is different then the one I extracted with ‘Save View’). This should just be a translation or am I missing something? I am not very familiar with quaternions so maybe someone can help me with that.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.