Vertex Color Paint and Fill

free scripts, plugins, models, textures
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Vertex Color Paint and Fill

Post by clintonman »

trueBlue wrote: 12 Feb 2023, 12:49
clintonman wrote: 12 Feb 2023, 04:12
trueBlue wrote: 12 Feb 2023, 03:26 Here are three materials for use with the Vertex Color Paint and Fill
I'll check them the out. :bananathumb:


VertexPaintMasking.jpg


Another use for vertex colors is for masking. Here I combined 2 materials using a painted red vertex color. Actually, it''s not really combining 2 materials, but combining the color shader and the normal shader. It's not possible to combine actual materials in trueSpace. We can still get the same result with some work though. You can get even more complex combinations using more textures with the green and blue channels.
How do you combine the color shader and the normal shader?
Please do share!
Wait...what!?
Are you actually Subtracting to show the Caligari image using Vertex Color Paint?
It uses interpolation driven by the vertex color. Attached is geometry from the image.
Attachments
MixMaterialPlane.RsObj
(2.13 MiB) Downloaded 52 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Vertex Color Paint and Fill

Post by trueBlue »

Neat!
What does the InputFloat = 3 do?
Thanks for sharing!
Now I understand what Subtract can do.
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Vertex Color Paint and Fill

Post by clintonman »

trueBlue wrote: 13 Feb 2023, 03:30 Neat!
What does the InputFloat = 3 do?
Thanks for sharing!
Now I understand what Subtract can do.
You must mean "Interpolate", there is no Subtract

The value 3 is multiply the texture coordinates, so it's like setting scale of 3 in the DefaultTextureMap shader. To see it properly you have to change the value in the texture shader and in the normal shader.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Vertex Color Paint and Fill

Post by trueBlue »

clintonman wrote: 13 Feb 2023, 03:54
trueBlue wrote: 13 Feb 2023, 03:30 Neat!
What does the InputFloat = 3 do?
Thanks for sharing!
Now I understand what Subtract can do.
You must mean "Interpolate", there is no Subtract

The value 3 is multiply the texture coordinates, so it's like setting scale of 3 in the DefaultTextureMap shader. To see it properly you have to change the value in the texture shader and in the normal shader.
I meant using Subtract in your Vertex Color tool.
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Vertex Color Paint and Fill

Post by clintonman »

Update: Oct 13, 2023

fixed a crash bug in the plugin
also does not attempt to paint on an object with the "Input Mesh" connector exported

http://clintons3d.com/plugins/downloads ... Plugin.rsx

also added checks for lights and cameras
plugin will give warning if the material will not show the vertex color
if the material has a "VertexColorStrength" it will ensure that the painted colors will show. If 0 it will be set to 1.
It will see compound materials that have the "Color" connector of the ShaderInput node connected to some other node. If it's not connected it will give a warning message.
Clinton Reese

http://clintons3d.com
Post Reply