Jump to content

Vertex coloring ( and extended to multi material )


YouGroove
 Share

Recommended Posts

Could it be terrain or models, Vertex Coloring could be interesting as data is on vertex only , so small amount of data very light compared to textures.

 

And better could be used to set the amount of blending of two textures for example.

http://www.chrisalbeluhn.com/UDK_Advanced_Vertex_Painting.html

 

This can help a lot for example to paint some baked shadows, or simply make any variation of color in some terrain or in walls of a building model , just storing vertex color data.

 

paint_stroke.jpg

 

 

Instead of coloring, Vertex system could eb extended to control how is multitextured or multi material on a model, great to make unique variations, with super small data as it is Vertex only.

 

Great for building walls , you make 4 walls , put same basic concrete material, than assing another dirt or cracks material, than just paint in unique vertex of your building where you want dirt or cracks.

615_tid_another-three-materials.jpg

 

615_tid_all-materials-blend.jpg

 

615_tid_final.jpg

 

http://www.hourences.com/tutorials-vtx-blending/

 

6.jpg

7.jpg

 

Well idea For Leadwearks 4 :)

Stop toying and make games

Link to comment
Share on other sites

Not sure if I'm misunderstanding you, but that should be possible already. Leadwerks passes the vertex color already go the shader (uniform vec4 vertex_color). By default it is mixed into the diffuse color, but the shader could use it for something else.

 

Of course, you would have to define the vertex colors for your model in your modeling program first.

Link to comment
Share on other sites

I don't think vertex color is needed actually as shaders works on pixels.

 

Well for vertex coloring to give it possible even to non 3D artists, the best would be another LE3 tool for that purpose or possibility to paint vertex colors in the model editor.

Stop toying and make games

Link to comment
Share on other sites

The fragment shader might work on pixels, but everything before it works on vertices. You define vertex colors in your modeling program, and they are interpolated for the fragments by the rasterizer, just like everything else.

 

I don't think LE should provide tools for vertex coloring, that's really the domain of DCC tools.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...