Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

81
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda