Details of camera dolly settings

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Peter Bishop
Posts: 21
Joined: Thu Aug 28, 2014 10:47 pm

Details of camera dolly settings

Post by Peter Bishop » Tue Oct 06, 2020 3:40 am

Hello,

I have been using the dolly camera tool in OpenSim 3.3 to create some movies of my model motions; I really like this feature!

So far I have been manually orienting my camera at a given time interval to how I want it to be, and saving that configuration to the list in the Camera Editor window. I can then save the resulting 'camera motion' as a .cam dolly settings file for later use. However, I'd really like to be able to programmatically set up a sequence of camera configurations over time, so that the resulting 'camera motion' is smooth and precise. I was thinking of writing some MATLAB code to print a .cam file for me that will do this.

The problem is that I do not understand what all the individual entries in the .cam file (or in the GUI window, see attached screenshot) actually means, preventing me from writing a .cam file without needing to consult the GUI as to what the entries do. (Some are easy, like 'pos' and 'dir', but others I haven't a clue.) I haven't been unable to find any documentation outlining this, so was wondering if anybody may be able to provide some insight here please?

Many thanks in advance for any help, and stay well all!

Peter Bishop.
Attachments
Camera.jpg
Camera.jpg (54.98 KiB) Viewed 345 times

Tags:

User avatar
Ayman Habib
Posts: 2252
Joined: Fri Apr 01, 2005 12:24 pm

Re: Details of camera dolly settings

Post by Ayman Habib » Tue Oct 06, 2020 9:43 am

Hi Peter,

The attributes of the camera (e.g. Clipping planes near/far, focal point, up direction etc.) are built into the camera object from vtk (the visualization package we used then). The GUI performs interpolation of these camera positions to generate the movie. You may want to lookup the info for vtkCamera online for explanation.

In version 4.0 we moved away from vtk to a new visualizer, so you may want to keep that in mind before investing time in writing your own camera interpolation code.

Hope this helps,
-Ayman

User avatar
Peter Bishop
Posts: 21
Joined: Thu Aug 28, 2014 10:47 pm

Re: Details of camera dolly settings

Post by Peter Bishop » Tue Oct 06, 2020 11:58 pm

Hello Ayman,

that's perfect, thanks! Searching for 'vtkCamera' online produced all the explanation I required.

If anybody else runs into this, this website is very handy: https://vtk.org/doc/nightly/html/classvtkCamera.html

Thanks again,
Peter.

User avatar
Tylan Templin
Posts: 40
Joined: Mon Jan 15, 2018 10:55 am

Re: Details of camera dolly settings

Post by Tylan Templin » Tue Jan 05, 2021 11:33 am

Is it possible to set a specific camera perspective (as described above) in OpenSim 4.1 without having to manually rotate the screen in the GUI?

Thanks for your help!

Ty

POST REPLY