Jump to content

Scaling in the distance


Ahiru
 Share

Recommended Posts

In this example I chose meter as a unit (but even using km does not make a difference): http://www.babylonjs-playground.com/#1PGAPW#20

 

The sun in the distance should claim about half a degree angular size, so being easily visible. But in fact it starts being visible at 9e8, so MUCH later than the 1.4e11 it should be not only visible, but still have a decent radius?

 

Any possibility in BJS to get realistic scalings?

 

P.S.: Changing the FOV is not very helpful either, seems the z-distances can't be calculated properly then: http://www.babylonjs-playground.com/#1PGAPW#21

Link to comment
Share on other sites

That's what I thought, and I'll come back to that, when I apply force - guess in the physics engines mass is in kg? And Force applied in Newton?

 

Found my mistake already - wrong unit for the sun-diameter - now in meter it's exactly like expected: The 4m tall ship 458m away occupies the same space like the sun! GREAT!!! - Three.js had problems with large distances like that. 

 

Thank you BJS! -  makes building things much easier.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...