question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why the distance of the camera is 500, rather than <distance>

See original GitHub issue
this.shadow = new LightShadow( new PerspectiveCamera( 90, 1, 0.5, 500 ) );

I think

this.shadow = new LightShadow( new PerspectiveCamera( 90, 1, 0.5, distance) );

will be better?

Three.js version
  • Dev
  • r87

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
WestLangleycommented, Aug 29, 2017

Most the the depth precision is near the front of the frustum. So set your near plane as large as possible.

You can read about depth precision here.

0reactions
WestLangleycommented, Aug 30, 2017

Try to answer your question yourself by doing an experiment.

If you need more help, see stackoverflow or the forum. Be sure to show your code when you ask a question.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the 500 Rule for Astrophotography - AstroBackyard
The 500 rule is used to measure the maximum exposure time you can shoot before the stars become blurry or before star trails...
Read more >
What is Camera Focal Length? - PhotoModeler
A camera typically has focal length in a range of 10mm to 500mm. Different types of camera can ... See below for more...
Read more >
Distance object image softness at 500mm /w 200 ... - DPReview
Both of them exhibit image degradation with distance. It is caused by atmospheric turbulence; ie hot air coming from the ground. It varies...
Read more >
Camera Lens Distance Calculation - Nikon - Photo.net
It shows that with a standard 24 x 36 mm sensor and a 500 mm lens, the subject distance will be about 21...
Read more >
Understanding Depth of Field - A Beginner's Guide
Camera-Subject Distance​​ This is because the closer you are to your subject, the shallower the DoF. Look at these two sets of images....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found