Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

195
Vistas
THREE.js rotations not mtaching FBX settings

I have set Y+ is UP and Z+ is FORWARD in the FBX export, which matches the coordinate system of Terragen, but unfortunately, when I convert the rotations to 360 degrees, they are not matching the source cameras. Have I done something wrong?

Source Camera Objects Converted Cameras Imported in Terragen

And the code I am using to convert the rotations (found here):

  // Camera Rotation in XYZ Degrees
  cameraRotation = ( Math.round( THREE.Math.radToDeg( camera.rotation.x ) % 360 ) ) + ' ' + ( Math.round( THREE.Math.radToDeg( camera.rotation.y ) % 360 ) ) 
    + ' ' + ( Math.round( THREE.Math.radToDeg( camera.rotation.z ) % 360 ) );

The XML shader value expects a three value vector seperated by spaces, that's why it is formatted strangely.

I would have posted this on the Three.js forums, but the post button has vanished for me on new topics. I guess I ask too many questions.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda