VertexRGBA ruins alpha?.... 2005-03-02 - By Dan Yargici
Back OK, let me start by saying that my colour clipping is set to RGB (the default).
I have a mix2colours with a textured phong node piped into the Base Colour, a Constant Black shader in layer1 and vertexRGBA driving the blend (Mix mode).
Now, when I render it looks fine, but when I look at the alpha it is just a grayscale version of the fill (it should look like a solid matte as if the object was textured with the vertexRGBA). Now I've done this 100 billion times and never seen this..... the only thing that's different here is that I'm using a vertexRGBA instead of a texture to drive the blend.
Now, I know I can render a matte pass (and I will) or rendermap the vertexRGBA, I just don't understand why I should have to.... any ideas?
Thanks,
DAN
run this, draw a region and look at the alpha to see what I mean (I used a colour share here instead of the Constant Black)
NewScene CreatePrim "Sphere", "MeshSurface" ApplyShader , , , siUnspecified, siLetLocalMaterialsOverlap CopyPaste , "Shaders\Texture\Mixers\Mix_2colors.Preset", "TransientObjectContainer" CopyPaste , "Shaders\Texture\Share\Color_share.Preset", "TransientObjectContainer" SIConnectShaderToCnxPoint "TransientObjectContainer.Color_share", "Sources.Materials.DefaultLib.Material.Mix_2colors.color1", False SetValue "Sources.Materials.DefaultLib.Material.Mix_2colors.Color_share.input.red", 0 SetValue "Sources.Materials.DefaultLib.Material.Mix_2colors.Color_share.input.green", 0 SetValue "Sources.Materials.DefaultLib.Material.Mix_2colors.Color_share.input.blue", 0 SetValue "Sources.Materials.DefaultLib.Material.Mix_2colors.Color_share.input.alpha", 0 SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Material.Phong", "TransientObjectContainer.Mix_2colors.base_color", False SIConnectShaderToCnxPoint "TransientObjectContainer.Mix_2colors", "Sources.Materials.DefaultLib.Material.surface", False SelectObj "sphere", , True CreateVertexColorSupport , "Vertex_Color" PaintVertexColorTool PaintVertexColorTool PaintVertexColors "sphere", Array(13, 22, 23, 16, 17, 20, 26, 27, 29, 21, 24, 25, 28, 44, 45, 43, 46, 47, 48, 49, 59, 52, 53, 56, 57, 50, 51, 54, 55, 58, 73, 76, 74, 75, 78, 79, 77, 89, 82, 83, 86, 87, 80, 81, 84, 85, 88, 107, 110, 104, 105, 108, 109, 111, 119, 112, 113, 116, 117, 114, 115, 118, 138, 139, 142, 143, 149, 146, 147, 179, 209, 231, 234, 235, 238, 239), Array(-488447233, -774778369, -774778369, -488447233, -1, -1, -825307393, -825307393, -218959105, -1, -1, -1, -1, -488447233, -488447233, -269488129, -269488129, -1, -1, -1, -218959105, -1, -1, -1, -1, -1, -1, -1, -1, -1, -101058049, -101058049, -269488129, -269488129, -1, -1, -1, -218959105, -1, -1, -1, -1, -1, -1, -1, -1, -1, -909522433, -909522433, -101058049, -101058049, -1, -1, -522133249, -218959105, -1, -1, -1, -1, -522133249, -185273089, -185273089, -909522433, -909522433, -522133249, -522133249, -218959105, -185273089, -185273089, -218959105, -218959105, -774778369, -774778369, -825307393, -825307393, -218959105), 1 PaintVertexColors "sphere", Array(6, 7, 2, 1, 3, 9, 12, 0, 4, 5, 8, 31, 30, 32, 40, 41, 33, 36, 37, 34, 35, 38, 39, 42, 43, 46, 62, 61, 63, 60, 66, 67, 70, 71, 74, 75, 64, 65, 68, 69, 72, 95, 90, 94, 92, 91, 93, 98, 96, 97, 100, 101, 120, 124, 126, 127, 121, 123, 122, 151, 153, 152, 182, 215, 218, 212, 210, 214), Array(-1869573889, -1869573889, 522133503, 943208703, 943208703, 303174399, 303174399, 269488383, 269488383, 269488383, 269488383, 269488383, 269488383, 522133503, 303174399, 303174399, 269488383, 269488383, 269488383, 269488383, 269488383, 269488383, 269488383, 269488383, -1296911617, -1296911617, 522133503, 269488383, 269488383, 269488383, 269488383, 269488383, 269488383, 269488383, -1296911617, -1296911617, 269488383, 269488383, 269488383, 353703423, 353703423, -1734829825, 842150655, 842150655, 522133503, 269488383, 269488383, -1734829825, 269488383, 269488383, 353703423, 353703423, -1077952513, -1077952513, -1734829825, -1734829825, 842150655, 842150655, 522133503, -1077952513, -1077952513, 522133503, 522133503, -1869573889, -1869573889, 522133503, 943208703, 943208703), 1 CopyPaste , "Shaders\Texture\Vertex_rgba.Preset", "TransientObjectContainer" SIConnectShaderToCnxPoint "TransientObjectContainer.Vertex_rgba", "Sources.Materials.DefaultLib.Material.Mix_2colors.weight1", False ActivateObjectSelTool ActivateObjectSelTool SelectObj "sphere", , True CopyPaste , "Shaders\Texture\Image.Preset", "TransientObjectContainer" SIConnectShaderToCnxPoint "TransientObjectContainer.Image", "Sources.Materials.DefaultLib.Material.Phong.ambient", False SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Material.Phong.Image", "Sources.Materials.DefaultLib.Material.Phong.diffuse", False CreateProjection "sphere", siTxtSpherical, siTxtDefaultSpherical, "Texture_Support", "Texture_Projection" SetInstanceDataValue , "Sources.Materials.DefaultLib.Material.Phong.Image.tspace_id", "Texture_Projection"
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|