Search Unity

Many Standard color materials or Atlas?

Discussion in 'General Graphics' started by FloBeber, Jan 29, 2017.

  1. FloBeber

    FloBeber

    Joined:
    Jun 9, 2015
    Posts:
    166
    Hi all,

    Working on a Gear VR game, I'm trying to optimize performances. Basically, I bought some 3d assets, and when I import them as OBJs, each are made of many (8 to 15) Standard color only materials.

    Would it be faster to use an atlas, of let's say 16x16, using 1 pixel per color, and reassign all those new materials to my objects?

    I'd rather have a feedback from the community before trying that solution, because it would be quite time consuming.

    Thanks!
     

    Attached Files:

  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    You're better off using vertex colors. You can probably write an editor script to convert the meshes, otherwise there are some assets on the store that can do this for you. There's also a standard shader that supports vertex colors in the shader forum.
     
  3. FloBeber

    FloBeber

    Joined:
    Jun 9, 2015
    Posts:
    166
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
  5. FloBeber

    FloBeber

    Joined:
    Jun 9, 2015
    Posts:
    166
    Thank you so much bgolus. You probably just helped me to discover a whole new world of possibilities :)

    I'll probably buy Metrializer soon and convert all my game objects to vertex colors. I hope to see a big performance increase!

    Take care man!
     
  6. FloBeber

    FloBeber

    Joined:
    Jun 9, 2015
    Posts:
    166
    Mesh Materializer works like a charm. Thanks again bgolus!