- Home /
Scaling a Gameobject down alot makes the material black
Hi Unity forum!
I have really big game-object with mesh (2 km), and if i downsize it by 0.00001, almost every piece turns black.
So, I test by creating a primitive cube from Unity editor, and downsized it a lot, and it also turns black when it reaches to a scale around 0.00001.
Is there way to scale something down smaller than 0.00001, and still keep the correct material?
Here goes screenshots. The first image shows the correct color, and scale is downsized to 0.00007. The second image shows how it turns black when it reaches 0.00006.
Thanks for reading!
Quality setting is fastest with shadow off. I am using default unity material with one directional light. I am not familiar with mip-map. I should check it out now! @Panga$$anonymous$$i added picutres!
It could be anything, floating point imprecisions anywhere in the engine... is there some special reason why are you doing this?
Answer by Pengocat · Dec 15, 2016 at 05:55 PM
Try changing the scale factor in the mesh import settings, and if that does not work you should change the scale in the source file. Like pangamini mentions the Shader probably can't handle the tiny scale due to floating point precision.
Answer by Arvin6 · Sep 12, 2017 at 07:09 AM
This is because of the Messy alpha problem. You should not change the objects transform to a great extent, you should instead change the scale factor during import. Read: http://answers.unity3d.com/questions/10302/messy-alpha-problem-white-around-edges.html
Answer by nanditho · Apr 13, 2019 at 01:06 PM
Hello guys, i Have big assets and i want to fit to my project by scale it down when i imported the assets.
The question is, will i lost quality when i scale down the scale factor? Thanks
Your answer
Follow this Question
Related Questions
Material doesn't have a color property '_Color' 4 Answers
Unity 3D - Material or Shader issue 1 Answer
HDRP shader graph - Surface options missing "Material Type" in inspector 0 Answers
How do I find different materials on an object? 0 Answers
Semitransparent shader not visible in front of objects 1 Answer