Jump to content

Rendering color mapped density


Recommended Posts

Hi,

I'm trying to render smoke (scaler field) with color mapped to it's density values, much like I'm getting in the scene view with the volume visualization sop.

I couldn't find a quick way to map it in the same way with the built in mantra shaders, and it doesn't seems like I can render the volume visualization sop modifications directly.

What is the best approach to do this? Should I create a Cd volume? Should I map a gradient to color values? Is there a way to get the vol. Vis values?

Any help would be appreciated,

Thanks.

Edited by avivbarami
Link to comment
Share on other sites

In the basic smoke shader use a bind to bring your density in, run that into an RGB Ramp parameter and pipe the result of that into the 'smoke_clr' input of your volume model. No need for other volumes if you just want to assign a colour to density, just let it be done in the shader. Not sure about referencing the ramp on the volume viz sop but you'll probably want to see how it looks rendered with density multipliers and the like anyway as volumes can change massively from the viewport to the render. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...