How do I access the vertex alpha in a material? It has to be the alpha channel because I additionally have to export the final mesh to another application. The "Vertex Color" node only gives me access to various channels and the RGB colors.
Best regards.
You can tweak "UVW Channel" OSL shader code to get it work with vertex alpha channel.
MAX uses negative value -2 of UVW to store vertex alpha color.
Thank you for the response. for me the shader outputs just black.
i also hit compile.
Is it also possible to access the vertex colors with it? As far as i know they are stored in map channel 0 but it doesnt work with this shader. It would be very helpful to see directly the result of the vertex paint work without toggling explicitly the vertex colors but see the final result with texture blending etc. in the viewport.
I didn't know about OSL before and it is pretty handy and quick to write your own shader. I also found out that when I render with arnold the shader seems to work, also when I enable 'ActiveShade' with Arnold but that is absolutely unusable for working in the viewport because viewport rendering takes a few seconds everytime I do anything. I am using max 2022 and updated to the latest available arnold renderer (5.5.2.11). The problem is that the UVW -2 is always outputting black when not using the Active Shade, is there any workaround?
Here is standard viewport rendering.
Here with 'ActiveShade' enabled
You don't need to move to Active Shade for interactive rendering. Anrold has a Render View where you can work in Production Mode.
Probably when you move between modes there is a setting missing or something like that.
This is not what i need. I don't need to see accurately rendered images, I just want the default view with correct vertex alpha/colors applied. This render view takes a few seconds to render each image. Instant feedback to what you paint would be great, like here at 13:00, where vertex color/alpha data is correctly used in the viewport (without setting the object propties to shaded)
https://www.youtube.com/watch?v=86vm_m0_YbQ&ab_channel=PeytonVarney
Can you provide that geo above?
Hi, sorry for the delay.
I attached a simple scene. I used the UV Channel -2 solution as Base Color.
Best regards
Can't find what you're looking for? Ask the community or share your knowledge.