Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More types of trajectories coming SOON. #11

Closed
HpWang-whu opened this issue Nov 8, 2024 · 3 comments
Closed

More types of trajectories coming SOON. #11

HpWang-whu opened this issue Nov 8, 2024 · 3 comments

Comments

@HpWang-whu
Copy link
Contributor

HpWang-whu commented Nov 8, 2024

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
@keyonchrist
Copy link

This is cool, whens that coming? I'm trying out some trajectories myself too

@HpWang-whu
Copy link
Contributor Author

Hi @keyonchrist ,
Thanks for your interest! I will update it and some other features at about December.

Yours,

@Daibo-Baby
Copy link

Daibo-Baby commented Nov 12, 2024

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:

def generate_rot_trajectory(num_frames, radius):
    t = np.linspace(0, 1, num_frames)
    r = radius
    # rotation angles at each frame
    theta = 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)
    return x, y, z 

And you can just keep the other things in the same as the file in: "VistaDream/ops/trajs/spiral.py"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants