From: <edi...@us...> - 2003-09-11 21:53:51
|
Update of /cvsroot/jrman/drafts/sampleData In directory sc8-pr-cvs1:/tmp/cvs-serv10106/sampleData Modified Files: polygon.rib Added Files: tetra.rib mechtoy.rib pointspolygons.rib gears.rib Log Message: First implementation PointsPoligons, test tetra.rib --- NEW FILE: tetra.rib --- # tetra.rib # Author: Scott Iverson <si@SpamSucks_sitexgraphics.com> # Date: 7/19/95 # Display "tetra" "framebuffer" "rgb" Format 380 380 -1 Projection "perspective" "fov" 31 Rotate 0 0 0 1 Rotate -1.6 1 0 0 Rotate 41.6 0 1 0 Translate -24 -7 27 WorldBegin LightSource "ambientlight" 1 "intensity" .3 LightSource "pointlight" 2 "intensity" 700 "from" [15 17 -20] Scale 20 20 20 [...1598 lines suppressed...] TransformEnd TransformBegin Translate 0 0 .433 Scale .5 .5 .5 PointsPolygons [3 3 3 3] [0 1 3 0 2 1 0 3 2 1 2 3] "P" [0 .75 0 .5 0 -.289 0 0 .866 -.5 0 -.289] TransformEnd TransformBegin Translate .25 0 -.1445 Scale .5 .5 .5 PointsPolygons [3 3 3 3] [0 1 3 0 2 1 0 3 2 1 2 3] "P" [0 .75 0 .5 0 -.289 0 0 .866 -.5 0 -.289] TransformEnd TransformBegin Translate -.25 0 -.1445 Scale .5 .5 .5 PointsPolygons [3 3 3 3] [0 1 3 0 2 1 0 3 2 1 2 3] "P" [0 .75 0 .5 0 -.289 0 0 .866 -.5 0 -.289] TransformEnd TransformEnd TransformEnd TransformEnd WorldEnd --- NEW FILE: mechtoy.rib --- # MechToy..rib # Author: Scott Iverson <si@SpamSucks_sitexgraphics.com> # Date: 7/19/95 # # Fixed the sphere calls for the RMR (talrmr@SpamSucks_pacbell.net) # # Animated mechanical toy Declare "u" "float" Declare "v" "float" Projection "perspective" "fov" 26 Format 380 380 -1 PixelSamples 2 2 Rotate 0 0 0 1 Rotate -6.4 1 0 0 Rotate 47 0 1 0 Translate -7 -3 6 [...4641 lines suppressed...] Scale 0.1 1.3200 0.1 PointsPolygons [4 4 4 4 4 4] [0 1 5 4 1 2 6 5 2 3 7 6 3 0 4 7 4 5 6 7 3 2 1 0] "P" [ 1 0 0 0 0 -1 -1 0 0 0 0 1 1 1 0 0 1 -1 -1 1 0 0 1 1 ] TransformEnd ShadingInterpolation "smooth" TransformBegin Translate 0 0.6600 0 Rotate -90 1 0 0 #Attribute "divide" "u" 12 "v" 6 Sphere .18 -.18 .18 360 TransformEnd TransformBegin Translate 0 -0.6600 0 Rotate -90 1 0 0 #Attribute "divide" "u" 12 "v" 6 Sphere .18 -.18 .18 360 TransformEnd TransformEnd AttributeEnd WorldEnd FrameEnd --- NEW FILE: pointspolygons.rib --- Display "PointsPolygon" "framebuffer" "rgba" Format 400 300 1 PixelSamples 4 4 ShadingRate 0.25 Exposure 1 2.5 Projection "perspective" "fov" 65 Translate 0 0 40 WorldBegin LightSource "ambientlight" 1 "intensity" 2 AttributeBegin Color 1 1 1 Patch "bilinear" "P" [-40 -30 0 40 -30 0 -40 30 0 40 30 0] AttributeEnd AttributeBegin Color 0 0 1 Translate 0 -15 0 Polygon "P" [0 0 -5 5 0 -5 0 5 -5] AttributeEnd AttributeBegin Color 0 1 0 Translate -30 -30 0 Polygon "P" [10 10 -2 20 10 -2 10 20 -2] AttributeEnd AttributeBegin Color 0 1 1 Translate 10 -15 0 Polygon "P" [0 0 -2 10 0 -2 10 10 -2 0 10 -2] AttributeEnd AttributeBegin Color 1 0 0 Translate 10 0 0 Polygon "P" [0 0 -2 10 0 -2 15 10 -2 5 20 -2 -5 10 -2] AttributeEnd AttributeBegin Color 1 1 0 Translate -25 8 0 Polygon "P" [0 0 -2 10 0 -2 15 7.5 -2 10 15 -2 0 15 -2 -5 7.5 -2] AttributeEnd AttributeBegin Color 0.3 0.3 0.3 Translate -10 -5 0 PointsPolygons [3 4] [0 1 2 0 2 4 3] "P" [0 0 -1 10 0 -1 0 10 -1 -10 0 -1 -10 10 -1] AttributeEnd WorldEnd --- NEW FILE: gears.rib --- # Gears.rib # Author: Scott Iverson <si@SpamSucks_sitexgraphics.com> # Date: 6/28/95 # # 5-frame animation of four gears # Projection "perspective" "fov" 25 Format 380 380 -1 Identity Rotate 0 0 0 1 Rotate -64.6196526 1 0 0 Rotate -33.6900675 0 1 0 Translate 10 -38 15 FrameBegin 1 Display "Gears1.png" "file" "rgba" [...1766 lines suppressed...] Rotate 288 0 0 1 PointsPolygons [4 4 4 4 4] [0 1 2 3 7 6 5 4 0 4 5 1 1 5 6 2 2 6 7 3] "P" [ 4.75 0.497418417 0 5.53404582 0.348192892 0.620702944 5.53404582 -0.348192892 0.620702944 4.75 -0.497418417 0 2.88789117 0.302419001 2.35213747 3.36457307 0.211693301 2.72951064 3.36457307 -0.211693301 2.72951064 2.88789117 -0.302419001 2.35213747 ] TransformEnd TransformBegin Rotate 312 0 0 1 PointsPolygons [4 4 4 4 4] [0 1 2 3 7 6 5 4 0 4 5 1 1 5 6 2 2 6 7 3] "P" [ 4.75 0.497418417 0 5.53404582 0.348192892 0.620702944 5.53404582 -0.348192892 0.620702944 4.75 -0.497418417 0 2.88789117 0.302419001 2.35213747 3.36457307 0.211693301 2.72951064 3.36457307 -0.211693301 2.72951064 2.88789117 -0.302419001 2.35213747 ] TransformEnd TransformBegin Rotate 336 0 0 1 PointsPolygons [4 4 4 4 4] [0 1 2 3 7 6 5 4 0 4 5 1 1 5 6 2 2 6 7 3] "P" [ 4.75 0.497418417 0 5.53404582 0.348192892 0.620702944 5.53404582 -0.348192892 0.620702944 4.75 -0.497418417 0 2.88789117 0.302419001 2.35213747 3.36457307 0.211693301 2.72951064 3.36457307 -0.211693301 2.72951064 2.88789117 -0.302419001 2.35213747 ] TransformEnd TransformBegin Rotate 360 0 0 1 PointsPolygons [4 4 4 4 4] [0 1 2 3 7 6 5 4 0 4 5 1 1 5 6 2 2 6 7 3] "P" [ 4.75 0.497418417 0 5.53404582 0.348192892 0.620702944 5.53404582 -0.348192892 0.620702944 4.75 -0.497418417 0 2.88789117 0.302419001 2.35213747 3.36457307 0.211693301 2.72951064 3.36457307 -0.211693301 2.72951064 2.88789117 -0.302419001 2.35213747 ] TransformEnd AttributeEnd TransformEnd AttributeEnd WorldEnd FrameEnd Index: polygon.rib =================================================================== RCS file: /cvsroot/jrman/drafts/sampleData/polygon.rib,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** polygon.rib 30 Aug 2003 07:29:54 -0000 1.2 --- polygon.rib 11 Sep 2003 21:53:47 -0000 1.3 *************** *** 1,6 **** Display "polygon" "framebuffer" "rgba" Format 400 300 1 ! PixelSamples 2 2 ! ShadingRate 2 Exposure 1 2.5 Projection "perspective" "fov" 60 --- 1,6 ---- Display "polygon" "framebuffer" "rgba" Format 400 300 1 ! PixelSamples 1 1 ! ShadingRate 4 Exposure 1 2.5 Projection "perspective" "fov" 60 *************** *** 12,16 **** AttributeBegin Color 1 1 1 ! Patch "bilinear" "P" [-30 -30 0 30 -30 0 -30 30 0 30 30 0] AttributeEnd --- 12,16 ---- AttributeBegin Color 1 1 1 ! #Patch "bilinear" "P" [-30 -30 0 30 -30 0 -30 30 0 30 30 0] AttributeEnd |