Workspace Vertex Color Shaders Work - sort of

Dx Shaders, Vray Materials, LW materias,Textures and more..
Post Reply
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Workspace Vertex Color Shaders Work - sort of

Post by clintonman »

VertexColorsTest.jpg
The image shows a sphere and a cylinder that have their uv values applied to their vertex colors and vertex positions. Wireframe shows the actual location of the meshes. The thing is the colors only work if the Color_shader input and the Constant_shader inputs are not connected. They seem to override instead of combining with the vertex colors. I'm not sure how useful this is but I thought it was interesting.

Edit: One more thing the W input to the VectorFromComponents node should not be connected. Position is just XYZ and the added W seems to do weird things.
Last edited by clintonman on 28 Mar 2017, 05:03, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Vertex Color Shaders Work - sort of

Post by clintonman »

VertexColorsTest2.jpg
I was wrong. The color and constant shaders can combine with vertex colors. The shaderinput node color output will read the vertex colors. This stuff might be useful after all...
Clinton Reese

http://clintons3d.com
User avatar
FHembree
Master Chief Petty Officer
Posts: 329
Joined: 21 Feb 2011, 17:43
Type the number ten into the box: 9

Re: Workspace Vertex Color Shaders Work - sort of

Post by FHembree »

That's interesting, is this an object script?
Does it work I assume only with D3D materials or will it work with yafaRay materials?, Vray? :?
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Vertex Color Shaders Work - sort of

Post by clintonman »

FHembree wrote:That's interesting, is this an object script?
Does it work I assume only with D3D materials or will it work with yafaRay materials?, Vray? :?
It's for D3D materials only. I think vertex shaders are only for realtime technologies like directx and opengl. It might be added to Yafaray as a displacement shader preview. I haven't tested it with a textures yet. If it does work I'll add it.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Vertex Color Shaders Work - sort of

Post by clintonman »

Tested and it doesn't work with textures :(
Clinton Reese

http://clintons3d.com
Post Reply