#112 shadow(name) not varying

open-accepted
nobody
None
5
2009-06-24
2009-06-24
WHiTeRaBBiT
No

It appears that the shadow name parameter of the shadow() function is uniform. I have a situation where I'm loading multiple shadow maps in a illuminance loop and require "name" to be varying...

illuminance(P)

{

lightsource("__nondiffuse", nondiff);

if (nondiff == 0)

{

lightsource("__shadowname", shadowname);

if (shadowname != "" && shadowname != "raytrace")

{

...
InDepth = comp(ctransform("hsv", 1-shadow(shadowname, P, "samples", Samples, "bias", lightbias, "blur", LgBlur)), 2);

This seems to work fine in 3Delight, Air, PrMan and Aqsis.
Attached is 3Delight/Pixie comparison renders showing Pixie only using the first light in a fake SSS shader.

Discussion

  • WHiTeRaBBiT
    WHiTeRaBBiT
    2009-06-24

     
    Attachments
  • WHiTeRaBBiT
    WHiTeRaBBiT
    2009-06-24

     
    Attachments
  • Oh, it's in Pixie's source of course!

    I will submit patch (just to delete some lines), it works great.

    Cheers.

     
  • Okan Arikan
    Okan Arikan
    2009-06-24

    • status: open --> open-accepted
     
  • Okan Arikan
    Okan Arikan
    2009-06-24

    This is the same problem as the previous one.

    Okan