3DStreet / 3dstreet-editor

3DStreet Editor Repo
https://3dstreet.app
Other
18 stars 3 forks source link

add automatic camera movement support #393

Open kfarr opened 5 months ago

kfarr commented 5 months ago

Ideas from @rostyslavnahornyi from @kfarr's notes

Create scenery viewer with moving camera (ie imagine in each community scene, a button to "review" a new page where people can see automatic camera movement inspection ... )

vincentfretin commented 5 months ago

You can probably start using something like this https://github.com/c-frame/aframe-cursor-teleport/issues/55 and in the editor, define a sequence of points of interest with position with rotation, and move to the next point automatically. Maybe a change would be needed to define the animation duration based on the distance between the two points. Or something like https://github.com/protyze/aframe-alongpath-component that seems to do just that.

kfarr commented 4 months ago

Great feedback @vincentfretin thank you!

Another example method from @mrxz demonstrated here: https://fingerpaint.fern.solutions/ and described:

It's a single camera entity with a component that handles all the movement and 'switching'. There's a list of "shots", where each shot is defined as a starting position, end position, looking direction (or lookAt target), fov and a duration. Each tick the component simply updates all the properties on the camera. If a shot ended, the next position and orientation will be that of the next shot, creating the illusion that it switched to a "different camera".

vincentfretin commented 4 months ago

If found again this tweet, camera movement through a gaussian splat, looks good: https://twitter.com/tommyoshima/status/1753235906776244526