Login  Register

Re: Objects fall outside simpleuniverse

Posted by philjord on Jul 22, 2018; 10:33am
URL: https://forum.jogamp.org/Objects-fall-outside-simpleuniverse-tp4039062p4039063.html

Hi there,
Objects are unlikely to be outside a SimpleUniverse scope, or more accurately a Locale's scope ( a Locale is the node below Universe to which Shapes are attached), as the allowed placement is basically the resolution of a float, which in 32 bits is -3.4E+38 to +3.4E+38, or 38 zeros in a row.
https://en.wikipedia.org/wiki/Single-precision_floating-point_format

However resolution gets poor at higher numbers so any number with 6 to 9 significant digits is perfectly accurate, so placing things up to 1 million units (meters for example) will be fine.

However there are many, many ways for objects to not be shown on the screen, in particular relating to the camera and field of view.

Could you post the code you've got that isn't showing what'd you'd like?

Thanks.