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

79
Vistas
camera's near field update

Is there any way to change camera's near and far parameters without re-creation of camera

Because camera stops showing objects when I try to change them

in some cases, it just shows black screen (even there is skybox)

Before: enter image description here

After near parameter change: enter image description here

All the button does:

function changeNear() {
  camera.near = 0;
  console.log(camera.near)
  camera.updateProjectionMatrix()

}

codepen: https://codepen.io/random-jordan/pen/gOeYjpa?editors=1111

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You don't need to recreate the camera.

You are not seeing the objects because near: 10 is too far away so the objects don't get rendered.

Try setting near to 0.1 by default and setting it to 2.5 in changeNear(). You will see that near gets changed just enough so that the objects get cut a bit.

about 4 years ago · Juan Pablo Isaza Denunciar
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