Jump to content

L Variable


ptakun

Recommended Posts

Hey all!

It's possible to get L variable from light to modify opacity in objects

during mantra evaluate shader for shadow ray?

when dot(L,N) <0 my shadow start very sharp. I need smooth effect similar when shadow is turn off.

in hip file go to /obj/geo1/shopnet1/vopnet1/thin_trans/wrap_light and turn on/off shadow.

thanks!! :rolleyes:

Ptakun

wrap_light.hip

Link to comment
Share on other sites

Hey all!

It's possible to get L variable from light to modify opacity in objects

during mantra evaluate shader for shadow ray?

when dot(L,N) <0 my shadow start very sharp. I need smooth effect similar when shadow is turn off.

in hip file go to /obj/geo1/shopnet1/vopnet1/thin_trans/wrap_light and turn on/off shadow.

thanks!! :rolleyes:

Ptakun

Hey ptakun,

I haven't looked at the file, but I'm assuming you're trying to mix "wrapped" lighting and mapped shadows. If that's the case, then I can tell you they don't play well together. For wrapped lighting, you should really use traced shadows with a >0 spread and multiple samples -- the bigger the wrap, the bigger the solid angle (spread) of the trace. Otherwise you get into all kinds of nonsense with having to reduce the size of your objects when creating the shadow maps, so that it doesn't ruin your wrapping... and that's a headache.

HTH.

Link to comment
Share on other sites

Hey ptakun,

Otherwise you get into all kinds of nonsense with having to reduce the size of your objects when creating the shadow maps, so that it doesn't ruin your wrapping... and that's a headache.

Right!

Thanks

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