Home Unity

Questions about Vertex Color.

polycounter lvl 11
Offline / Send Message
Mr Significant polycounter lvl 11
Hi, first of all sorry for english.

I have a big question about vertex color and blending two textures in Unity. I have this enviro:

scenaroslinnosc023.jpg

And in the middle of that I want to do different texture, dirt road. And this is not the Unity terrain. This is mesh from Max, and I already edited vertex color in Max.

And now what I have to do to apply different texture to this? I tried simple vertex color painter from asset store, but it's doesnt work. Any help on what I need to do?

I'm not similar with scripting btw, I can only make small changes in shaders.

Replies

  • MikeF
    Options
    Offline / Send Message
    MikeF polycounter lvl 19
    i havnt personally tried this but it seems like a decent solution
    [ame="http://www.youtube.com/watch?v=HDXwSEUYrbI"]Unity Vertex Blend Material - YouTube[/ame]

    you'l need to grab the vertex painter extension from the asset store and then the shader to see the results of the blending, all the links are in the description of the video
  • Mr Significant
    Options
    Offline / Send Message
    Mr Significant polycounter lvl 11
    Yeah mike I tried this but It's dont work for me. Look:

    Before vertex paint:

    http://s6.ifotos.pl/img/aassJPG_nhpeqsh.JPG

    Vertex paint:

    http://s6.ifotos.pl/img/aassaaJPG_nhpeqsn.JPG

    After vertex paint:

    http://s6.ifotos.pl/img/asdasdasd_nhpeqse.JPG

    WTF? what I did wrong?
  • curzed
    Options
    Offline / Send Message
    This may be too much for your need, I too had trouble with good vertex color solutions in Unity. Now I almost exclusively go straight to this:http://forum.unity3d.com/threads/123282-T4M-Black-Edition

    As long as you convert your mesh to T4M mesh, you can paint any combination of textures with support from mobile up to hardcore shaders

    info:
    - Unity 3.5 FREE and PRO
    - DEMO OF THE LAST VERSION IS AVAILABLE HERE
    - Shader Model 1, 2 and 3 Devices (iPhone, iPad, Android and also Web, PC, MAC,Flash, NaCi)
    - Convert Unity Terrain to T4M and keep your textures and blend texture (it work with 4 splat textures)
    - Convert your own Imported Mesh (you are free to make a Terrain with all 3D softwares)
    - Planting/Placing any object you want with the new Planting System
    - Integrated a LOD System
    - Integrated also a Billboard System
    - Paint directly with Substance Material
    - Best Brush Preview
    - 1 Shaders Model 1.1 to Mix 2 Textures
    - 24 Shaders Model 2 : Bumped, Bumped Specular, Specular, Diffuse, Unlit, Toon and Paint up to 6 textures (Desktop, Web) always in 1 DrawCall
    - 14 Shader Model 3 : Bumped, Bumped Specular, Specular, Diffuse and Paint up to 6 textures (Desktop, Web) always in 1 DrawCall
    - Compatible with Unity Terrain Shaders, you can use your own Shader.
    - Undo/Redo implementation for painting.
    - Multiple T4M on the scene
    - Add your own Brushes (64x64)
    - Compatible with Real Time Shadow, Lightmap and Directional LightMap
  • kypo
    Options
    Offline / Send Message
    kypo polycounter lvl 17
    I've been trialing creating a RGB masked shadered in stumpy editor which could be applied to having vertex colors as the input. This ones more complicated than it needs to be as i wanted to use yellow as a separate mask but hopefully you get the idea :)

    RGBMaskjp_nhhnhre.jpg
  • Mr Significant
    Options
    Offline / Send Message
    Mr Significant polycounter lvl 11
    Guys Whoa!

    I just finish my small enviro, And I dont want to return to this, (only for now!) but I'll try this tool, really thanks curzel!

    And kypo: I can only understand the Muliply, text2d and sampler2d from that :D I ply with strumpy shader editor, I saw examples of shaders, that was made with that editor.

    If this is ready to use shader, I'll totaly check this out!! really thanks!
Sign In or Register to comment.