From: <ma...@us...> - 2003-08-23 21:22:50
|
Update of /cvsroot/jrman/drafts/sampleData In directory sc8-pr-cvs1:/tmp/cvs-serv20980/sampleData Modified Files: shadowTest.rib elephant.rib Log Message: Implemented shadowspotlight Added random number generator Index: shadowTest.rib =================================================================== RCS file: /cvsroot/jrman/drafts/sampleData/shadowTest.rib,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** shadowTest.rib 21 Aug 2003 22:53:47 -0000 1.2 --- shadowTest.rib 23 Aug 2003 21:22:46 -0000 1.3 *************** *** 17,21 **** AttributeEnd AttributeBegin ! Sphere 1 -1 1 360 AttributeEnd AttributeBegin --- 17,22 ---- AttributeEnd AttributeBegin ! Translate 1.3 -2.5 -2.6 ! Sphere .5 -.5 .5 360 AttributeEnd AttributeBegin *************** *** 31,35 **** Format 800 600 1 Display "shadowTest" "framebuffer" "rgba" ! PixelSamples 4 4 Exposure 1 2.2 Projection "perspective" "fov" 40 --- 32,36 ---- Format 800 600 1 Display "shadowTest" "framebuffer" "rgba" ! PixelSamples 8 8 Exposure 1 2.2 Projection "perspective" "fov" 40 *************** *** 39,43 **** "from" [1 1 0] "to" [0 0 0] "shadowmap" "shadowTest.shdw" "bias" .1 ! "samples" 64 "blur" 5 LightSource "ambientlight" 2 "intensity" .1 Rotate -10 1 0 0 --- 40,44 ---- "from" [1 1 0] "to" [0 0 0] "shadowmap" "shadowTest.shdw" "bias" .1 ! "samples" 64 "blur" 10 LightSource "ambientlight" 2 "intensity" .1 Rotate -10 1 0 0 *************** *** 54,58 **** AttributeBegin Color 1 0 0 ! Sphere 1 -1 1 360 AttributeEnd AttributeBegin --- 55,60 ---- AttributeBegin Color 1 0 0 ! Translate 1.3 -2.5 -2.6 ! Sphere .5 -.5 .5 360 AttributeEnd AttributeBegin Index: elephant.rib =================================================================== RCS file: /cvsroot/jrman/drafts/sampleData/elephant.rib,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** elephant.rib 12 Jun 2003 18:36:02 -0000 1.7 --- elephant.rib 23 Aug 2003 21:22:46 -0000 1.8 *************** *** 1,7 **** Format 400 300 1 ! Display "eleFloorRefl.png" "file" "rgb" ! PixelFilter "box" 1 1 ! PixelSamples 4 4 ! Exposure 1 2.2 Clipping 40 200 Projection "perspective" "fov" 5 --- 1,79 ---- + Declare "shadowmap" "string" + Declare "bias" "uniform float" + Declare "samples" "uniform float" + Declare "blur" "uniform float" + + Format 1024 1024 1 + Display "elephantSpot1.shdw" "file" "z" + PixelSamples 1 1 + Projection "perspective" "fov" 45 + Translate 0 0 9.433 + Rotate -58 1 0 0 + WorldBegin + ShadingRate 4 + AttributeBegin + Displacement "bumptest" + Attribute "displacementbound" "sphere" .03 + Surface "constant" + Translate 0 0 -4 + Rotate -120 0 1 0 + Rotate -90 1 0 0 + Scale .2 .2 .2 + ReadArchive "gumbo.rib" + AttributeEnd + WorldEnd + + Format 1024 1024 1 + Display "elephantSpot2.shdw" "file" "z" + PixelSamples 1 1 + Projection "perspective" "fov" 45 + Rotate 10 1 0 0 + Rotate -10 0 1 0 + Translate 0 0 9.165 + Rotate -60.79 1 0 0 + Rotate -116.57 0 1 0 + WorldBegin + ShadingRate 4 + AttributeBegin + Displacement "bumptest" + Attribute "displacementbound" "sphere" .03 + Surface "constant" + Translate 0 0 -4 + Rotate -120 0 1 0 + Rotate -90 1 0 0 + Scale .2 .2 .2 + ReadArchive "gumbo.rib" + AttributeEnd + WorldEnd + + + Format 1024 1024 1 + Display "elephantSpot3.shdw" "file" "z" + PixelSamples 1 1 + Projection "perspective" "fov" 45 + Rotate 10 1 0 0 + Rotate 10 0 1 0 + Translate 0 0 9.165 + Rotate -60.79 1 0 0 + Rotate 116.57 0 1 0 + WorldBegin + ShadingRate 4 + AttributeBegin + Displacement "bumptest" + Attribute "displacementbound" "sphere" .03 + Surface "constant" + Translate 0 0 -4 + Rotate -120 0 1 0 + Rotate -90 1 0 0 + Scale .2 .2 .2 + ReadArchive "gumbo.rib" + AttributeEnd + WorldEnd + + Format 400 300 1 ! Display "eleFloorRefl.png" "file" "rgba" ! PixelSamples 2 2 ! Exposure .6 1 Clipping 40 200 Projection "perspective" "fov" 5 *************** *** 9,21 **** Translate 0 0 120 Rotate 30 1 0 0 - WorldBegin ! LightSource "spotlight" 1 "from" [0 8 -5] "to" [0 0 0] "lightcolor" [1 0 0] "intensity" 75 ! LightSource "spotlight" 2 "from" [-4 8 2] "to" [0 0 0] "lightcolor" [0 1 0] "intensity" 75 ! LightSource "spotlight" 3 "from" [4 8 2] "to" [0 0 0] ! "lightcolor" [0 0 1] "intensity" 75 ! AttributeBegin Displacement "bumptest" --- 81,98 ---- Translate 0 0 120 Rotate 30 1 0 0 WorldBegin ! LightSource "shadowspotlight" 1 "from" [0 8 -5] "to" [0 0 0] "lightcolor" [1 0 0] "intensity" 75 ! "shadowmap" "elephantSpot1.shdw" "bias" .001 ! "samples" 16 "blur" 10 ! LightSource "shadowspotlight" 2 "from" [-4 8 2] "to" [0 0 0] "lightcolor" [0 1 0] "intensity" 75 ! "shadowmap" "elephantSpot2.shdw" "bias" .001 ! "samples" 16 "blur" 10 ! LightSource "shadowspotlight" 3 "from" [4 8 2] "to" [0 0 0] ! "lightcolor" [0 0 1] "intensity" 75 ! "shadowmap" "elephantSpot3.shdw" "bias" .001 ! "samples" 16 "blur" 10 ! LightSource "ambientlight" 4 "intensity" .06 AttributeBegin Displacement "bumptest" *************** *** 31,39 **** WorldEnd ! MakeTexture "eleFloorRefl.png" "eleFloorRefl.txr" "periodic" "periodic" "x" 1 1 Format 800 600 1 ! Display "elephant" "framebuffer" "rgb" ! PixelFilter "box" 1 1 PixelSamples 4 4 Exposure 1 2.2 --- 108,115 ---- WorldEnd ! MakeTexture "eleFloorRefl.png" "eleFloorRefl.txr" "clamp" "clamp" "gaussian" 2 2 Format 800 600 1 ! Display "elephant" "framebuffer" "rgba" PixelSamples 4 4 Exposure 1 2.2 *************** *** 42,57 **** Translate 0 0 120 Rotate -30 1 0 0 - WorldBegin ! LightSource "spotlight" 1 "from" [0 8 -5] "to" [0 0 0] "lightcolor" [1 0 0] "intensity" 75 ! LightSource "spotlight" 2 "from" [-4 8 2] "to" [0 0 0] "lightcolor" [0 1 0] "intensity" 75 ! LightSource "spotlight" 3 "from" [4 8 2] "to" [0 0 0] ! "lightcolor" [0 0 1] "intensity" 75 AttributeBegin Color .8 .8 .8 Declare "rtexturename" "string" ! Surface "reflectivepaintedplastic" "texturename" "woo12.txr" "rtexturename" "eleFloorRefl.txr" Rotate 17 0 1 0 Patch "bilinear" "P" [-20 0 -20 20 0 -20 -20 0 20 20 0 20] --- 118,144 ---- Translate 0 0 120 Rotate -30 1 0 0 WorldBegin ! ShadingRate .25 ! LightSource "shadowspotlight" 1 "from" [0 8 -5] "to" [0 0 0] "lightcolor" [1 0 0] "intensity" 75 ! "shadowmap" "elephantSpot1.shdw" "bias" .001 ! "samples" 64 "blur" 10 ! LightSource "shadowspotlight" 2 "from" [-4 8 2] "to" [0 0 0] "lightcolor" [0 1 0] "intensity" 75 ! "shadowmap" "elephantSpot2.shdw" "bias" .001 ! "samples" 64 "blur" 10 ! LightSource "shadowspotlight" 3 "from" [4 8 2] "to" [0 0 0] ! "lightcolor" [0 0 1] "intensity" 75 ! "shadowmap" "elephantSpot3.shdw" "bias" .001 ! "samples" 64 "blur" 10 ! LightSource "ambientlight" 4 "intensity" .06 ! Illuminate 1 1 ! Illuminate 2 1 ! Illuminate 3 1 ! Illuminate 4 1 AttributeBegin Color .8 .8 .8 Declare "rtexturename" "string" ! Surface "reflectivepaintedplastic" "rtexturename" "eleFloorRefl.txr" Rotate 17 0 1 0 Patch "bilinear" "P" [-20 0 -20 20 0 -20 -20 0 20 20 0 20] |