Flying the camera around a 3D object?
#3
I'm sorry, but I'm still confused.   You wrote...


. . .
You have the most control of the camera when you use FreeCamera - there you define the TargetPosition and CameraPosition (you can also set UpDirection).


. . .


If you want to create a fly-by effect where you will present a specified 3D object, I would recommend you to use TargetPositionCamera and animate heading, attitude, distance and TargetPosition.


That's what I'm using now, as you see in the sample code I posted in the question.   But I don't understand how to "fly" it around my object.   If I change the target position then I'm flying the object around the camera, instead of the camera around the object.

So wouldn't the FreeCamera be a better choice, because it has a CameraPosition parameter as well as a TargetPosition?    Although I'm a bit confused about the Freecamera too, because I'll need to set its look direction, so I can keep it looking at the object while I move it.  But the documentation says

LookDirection    Gets or sets a Vector3D which defines the upward direction of the camera.

I think of "up direction" and "look direction" as different things.    

Thanks in advance for further clarification
  


Messages In This Thread
RE: Flying the camera around a 3D object? - by pnelsonAG - 06-02-2017, 06:28 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)