question

Robert Kovach avatar image
Robert Kovach asked ·

Vertex Color + Volume Shader - Bug?

I applied some color to a model (Red), set the "Export Vertex Color" attribute to true in the Arnold Properties, created a aiUserDataColor node with a default color of Magenta, and plugged the color into the Scatter of a Standard Volume Shader. The result is the proper color is the Volume is blended with an object and the Default Color if the volume is blended with an empty background... Is this a bug?


volumescolor
1595104344331.png (74.2 KiB)
1595104366898.png (734.9 KiB)
1595104416871.png (132.2 KiB)
4 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

What is the volume shader applied to?

Is the model being rendered as a volume (step size > 0) or is there an actual volume in the scene too?

0 Likes 0 · ·

There is a Center Sphere that is a normal mesh with Standard Material, there is a hollow sphere mesh with a Step Size set and Standard Volume Material applied. There is no background object, the black background is empty.

There isn't a Volume, just a Poly Mesh with a Volume Material applied (and the Step Size set).

0 Likes 0 · ·

And the hollow sphere has the user data?
or is it the Center sphere?

0 Likes 0 · ·

The Hollow Sphere has the Vertex Color applied as UserData.

It appears that when a Volume is rendered against the Void, it picks the Default Color. If the Volume is rendered against another object of any kind, it picks the Vertex Color.

0 Likes 0 · ·

1 Answer

· Write an Answer
Stephen Blair avatar image
Stephen Blair answered ·

In general, user data isn't supported for volumes. Polymesh as a volume is a special case, and I don't know what the expected result is (well, I expected to not work at all). We'll have to look into this. For now, it seems like the volume rays have to hit some object, either in or behind the volume.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.