You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is cool, whens that coming? I'm trying out some trajectories myself too
You can just add a new python file in path "VistaDream/ops/trajs/", you can call it "rot.py", and then you can just write the
code in Funciton: generate_rot_trajectory like this:
defgenerate_rot_trajectory(num_frames, radius):
t=np.linspace(0, 1, num_frames)
r=radius# rotation angles at each frametheta=2*np.pi*t# try not to change y (up-down for floor and sky)x=r*np.cos(theta)
y=np.full(num_frames, 0)
z=r*np.sin(theta)
returnx, y, z
And you can just keep the other things in the same as the file in: "VistaDream/ops/trajs/spiral.py"
TODO: Allow users to select more types of trajectories.
A 360-Degree-Rot-Traj example is shown below. Thank Hongjie Li @Geo-Tell for this video.
rot.mp4
The text was updated successfully, but these errors were encountered: