Can you move a camera but have IT face a particular spot?
Posted: Fri Sep 17, 2010 2:35 am
There is an option to make sure a layer will always face the camera.
Is there an option that does the reverse... that is... force the camera to always look at a particular location in 3D space or a particular layer (well, it's location)?
This 'focus point' function would control roll,pan, and tilt values of the camera based on a given (x,y,z) position of the camera, and continue to do so even when the camera is moved (i.e., when the (x,y,z) position of the camera changes, even via interpolation or path following).
What I'm trying to do will make this clear...
I want to have an object at a specific location in 3D space, and be able to move the camera in a circle around the object with the camera always facing the object. This is often used in movies, and was made fun of in 'Superhero Movie' (the actors in the scene get nauseous).
Now, I think I know a trick that will do this for this particular case... keep the camera still and rotate the world. But I want the general case.
I can also do the math, but that would take a long time. That is, take the camera location and the desired 'focus point' coordinates and figure out using trigonometry what the facing direction is (in roll, pan, and tilt) and plug this in.... for EVERY frame since it is not likely going to interpolate with the precision required to make this not look jerky. ouch.
Maybe this feature does exist. What about video tracking, can that be used for this? It seems to be more of a 2D function made for videos, so it doesn't seem like it would. I'm looking for camera 'tracking a position' in 3D...
* * *
If I knew how to do scripting I would do this 'point the camera there' as a script. But I downloaded the stuff in the Scripting forum on how to do LUA scripting for AS, and while the written part of the document is there, ALL the example code is MISSING!
So I have no examples to go by, and it was made clear to me that the documentation has errors in it and the ONLY way to study AS7PRO scripting via LAU is by studying examples... which are missing! (of course, why should this be easy...lol)
Is there a COMPLETE version of this information that can be downloaded from somewhere (and I mean both LUA AND how to use it to manipulate AS7PRO, which are the two different things needed to know)?
This seems like such an obvious camera function... if it's not a built in feature I would think someone would have built a script for just this function by now. If so, pointing me to that would be cool... if not... I'll try to make one and make it available... but that could take some time...
Is there an option that does the reverse... that is... force the camera to always look at a particular location in 3D space or a particular layer (well, it's location)?
This 'focus point' function would control roll,pan, and tilt values of the camera based on a given (x,y,z) position of the camera, and continue to do so even when the camera is moved (i.e., when the (x,y,z) position of the camera changes, even via interpolation or path following).
What I'm trying to do will make this clear...
I want to have an object at a specific location in 3D space, and be able to move the camera in a circle around the object with the camera always facing the object. This is often used in movies, and was made fun of in 'Superhero Movie' (the actors in the scene get nauseous).
Now, I think I know a trick that will do this for this particular case... keep the camera still and rotate the world. But I want the general case.
I can also do the math, but that would take a long time. That is, take the camera location and the desired 'focus point' coordinates and figure out using trigonometry what the facing direction is (in roll, pan, and tilt) and plug this in.... for EVERY frame since it is not likely going to interpolate with the precision required to make this not look jerky. ouch.
Maybe this feature does exist. What about video tracking, can that be used for this? It seems to be more of a 2D function made for videos, so it doesn't seem like it would. I'm looking for camera 'tracking a position' in 3D...
* * *
If I knew how to do scripting I would do this 'point the camera there' as a script. But I downloaded the stuff in the Scripting forum on how to do LUA scripting for AS, and while the written part of the document is there, ALL the example code is MISSING!
So I have no examples to go by, and it was made clear to me that the documentation has errors in it and the ONLY way to study AS7PRO scripting via LAU is by studying examples... which are missing! (of course, why should this be easy...lol)
Is there a COMPLETE version of this information that can be downloaded from somewhere (and I mean both LUA AND how to use it to manipulate AS7PRO, which are the two different things needed to know)?
This seems like such an obvious camera function... if it's not a built in feature I would think someone would have built a script for just this function by now. If so, pointing me to that would be cool... if not... I'll try to make one and make it available... but that could take some time...