Jump to content

Calculate distance from shading point - how?


Recommended Posts

I'll probably be needing this in Solaris/Arnold - not sure how much of the work gets done in one or the other 

The distance cutoff in Ambient Occlusion shaders would work, for example, but I need that data before it renders. 

Thanks for any tips! 

 

Link to comment
Share on other sites

I suppose it would be easy to create a distance from camera point attribute in sops and promote it to prims and then use this attribute in arnold/solaris. Of course this only works if you have your geometry available in sops.

  • Like 1
Link to comment
Share on other sites

ugh, so, different objects would have to be in the same sop, in order to calculate the distance btwn them? Not sure if that would work but it's possible - I've also been dreaming of a way to light in the obj context and transfer everything to lops at the last second, since solaris sucks 

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