Search Unity

can't manipulate object on large scale

Discussion in 'Editor & General Support' started by lifeFo, Nov 6, 2018.

  1. lifeFo

    lifeFo

    Joined:
    Apr 14, 2017
    Posts:
    15
    1. What happened

    can't manipulate object in scene views while lagre scale,like earth with sun with 1:1 scale.

    2. How we can reproduce it using the example you attached

    just type sun size and earth size and distance in between

    this kind of problem only happens when there is really big thing.
     
  2. lifeFo

    lifeFo

    Joined:
    Apr 14, 2017
    Posts:
    15
  3. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,445
    Precision error is the reason the view does not support such massive scale differences. A float value has a specific range and precision, and performing any kind of 3D transforms (such as those common internally performed by the editor and camera) will just explode into an unusable mess.

    You will absolutely need to model a 1/10000th scale or 1/100000000th scale copy of your solar system for wide shots and fly-through scenes. (Make 1 unit equal to 1000 kilometers or more.) As your camera gets close to a planet surface, switch to a 1/1000th scale copy of a portion of the planet surface, and eventually a 1:1 scale copy of an even smaller portion of the surface.

    You need to remember that you are modeling, not reproducing. A model includes the details necessary, and nothing more. Personal computers with only 32bit floats just cannot handle reproducing astronomical sized models measured in meters. Even if Unity supported 64bit double-precision floats throughout, it would not make sense to model star systems in meters.