Jump to content

N variable in volumes mismatch when rendering


Recommended Posts

So I've been trying to speed up some heavy volume renders by exporting the volumes as i3d files. My volume shader is using the N variable for some stuff, but with the i3d it looks wrong. Initially it looked like N was in object/world space, but Z and X were flipped. Density etc. look fine, so this is puzzling. Is there a bug or do I have to do something special?

using H10.0.707

Link to comment
Share on other sites

I ended up working around the problem by baking a 'nml' channel into the i3D with a negated volumegradientfromfile node. The volume shader then checks for 'nml' if it exists, and falls back to object space N if it doesn't. Not 100% correct solution but it works.

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...