hello!
in the forum the question arose how to let a 3D camera fly through a 3D scene with other flying objects.
I think of store a curved path to get 3D coors from and use them for the camera.
I tried several approaches but no good one....
curvePoint is quite cool
http://www.processing.org/reference/curvePoint_.html
but for a longer path I need to stick together several curves which seems to be very unconvenient.
I looked at curveVertex where I can add many points but there is no
curvePoint for this to read the points afterwards and put them into the camera.
Or is there?
Then I look into lib Shapoes 3D by quarks. Amazing. Especially
the
Bezier tube editor
http://www.lagers.org.uk/s3d4p/applets/s3d4p_beziertubeeditor/index.html
But I didn't find a way to get one single path instead of a tube.
A path I could read out and give into camera.
Any ideas?
FInally I thought of making a class CameraData and store the 6 camera
positions and then make an ArrayList of it and store the points into it
the camera has to fly to. But I realized it would look uncool because
with fixed points, the camera would fly with rough angles.
So my questions are:
- Any ideas?
- If I stick to the idea of class CameraData, how would I smooth out the movement? Or use damping here?
- Has this beeen done before?
"How would I smooth out the movement?" That was also a question here of course.
https://forum.processing.org/topic/how-to-create-a-ball-that-remains-in-a-status-of-uniform-motion-in-a-curve-line#25080000002006989
Thank you!
Greetings, Chrisir
1