Parameter "shadows" not declared

Help
2007-03-02
2013-04-25
  • Hallo,
    I have installed Pixie on a x86_64 machine with RHEL4, but when i try to run rndr on a rib file I get the error message
    Parameter "shadows" is  not declared .

    For some other files that do not refer to the  the shadows parameter, I obtain the corresponding tiff file.
    Furthermore, initially I was getting another message as well, complaining about parsing errors in the sdr files in the shaders dir. This was resolved, by me compiling again the sl files with sdrc.
    I mention it just in case they are somewhow related.

    Thanks a lot,
    mina

    ps: I think the follwoing has nothing to do with my problem but I haven't installed
    neither fltk  nor OpenEXR

     
    • George Harker
      George Harker
      2007-03-02

      Hi Mina,

      The shaders that got shipped were dos-mode files which is what caused your issue.  That's not a major problem and you did the right thing to recompile them.

      So for some texture references you get the right texture, but there's a "shadows" parameter which doesn't get the right value?

      Is there any chance you could post the shaders / RIB you're using?

      OpenEXR not being installed is fine - you just won't be able to use the openexr display driver.  fltk is used to support the 'show' previewer.  So that won't run - neither should matter for a non-exr render pipeline.

      Cheers

      George

       
    • Hi George,

      The error message says:

      examples/JFGExport_demo1.rib (8): Parameter "shadows" is not declared.

      Please see the corresponding rib  in the end
      The shaders used are the ones from the shaders dir. Do you want me to send you these as well?

      Initially I had tested the installation by running the two examples found in

      http://filer.case.edu/rxm103/eecs466/pixieintro.html

      and those run without any problems (but in these there is no reference to the parameter shadows)

      JFGExport_demo1.rib
      _______________________

      ##RenderMan RIB-Structure 1.0
      version 3.03
      #  BEGIN SLIDE SET DEFAULTS:
      Orientation "lh"
      ShadingRate 1
      Sides 1
      #
      Attribute "light" "shadows" "on"
      #    END SLIDE SET DEFAULTS:
      Display "test?.tif" "framebuffer" "rgb"
      FrameBegin 0
      Format 512 512 1
      #  BEGIN SLIDE CAMERA: cam
      Projection "perspective"
      ScreenWindow -1 1 -1 1
      Clipping 0.02 100
      #    END SLIDE CAMERA: cam
      Identity
      Scale 1 1 -1
      ConcatTransform [1 0 0 0   0 1 0 0    0 0 1 0    0 0 -1 1]
      WorldBegin
      #  BEGIN SLIDE LIGHT: lAmbient
      TransformBegin
      ##ConcatTransform [1 0 0 0   0 1 0 0    0 0 1 0    0 0 0 1]
      #LightSource "ambientlight" 1 "intensity" [0.6] "lightcolor" [0.25 0.65 0.65]
      LightSource "ambientlight" 1 "intensity" [0.3] "lightcolor" [1 1 1]
      TransformEnd
      #    END SLIDE LIGHT: lAmbient
      #  BEGIN SLIDE AREALIGHT: alLamp
      AttributeBegin
      Bound [-1 1 -1 1 -8.74228e-008 8.74228e-008]
      TransformBegin
      ConcatTransform [0.5 0 0 0      0 0.5 0 0     0 0 0.5 0    0 0 0   1]
      #
      ##Attribute "light" "shadows" "on"
      #
      #Attribute "light" "nsamples" [30]
      #AreaLightSource "arealight" 2 "intensity" [1] "lightcolor" [1 1 1]
      #Pixie does not support arealight
      TransformBegin
      ConcatTransform [1 0 0 0      0 1 0 0     0 0 1 0    2 1 2   1]
      LightSource "pointlight" 2 "intensity" [0.7] "lightcolor" [1 1 1]
      TransformEnd

      TransformBegin
      ConcatTransform [1 0 0 0      0 1 0 0     0 0 1 0    -1 -1 2   1]
      LightSource "pointlight" 3 "intensity" [0.7] "lightcolor" [1 1 1]
      TransformEnd

      Color [1 1 1]
      Surface "plastic"

      # BEGIN SLIDE INSTANCE: slideinstance4
      TransformBegin
      ConcatTransform [1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 ]
      Color [ 1.0 0.6666667 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.9244868682285016 0.17412662113501415 0.0 0.0 -0.17412662113501415 0.9244868682285016 0.0 0.0 0.0 0.0 0.9407422865561215 0.0 -0.00874971528161873 0.12512675808368168 0.0 1.0 ]
      Color [ 1.0 0.7111111 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.8243558893390462 0.32195554929664005 0.0 0.0 -0.32195554929664005 0.8243558893390462 0.0 0.0 0.0 0.0 0.8849960497148397 0.0 -0.03284470522032599 0.23370222106534216 0.0 1.0 ]
      Color [ 1.0 0.75555557 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.7060451624860845 0.44118598310139556 0.0 0.0 -0.44118598310139556 0.7060451624860845 0.0 0.0 0.0 0.0 0.8325532074018731 0.0 -0.06923901801866884 0.3257439689213507 0.0 1.0 ]
      Color [ 1.0 0.8 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.5759072565650685 0.5308119063361457 0.0 0.0 -0.5308119063361457 0.5759072565650685 0.0 0.0 0.0 0.0 0.7832180080108709 0.0 -0.1151382084033993 0.4015346510239795 0.0 1.0 ]
      Color [ 1.0 0.84444445 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.4399902123033598 0.5910094215799151 0.0 0.0 -0.5910094215799151 0.4399902123033598 0.0 0.0 0.0 0.0 0.7368062997280773 0.0 -0.1680017308241684 0.46158096186869635 0.0 1.0 ]
      Color [ 1.0 0.8888889 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.3038546997848567 0.6229944582508153 0.0 0.0 -0.6229944582508153 0.3038546997848567 0.0 0.0 0.0 0.0 0.6931448431551464 0.0 -0.225541925336181 0.5065754583622216 0.0 1.0 ]
      Color [ 1.0 0.93333334 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.17242975979956066 0.6288593878215397 0.0 0.0 -0.6288593878215397 0.17242975979956066 0.0 0.0 0.0 0.0 0.6520706646643566 0.0 -0.2857200583876893 0.5373612754900267 0.0 1.0 ]
      Color [ 1.0 0.9777778 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [0.049907888256090494 0.6113968574602475 0.0 0.0 -0.6113968574602475 0.049907888256090494 0.0 0.0 0.0 0.0 0.6134304480725167 0.0 -0.3467398524808888 0.5548997585197666 0.0 1.0 ]
      Color [ 0.9777778 1.0 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [-0.0603212816483476 0.5739186579481887 0.0 0.0 -0.5739186579481887 -0.0603212816483476 0.0 0.0 0.0 0.0 0.5770799623628855 0.0 -0.40703890952447935 0.5602409959977953 0.0 1.0 ]
      Color [ 0.93333334 1.0 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [-0.1557007494734703 0.5200767217484654 0.0 0.0 -0.5200767217484654 -0.1557007494734703 0.0 0.0 0.0 0.0 0.5428835233189814 0.0 -0.4652784030565528 0.5544972083991437 0.0 1.0 ]
      Color [ 0.8888889 1.0 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [-0.23450250055059424 0.4536924543137798 0.0 0.0 -0.4536924543137798 -0.23450250055059424 0.0 0.0 0.0 0.0 0.5107134870607419 0.0 -0.5203313847498025 0.5388189221250447 0.0 1.0 ]
      Color [ 0.84444445 1.0 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [-0.29579441642988175 0.37859958815886197 0.0 0.0 -0.37859958815886197 -0.29579441642988175 0.0 0.0 0.0 0.0 0.4804497735925725 0.0 -0.5712700210353694 0.5143738373263588 0.0 1.0 ]
      Color [ 0.8 1.0 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [-0.3393823207339491 0.29850466528604824 0.0 0.0 -0.29850466528604824 -0.3393823207339491 0.0 0.0 0.0 0.0 0.45197941858484747 0.0 -0.6173520465732077 0.4823282804821528 0.0 1.0 ]
      Color [ 0.75555557 1.0 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [-0.3657321075867474 0.21686814637953367 0.0 0.0 -0.21686814637953367 -0.3657321075867474 0.0 0.0 0.0 0.0 0.42519615171581576 0.0 -0.6580066928926869 0.44383111849543644 0.0 1.0 ]
      Color [ 0.7111111 1.0 0.0]
      Sphere 0.1 -1 1 360
      TransformEnd
      TransformBegin
      ConcatTransform [1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 ]
      Color [ 1.0 1.0 1.0]
      Sphere 0.15 -1 1 360
      TransformEnd

      TransformEnd

      #AttributeEnd
      #AttributeEnd
      AttributeEnd
      #    END SLIDE GROUP: gRoot
      WorldEnd
      FrameEnd

       
      • George Harker
        George Harker
        2007-03-02

        I think the issues is:

        Attribute "light" "shadows" "on"

        Which is an old bmrt attribute.  Pixie (and PRMan) don't support this.  It's nothing to worry about at all (and the line should be removed) - but if you want shadows, you'll need a lightsource shader which has shadow support - there are some provided with Pixie.

        You can also pass "raytrace" as the parameter to the shadow() shadeop and if you geometry is also transmission visible, this will perform raytrace shadowing

        Hope that helps

        George