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

Standard Views #502

Open
Rourke010 opened this issue Oct 17, 2024 · 0 comments
Open

Standard Views #502

Rourke010 opened this issue Oct 17, 2024 · 0 comments

Comments

@Rourke010
Copy link

Rourke010 commented Oct 17, 2024

While we wait for a functionality for the standard views I would like to ask:

I have loaded a model via

   <div class="online_3d_viewer"
        camera="0,0,25,0,0,0,0,1,0"
        model="..."

Once the model is loaded, how can I modify the camera via JavaScript to change to front view, side view, top view, etc? What are the values I need for the camera?

I tried to create a camera but I don't know how to modify it for the current canvas element:

camera = new OV.Camera (
            new OV.Coord3D (-1.5, 2.0, 3.0),
            new OV.Coord3D (0.0, 0.0, 0.0),
            new OV.Coord3D (0.0, 1.0, 0.0),
            45.0
        )

And I am not sure what values to use for Front, Side, Top...

Thanks!

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

No branches or pull requests

1 participant