Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

102
Views
React Three Fiber OrbitControls Zoom inicial más amplio

Estoy trabajando en este codesandbox para practicar con React Three Fiber.

Mi pregunta con la demostración es que realmente no entiendo cómo puedo configurar el zoom inicial mucho más amplio en OrbitControls para poder ver más estrellas pequeñas.

Este es el código relevante donde creo que necesito pasar los valores de zoom

 <OrbitControls enableZoom={true} enablePan={true} enableRotate={true} />

Estuve investigando en el sitio web oficial para comprender qué se necesita realmente para que OrbitControls configure el zoom inicial

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede establecer la posición inicial de la cámara más lejos. En three.js harías:

 camera.position.set(x, y, z); // The point where you want the camera controls.update();

Parece funcionar en esta demostración también. Intente, por ejemplo, alejarse en el eje x:

 <PerspectiveCamera makeDefault position={[500, 0.9, 1.8]} fov={60} zoom={0.9} />

Ver bifurcación sandbox.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!