Is it possible to build a shader from components in the library that blends an object's existing vertex colors with a diffuse mapped texture?
Any help would be appreciated.
Q for the shader gurus
-
- Senior Chief Petty Officer
- Posts: 170
- Joined: 18 Apr 2010, 15:18
- Type the number ten into the box: 0
- Location: Texas
Q for the shader gurus
a day without orange juice is like... a day without orange juice
- Prodigy
- Site Admin
- Posts: 957
- Joined: 21 May 2009, 14:46
- Type the number ten into the box: 0
- Location: Uruguay
Re: Q for the shader gurus
can you please share exactly the shader that you want to merge with the texture? i don't understand what you mean with "existing vertex colors "
๑۩۞۩๑ prodigy ๑۩۞۩๑
-
- Senior Chief Petty Officer
- Posts: 170
- Joined: 18 Apr 2010, 15:18
- Type the number ten into the box: 0
- Location: Texas
Re: Q for the shader gurus
Sure,
Here is a cube with one vertex colored red (imported from another 3D program). When you switch from Model to Workspace, here's the shader it provides.
If you set VertexColorStrength as shown you can see the red vertex mixed with the DiffuseColor in the image above. (I picked a gray shade but it looks white for some reason) I would like to do this with a texture map instead of just the plain diffuse color.
That's the reason for my question.
Is it possible with some other shader?
Here is a cube with one vertex colored red (imported from another 3D program). When you switch from Model to Workspace, here's the shader it provides.
If you set VertexColorStrength as shown you can see the red vertex mixed with the DiffuseColor in the image above. (I picked a gray shade but it looks white for some reason) I would like to do this with a texture map instead of just the plain diffuse color.
That's the reason for my question.
Is it possible with some other shader?
a day without orange juice is like... a day without orange juice
- Prodigy
- Site Admin
- Posts: 957
- Joined: 21 May 2009, 14:46
- Type the number ten into the box: 0
- Location: Uruguay
Re: Q for the shader gurus
can you share that cube?? i never seen a vertex color on workspace side
i think is totally possible.. let me try
i think is totally possible.. let me try
๑۩۞۩๑ prodigy ๑۩۞۩๑
-
- Senior Chief Petty Officer
- Posts: 170
- Joined: 18 Apr 2010, 15:18
- Type the number ten into the box: 0
- Location: Texas
Re: Q for the shader gurus
Ok, Prodigy.
here it is... How I made it:
In Blender I painted the one vertex and exported it as a .cob.
Then I loaded it into model-side in TS7.6.
This can potentially allow us to bake fake AO to vertices in Blender or Wings3D and import this as a model with dirty or stained coloration that you can mix with textures!
I couldn't figure out how to paint vertices in TS.
here it is... How I made it:
In Blender I painted the one vertex and exported it as a .cob.
Then I loaded it into model-side in TS7.6.
This can potentially allow us to bake fake AO to vertices in Blender or Wings3D and import this as a model with dirty or stained coloration that you can mix with textures!
I couldn't figure out how to paint vertices in TS.
a day without orange juice is like... a day without orange juice
- Prodigy
- Site Admin
- Posts: 957
- Joined: 21 May 2009, 14:46
- Type the number ten into the box: 0
- Location: Uruguay
Re: Q for the shader gurus
Wow, that's weird! i never seen something like that before..
also i don't know how to paint a vert on workspace side, i remember that feature on model side but not on WS.
To get a mix between VP and a texture first we need to find how to duplicate that with another shader..
far as i know is not possible to merge 2 shaders but you can mix on a new one.. so we must find first a way to paint a vert first..
Great find Peter
also i don't know how to paint a vert on workspace side, i remember that feature on model side but not on WS.
To get a mix between VP and a texture first we need to find how to duplicate that with another shader..
far as i know is not possible to merge 2 shaders but you can mix on a new one.. so we must find first a way to paint a vert first..
Great find Peter
๑۩۞۩๑ prodigy ๑۩۞۩๑
-
- Senior Chief Petty Officer
- Posts: 170
- Joined: 18 Apr 2010, 15:18
- Type the number ten into the box: 0
- Location: Texas
Re: Q for the shader gurus
Well...
If I'd been more observant I would have noticed a "paint vertices" on model side.
This is in the material widget panel. When you paint some vertices and switch to WS you can only see the colors you painted when you set VertexColorStrength to 1.
-Don't see a "paint vertices" icon in WS.
-Colors from vertices don't seem mix with texture colors in MS, either.
-Sounds like a script is needed, I couldn't find any components in the library that would help.
If I'd been more observant I would have noticed a "paint vertices" on model side.
This is in the material widget panel. When you paint some vertices and switch to WS you can only see the colors you painted when you set VertexColorStrength to 1.
-Don't see a "paint vertices" icon in WS.
-Colors from vertices don't seem mix with texture colors in MS, either.
-Sounds like a script is needed, I couldn't find any components in the library that would help.
a day without orange juice is like... a day without orange juice
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Q for the shader gurus
I think that information is stored in the mesh vertices, not the material. If you sample the cube material and apply it to another cube you don't get the vertex color applied.
Re: Q for the shader gurus
Fooling around with a D3D Vertex Shader on the right
But... oddly in Model
- Attachments
-
- Record.RsRcd
- (124.71 KiB) Downloaded 201 times