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

87
Views
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 answers
Answer question

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 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!