Menu

Shadowmaps on Aqsis

Discussion
Sergio
2006-09-26
2013-04-05
  • Sergio

    Sergio - 2006-09-26

    Hi Randolf,

    Sorry, i need again a little help about this simple question...

    Ayam version : the latest (1.11)
    Aqsis : unchanged (2005)

    I rebuilded the "shadowmaps.ay" directly from the FAQ example. After an export-RIB, i get following at the rendering :

    $ aqsis shadowmaps.rib
    09/26/2006 20:30:31 ERROR: Invalid display type "filez"
    09/26/2006 20:30:31 ERROR: Shadow map "/home/user/shadowmaps.rib.spot1.z" not found
    09/26/2006 20:30:31 ERROR: Cannot open texture file "/home/user/shadowmaps.rib.spot1.shd"
    09/26/2006 20:30:31 ERROR: Map "/home/user/shadowmaps.rib.spot1.shd" is not a valid shadow map, use RiMakeShadow
    $

    I get shadowmap.tif but without the shadow, like with a rendering directly from a viewwindow.

    My preferences are set to "automatic" for the shadowmaps as well.

    The only thing i changed since my try from may 2006 is that i'm using the 1.11 Ayam version instead the 1.8.3 (the shadow experience was fine).

    Maybe i need to change something other in the preferences ?

    For the rest Aqsis works as well after i reinstalled the whole configuration.

    Cheers,

    Sergio

    - Here my shadowmaps.rib :

    (I added the tag (root) but that changes nothing for the actual problem)

    ##RenderMan RIB-Structure 1.0
    version 3.03
    FrameBegin 1
    Display "/home/user/shadowmaps.rib.spot1.z" "filez" "z"
    Format 256 256 -1.000000
    Projection "perspective" "fov" [ 89.999985 ]
    FrameAspectRatio 1.000000
    ScreenWindow -1.000000 1.000000 -1.000000 1.000000
    Identity
    Scale -1.000000 1.000000 1.000000
    Rotate -25.239403 1.000000 0.000000 0.000000
    Rotate -135.000000 0.000000 1.000000 0.000000
    Translate 2.000000 -2.000000 -2.000000
    WorldBegin
    Identity
    ReadArchive "/home/user/shadowmaps.obj.rib"
    WorldEnd
    FrameEnd
    MakeShadow "/home/user/shadowmaps.rib.spot1.z" "/home/user/shadowmaps.rib.spot1.shd"
    FrameBegin 2
    Display "shadowmaps.tif" "file" "rgba"
    Declare "depthfilter" "string"
    Hider "hidden" "depthfilter" [ "midpoint" ]
    Format 400 300 -1.000000
    Projection "perspective" "fov" [ 90.000000 ]
    FrameAspectRatio 1.333333
    ScreenWindow -0.333333 0.333333 -0.250000 0.250000
    Identity
    #rh->lh
    Scale -1.000000 1.000000 1.000000
    #Camera!
    Rotate -29.999987 1.000000 0.000000 0.000000
    Rotate 135.000000 0.000000 1.000000 0.000000
    Translate -9.185590 -7.500000 -9.185590
    PixelSamples 2.000000 2.000000
    PixelFilter "gaussian" 2.000000 2.000000
    Exposure 1.000000 1.000000
    Quantize "rgba" 255 0 255 0.500000
    Declare "minsamples" "integer"
    Option "render" "minsamples" [ 4 ]
    Declare "maxsamples" "integer"
    Option "render" "maxsamples" [ 64 ]
    Declare "max_raylevel" "integer"
    Option "render" "max_raylevel" [ 4 ]
    Declare "minshadowbias" "float"
    Option "render" "minshadowbias" [ 0.010000 ]
    Declare "prmanspecular" "integer"
    Option "render" "prmanspecular" [ 1 ]
    Declare "steps" "integer"
    Option "radiosity" "steps" [ 0 ]
    Declare "minpatchsamples" "integer"
    Option "radiosity" "minpatchsamples" [ 2 ]
    Declare "texturememory" "integer"
    Option "limits" "texturememory" [ 10000 ]
    Declare "geommemory" "integer"
    Option "limits" "geommemory" [ 40000 ]
    WorldBegin
    #Lights!
    TransformBegin
    ConcatTransform [ 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 ]
    Declare "shadows" "string"
    Attribute "light" "shadows" [ "off" ]
    Declare "intensity" "float"
    Declare "lightcolor" "color"
    Declare "from" "point"
    Declare "to" "point"
    Declare "coneangle" "float"
    Declare "conedeltaangle" "float"
    Declare "beamdistribution" "float"
    Declare "shadowname" "uniform string"
    LightSource "shadowspot" 0 "intensity" [ 18.000000 ] "lightcolor" [ 1.000000 1.000000 1.000000 ] "from" [ -2.000000 2.000000 2.000000 ] "to" [ 1.000000 0.000000 -1.000000 ] "coneangle" [ 0.785398 ] "conedeltaangle" [ 0.087266 ] "beamdistribution" [ 3.000000 ] "shadowname" [ "/home/user/shadowmaps.rib.spot1.shd" ]
    Illuminate 0 1
    TransformEnd
    Identity
    #Action!
    Surface "matte"
    ReadArchive "/home/user/shadowmaps.obj.rib"
    WorldEnd
    FrameEnd
    #2

     
    • Randolf Schultz

      Randolf Schultz - 2006-09-27

      Hi Sergio,

      change "filez" to "zfile" in the RIB-Export SMFileFormat
      preferences.

      best regards,
      Randolf,
      --
      http://www.ayam3d.org/    Ayam, where import means NURBS.

       
    • Sergio

      Sergio - 2006-09-27

      Hi Randolf,

      All OK, now no any warning, all intermediate files created as well, and the .tif also good with the shadow.

      Thank's greatly !

      Cheers,

      Sergio

       

Log in to post a comment.

MongoDB Logo MongoDB