yomotsu / camera-controls

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.
https://yomotsu.github.io/camera-controls/
MIT License
2.05k stars 257 forks source link

Orthographic camera | How to manage display direction | Interior Elevation #532

Open shahbaziparisa opened 3 months ago

shahbaziparisa commented 3 months ago

Describe the bug

How to specify the display direction For example, let's say I want to have a top view perpendicular to the scene. A view as if the camera is placed in the middle of a room and I see the wall on the right and left and in front and behind me vertically. How should I implement this possibility in the course of this camera?

To Reproduce

sth

Code

I use That open company and three.js

  const camera2Dmode = async () => {
    await world.camera.controls.setLookAt(-15, 200, 5.50, 0, 0, 0);
    // world.camera.set('Plan')
    world.camera.projection.set('Orthographic');

  }
Can you help me to manage different directions of camera from top,right ,left ,front.back

Like elevations in BIM software

I need to control camera in Orthographic mode but inside of model like in a house.

Live example

No response

Expected behavior

sth

Screenshots or Video

Screenshot 2024-07-30 at 11 54 57 PM Screenshot 2024-07-30 at 11 56 09 PM

Device

Desktop

OS

MacOS

Browser

Chrome