Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Vertex Painter

Discussion in 'Assets and Asset Store' started by reissgrant, Sep 6, 2010.

  1. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Did you install the blendshader package linked in the first post?

    If you did, you just apply that material included in the blendshader package.
     
  2. PolyMad

    PolyMad

    Joined:
    Mar 19, 2009
    Posts:
    2,350
    This is fantastic... is it everything OK for use with v3.2?
     
  3. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Yes, be sure to download the 3.2 vertex painter.cs in the first post.
     
  4. PolyMad

    PolyMad

    Joined:
    Mar 19, 2009
    Posts:
    2,350
    Thank you very much, man... are you working on a project or is it just to take familiarity with shader/Unity programming?
     
  5. janpec

    janpec

    Joined:
    Jul 16, 2010
    Posts:
    3,520
    I am just wondering can i use this on any mesh or plane only? Do i have to modify vertex paint in 3ds max before painting in Unity or can i just start painting in unity without Vertex paint modifier in max?
    Is this optimised?
     
  6. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    This was made for a project that I am working on, and also it was made to familiarize myself with unity tool scripting.
     
  7. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    This will work with any mesh, you don't have to do anything special in max either.
     
  8. wagner.sz

    wagner.sz

    Joined:
    Feb 26, 2011
    Posts:
    5
    I imported all packages ( blendShader_v2.6 , BlendShader_v3_SM23 , vertexpainter_v04_156) and apply the material on a basic plane.
    When i painted in red,the vertex change, but the texture not and some errors appears for me in shaders.

    Blend Shader (BW) (Shader)
    Program "SurfShaderInternalFunc", incompatible types in initialization at line 56
    Program "SurfShaderInternalFunc", invalid initialization at line 56
    Program "SurfShaderInternalFunc", inplicit cast "half4" to "half3" at line 69

    Blend Shader (BW)_SM_2 (Shader)

    Program "SurfShaderInternalFunc", incompatible types in initialization at line 52
    Program "SurfShaderInternalFunc", invalid initialization at line 52
    Program "SurfShaderInternalFunc", inplicit cast "half4" to "half3" at line 65

    Blend Shader_from Red Vertex (Shader)

    Upgrade NOTE: SubShader comment out; uses 2.x per-pixel lighting.....


    The problem could be me? :)
     
  9. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    There are two different versions of shaders, one for 2.6 and one for 3.0+, download the one you need and it will work.
     
  10. wagner.sz

    wagner.sz

    Joined:
    Feb 26, 2011
    Posts:
    5
    doesn't work
     
  11. Frank Oz

    Frank Oz

    Joined:
    Oct 13, 2010
    Posts:
    1,560
    *gasps* how did I not know about this!? :O AWESOME!!!
     
  12. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    OK, I just got back from GDC and downloaded 3.3 and am seeing these errors as well. I'll look at them when I get some time, sorry...
     
  13. psdev

    psdev

    Joined:
    Feb 11, 2011
    Posts:
    53
    Can this be used with Skinned Cloth as an alternate way to paint cloth weights? The internal Unity vertex painter for that seems buggy, and I can't see how to use weight maps already in the FBX (from the external 3D app) as cloth weights. Any ideas or is this purely for vertex colors and as a shader?

    thanks :)
     
  14. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    If the cloth weights are accessible with code then yes, it would be pretty easy. When I fix the issues with 3.3 I will look into adding this cloth weight code in there.
     
  15. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Being able to use this for cloth weights would be great! I would like to second that idea.

    I haven't used it in 3.3 yet btw.
     
  16. cemC

    cemC

    Joined:
    Dec 23, 2010
    Posts:
    214
    i mention that How can you define the one vertex of the GameObject? Can we define GameObject specifically or just dragging the script on the Object(Models)?
     
  17. deram_scholzara

    deram_scholzara

    Joined:
    Aug 26, 2005
    Posts:
    1,043
    wow... this is fantastic! I've been looking for something like this for a while and have somehow missed it before. I'm going to use this so much after the 3.3 compatible version is ready.
     
  18. thetnswe

    thetnswe

    Joined:
    Aug 23, 2010
    Posts:
    46
    Can you please re-up the whole project.. That's really nice and I would like to see it working.. :) older version will still be OK for me as I am just using Unity 3.1
     
    Last edited: Mar 11, 2011
  19. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,629
    Wow somehow I missed this and now it seems it doesn't work with latest version of unity. Don't mean to whine, I just am anxious to try it.
     
  20. deram_scholzara

    deram_scholzara

    Joined:
    Aug 26, 2005
    Posts:
    1,043
    Any luck getting this into 3.3 yet? I'm really excited about this :D
     
  21. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Good news and bad news.

    Good news: It's now working with 3.3.

    Bad news: It's no longer free.

    I'm putting this up on the asset store as soon as I add the GUI undo functionality. Price will be around $20.
     
  22. deram_scholzara

    deram_scholzara

    Joined:
    Aug 26, 2005
    Posts:
    1,043
    That's not bad news! That's great news - congratulations!

    You've already got one customer set to go. Hopefully it'll be up soon, I've got a project I could really use this on.
     
  23. kenlem

    kenlem

    Joined:
    Oct 16, 2008
    Posts:
    1,630
    Please tell me this works on the iPhone (even in a limited manner)? :)
     
  24. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Since it is an editor script, it won't allow you to paint vertices while using it on the iPhone, but you can use it on meshes intended for the iPhone while in the editor. Though that would be an interesting experiment to try, painting vertices while on the iPhone!
     
  25. psdev

    psdev

    Joined:
    Feb 11, 2011
    Posts:
    53
    Thank you, I will happily purchase this when you've added this feature. Can you please keep us posted (or PM me) when you have enabled that ability?

    Also, how hard would it be to add something to your Vertex Painter's GUI to access existing named weightmaps in the FBX as default painted colors or layers or cloth weights in addition to the actual painting of them? This feature would be very welcome as it would give me the opportunity to use my mesh's existing bone influence weight maps as colors or as cloth weights or as a starting point and then use your painter to tweak or modify them once they are imported into Unity.

    thanks again! :)
     
  26. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,052
    Hope if you sell it , unity won't always do an update that breack this awesome piece of code. At each update you have to adapt your code ... Maybe you should write a mail to unity to tell them about your tool. It's a damned important tool and i really think they missed it ( it can really be used as an alternative to unity terrain ... ) You'll have a buyer ...
     
  27. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Any word on if the paid for version will have cloth weights painting ?
     
  28. kenlem

    kenlem

    Joined:
    Oct 16, 2008
    Posts:
    1,630
    I don't need the editor script to run on the phone, just to be able to use the results would be enough.
     
  29. etoiles

    etoiles

    Joined:
    May 13, 2008
    Posts:
    216
    Pretty excited about this, hope it will hit the asset store soon...
     
  30. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Skinned Cloth Weight Painting added:


    Should be released in a few days, depending on asset store approval :D
     
  31. mrbdrm

    mrbdrm

    Joined:
    Mar 22, 2009
    Posts:
    510
    add me to your customers :)
     
  32. psdev

    psdev

    Joined:
    Feb 11, 2011
    Posts:
    53
    AWESOME! Thanks for adding the Skinned weight cloth painting - you just got another customer :)
     
  33. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Vertex Painter is now available on my website:

    -Click Here-


    Purchase includes future updates, including Unity dot release updates.

    Awaiting approval for the asset store.
     
    Last edited: Mar 27, 2011
  34. DTS_Liner

    DTS_Liner

    Joined:
    Mar 22, 2011
    Posts:
    6
    cant wait to try it out

    endless possibilities where you can use this

    thanks for making the effort
     
  35. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Thanks to everyone who has purchased so far.

    A new version has been released, 1.1 which includes:

    New blend shaders now include four textures and the ability to vertex paint in the alpha channel of the vertex.
    Also included a "lock object for painting" that prevents vertex painting unwanted objects.
    Added a "view blend shader" button to view blend shader on selected object.
    Modified the skinned cloth painter dialog
     
  36. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,052
    wow !!!! nice !!! it's now available !!!! Big thanks !!!! i'll buy it as soon as possible !!! There are goodies for artist at the moment ... thanks again !!!
     
  37. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,052
    50 dollars in the pocket !! yeappah !!!!
     
  38. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Much appreciated sir!

    Thank you!
     
  39. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Vertex Painter Package updated with a new blend shader,
    Everyone who purchased, I already sent you a link to download.

    Vertex Blend with Diffuse, Normal and Specular:

    diffuse (specular in alpha channel) + normal map = red vertex
    diffuse (specular in alpha channel) + normal map = green vertex
    diffuse (specular in alpha channel) + normal map = blue vertex
    diffuse (specular in alpha channel) + normal map = alpha vertex


     
  40. Shibito

    Shibito

    Joined:
    Jul 28, 2010
    Posts:
    34
    Hi Reissgrant, I thought I'd write here to show you something maybe you didn't see. I worked two months ago with your vertex painter which was free at that time and used it for learning purpose and usability on our game. I really modified a lot of things in it, even on the blend/math side of the plugin. http://forum.unity3d.com/threads/83...to-answer-the-blog-post-about-vertex-painting

    Here is a demo I made juste to show what we did with it finally. I'm always crediting you for the starting base and great "tutorial" you gave us on editor scripts. I just thought you would maybe watch this and tell me if it bothers you or not (despite the fact that I'm always crediting you and that it was heavily modified).

    Just to be clear of course I am not releasing my version of it anytime soon.
    That's it, keep rocking !
     
  41. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Great work Shibito! It doesn't bother me, since I originally released the vertex painter for everyone to have, and to help people understand how to make this sort of thing.
    If it helped you, then I'm happy. Keep up the good work!
     
  42. Shibito

    Shibito

    Joined:
    Jul 28, 2010
    Posts:
    34
    Thanks a lot. Since you monetized it I wanted to be sure it wasn't a problem. You keep up the good work too again thanks for all you've done since the plugin's start !
     
  43. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Vertex Painter updated with new blend shader (actually the original I created way back when I first created this painter).

    All customers have been mailed the link to download.

    The new shader blends two maps based on alpha channel in blendmap and red vertex color.
    Instead of slowly fading like previous shaders, the textures are clamped and blended based on the heightmap in the alpha channel of the blendmap, allowing the illusion of sand in the crevices of rock.
    Illustrated below.

     
  44. Shibito

    Shibito

    Joined:
    Jul 28, 2010
    Posts:
    34
    I'm glad my video (I hope ^^) made you remember you had it. I'd just like to say that I used heightmap too in the video and in my shader in the first place but you might want, for better performance, consider doing what I did too, that is not having an extra 2D channel for heightmap but instead sampling the red channel only, of the diffuse map. In large scenes with a lot of details I found it being a lot more effective and less ressource intensive. I don't know if your shader has exactly the same architecture as mine but you might want to give it a shot !
     
  45. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Thanks for the tip! I will try it.
     
  46. Shibito

    Shibito

    Joined:
    Jul 28, 2010
    Posts:
    34
    No problem ! I'm glad I can help.
     
  47. Broken-Toy

    Broken-Toy

    Joined:
    Jan 16, 2010
    Posts:
    455
    Good morning.

    As I am working on voxel terrain tools some more, I wanted to inform you that I will include a custom projection shader for those who will want to use Vertex Painter, because it's awesome.
     

    Attached Files:

    Last edited: Mar 29, 2011
  48. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,052
    Big thanks werewraith !!!
     
  49. janpec

    janpec

    Joined:
    Jul 16, 2010
    Posts:
    3,520
    Great work reisgrant definite buy from me soon. Also i am looking forward to voxel terrain Werewraith.
     
  50. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Werewraith, very cool! Can't wait to see it!