Giter Site home page Giter Site logo

Add focus function about camera-controls HOT 7 CLOSED

WREQI avatar WREQI commented on July 4, 2024
Add focus function

from camera-controls.

Comments (7)

yomotsu avatar yomotsu commented on July 4, 2024

Thanks for your request.
CameraControls already has fitToBox and fitToSphere.
Do you still need another feature?

from camera-controls.

WREQI avatar WREQI commented on July 4, 2024

image
@yomotsu What should I do if I need to be at a certain distance from the object instead of completely filling it, which means that the distance can be set?

from camera-controls.

yomotsu avatar yomotsu commented on July 4, 2024

There are several methods such as dolly() and dollyTo(), and also can be combined with fitToXXX().
Please read the docs for more details.

https://github.com/yomotsu/camera-controls?tab=readme-ov-file#dolly-distance-enabletransition-
https://github.com/yomotsu/camera-controls?tab=readme-ov-file#dollyto-distance-enabletransition-

from camera-controls.

WREQI avatar WREQI commented on July 4, 2024

image
Okay, thank you. @yomotsu
The controller in three.js editor can bi-directional link an indicator in the bottom right corner. If CameraControls is used, how can it correctly bi-directional link an indicator? Is there a good example?

from camera-controls.

yomotsu avatar yomotsu commented on July 4, 2024

a good example?

Did you check all the examples in the readme?
So far, there are no such examples, but you can try it yourself with CameraControls.

from camera-controls.

WREQI avatar WREQI commented on July 4, 2024

MinZoom only supports orthogonal cameras? @yomotsu

from camera-controls.

yomotsu avatar yomotsu commented on July 4, 2024

Sorry, but please read and check the docs for further details.
If you wish further support, please consider becoming a patron: the "You may get additional support" tier.

from camera-controls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.