- This topic has 4 replies, 3 voices, and was last updated 9 years, 5 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › [SOLVED] Interactive/Recorded Camera
Tagged: camera
Hi everyone,
I would like to launch a sofa scene with a specific camera (position, orientation, …). I also would like to script this camera (rotate arround ….).
When looking components, I found interactiveCamera and recordedCamera.
However I did not find any examples where those components work correctly.
*For the interactiveCamera, I did not find any way to set the parameters, they are always set to the defaults ones.
*For the recordedCamera, I do not fully understand how to use it, should I just launch the scene or should I choose “Save Recorded Camera” in the mouse options.
Do you how to use them ?
Thanks !
Hi,
* InteractiveCamera : (bug) the position and orientation are read from the .view file (when you save view, this file is created), so edit this file if you want to edit the starting position and orientation.
* RecordedCamera : there is a example file in examples/Components/visualmodel/RecordedCamera.scn, in which you can learn how to define moves.
I hope this is helpful for you !
Thanks for the .view trick !
However for RecordedCamera, the example does not seem to work properly.
Hi,
I think the RecordedCamera.scn doesn’t work anymore.
If you want to navigate along a path, see the example of NavigationRecordedCamera.scn. It interpolates intermediate camera view points linearly.
You can also see this wiki page for more details:
http://www.sofa-framework.org/oldwiki/index.php/How_to_manage_the_recorded_camera
Hi,
The scene RecordedCamera.scn works now I fixed it.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.