Skip to content

<html> distanceFactor 400 #545

Discussion options

You must be logged in to vote

Yeah, 400 is totally an arbitrary magic number

Let' assume those values:

distanceFactor=10 (the default)
FOV=75 (the default)
cameraZ=2.45 (arbitrary)

In this case a 3D-transformed div placed at 0,0,0 will have approximately the same size of a normal html div, like in this example https://codesandbox.io/s/drei-html-magic-number-6mzt6m

Maybe the value 196 would have been a better magic number because it would have the same effect, but at a cameraZ of 5 which is the default instead of the arbitrary 2.45

If we completely removed the magic number instead, we would need a fov of 205 or a cameraZ of 98 to achieve the same effect, or the div would appear very big

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Macroz
Comment options

Answer selected by MaxTwentythree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #540 on September 18, 2021 18:16.