Calculatin a cam path "around" a geometry

Julien Bayle's icon

Hi there,

I'd need to calculate (at launch time for instance) path (curve splines) for a camera I'd like to move around a geometry made of meshes.

For instance, I'd have a mesh, evolving, being scaled up or down, altered by many things, and I'd have a path around it more or less close to it, and that could evolve. My camera would follow this, looking at a specific point, (like the mesh barycenter)

Any best practices for this ?
I could also precalculate but that would be more flexible to do that with any mesh load at any time.

Best regards,
Julien Bayle

michelez's icon

Hi again Julien,
I also was wondering about this issue. I came to a fairly good compromise by using a combination of jit.mo objects. I use a few jit.mo.func objects to create a pseudo random motion of the camera. If you want the camera to follow the moving object you can just add the position of the object to the pseudorandom motion coordinate. Then I use a jit.mo.field to determine how close I want the camera to be to the object. This way I can hav a continuous motion with a controllable distance from the things I want the camera to lookat.
This is not ideal if you want a specific path to be followed of course, it's more about changing the point of view randomly

Pedro Santos's icon

Just to clarify:

  1. Do you want the camera to follow a very specific spline path or

  2. Do you want to generate a semi-random camera animation that follow a defined set of rules?

The implementation is completely different...