Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

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. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,900
  3. lifeFo

    lifeFo

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

    halley

    Joined:
    Aug 26, 2013
    Posts:
    1,839
    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.