Search Unity

  1. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  2. Unity 2017.2 is now released.
    Dismiss Notice
  3. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  6. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Mesh scale factor vs Transform scale

Discussion in 'Shaders' started by TenHands, Sep 22, 2011.

  1. TenHands

    TenHands

    Joined:
    Mar 4, 2011
    Posts:
    67
    Hi. I am wondering what's the difference between having a model with it's mesh scale factor 0.01(default) on a GO with the transform scale of let's say 25, and a model with it's mesh scale factor of 5 on a GO with the transform scale of 1. I am asking because I have a model and if I leave the mesh scale factor to 0.01 and try to make it bigger throught the transform's scale the model gets mangled up. But if I increase the mesh scale factor and leave the scale to less it looks ok. Thanks
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    31,358
    The transform scale should always be 1 if possible. Changing the mesh scale factor scales up or down the mesh data.

    --Eric
     
  3. jhetfield23

    jhetfield23

    Joined:
    Nov 24, 2012
    Posts:
    7
    i have some sprite atlases though where each sprite is ,say, 32x32 pixels. I imported them with a mesh scale factor of 1 thinking that this is pixel perfect. But even though in the sprite editor they seem cut perfectly in the game view there were voids between sprites displayed.....ie i have some wall sprites that I want to be connected seamlessly and give them positions that are multiples of 32 but they had void in between....when I changed the scale factor to 0.95 I got the desired effect......Is there a way to find what that ratio is to scale the sprites externally so that the mesh scale factor of 1 works instantly?

    Do I need to concern myself with ppi or sth?
     
    Last edited: Jan 29, 2014