Two example RIB files using read archives.
Renderman reading archives.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 02:19 AM
/*
*
* box_archive.rib
*
* this contains the geometry
*
*/
##RIB RIB
# Target RIB level specified by prman12.5
# RIB Archive Generated by Houdini: untitled.hip
#
# Object: /obj/model
TransformBegin # {
Attribute "trace" "integer maxspeculardepth" [1]
Attribute "displacementbound" "coordinatesystem" ["shader"] "sphere" [0]
ConcatTransform [1 0 0 0 0 1 0 0
0 0 1 0 0 0 0 1]
TransformBegin # {
ConcatTransform [1 0 0 0 0 1 0 0
0 0 1 0 0 0 0 1]
Surface "plastic" "__instanceid" "/obj/model:surf-0-0"
TransformEnd # }
ShadingInterpolation "smooth"
# Geometry /obj/model
Declare "N" "varying normal"
# Starting polys
PointsGeneralPolygons
[1 1 1 1 1 1]
[ 4 4 4 4 4 4]
[ 0 4 5 1
1 5 6 2
2 6 7 3
3 7 4 0
3 0 1 2
4 7 6 5
]
"P" [ -0.5 -0.5 -0.5 0.5 -0.5 -0.5
0.5 -0.5 0.5 -0.5 -0.5 0.5
-0.5 0.5 -0.5 0.5 0.5 -0.5
0.5 0.5 0.5 -0.5 0.5 0.5]
"N" [
-0.5773503 -0.5773503 -0.5773503
0.5773503 -0.5773503 -0.5773503
0.5773503 -0.5773503 0.5773503
-0.5773503 -0.5773503 0.5773503
-0.5773503 0.5773503 -0.5773503
0.5773503 0.5773503 -0.5773503
0.5773503 0.5773503 0.5773503
-0.5773503 0.5773503 0.5773503
]
TransformEnd # }
#
# EndObject: /obj/model
/*
*
* scene.rib -this contains the scene and references box_archive.rib
*
*/
Option "searchpath" "archive" "~/RENDERMAN/:&"
Option "searchpath" "shader" "~/RENDERMAN/:&"
Display "untitled" "framebuffer" "rgb"
Format 427 240 1
Projection "perspective" "fov" 40
ShadingRate 1
LightSource "distantlight" 1 "intensity" 1.5 "from" [0 0 0] "to" [0 0 1]
Translate 0 0 5
Rotate 30 1 0 0
Rotate 10 0 1 0
Scale 1 1 -1
WorldBegin
ReverseOrientation
## this is along the Z axis ##
AttributeBegin
Surface "d_surf" "Kd" [0 1 0]
Translate 0 0 0
Rotate -90 1 0 0
ReadArchive "box.rib"
AttributeEnd
## this is along the X axis ##
AttributeBegin
Surface "d_surf" "Kd" [1 0 0]
Translate 0 0 0
Rotate -90 0 0 1
ReadArchive "box.rib"
AttributeEnd
## this is along the Y axis ##
AttributeBegin
Surface "d_surf" "Kd" [0 0 1]
Translate 0 0 0
ReadArchive "box.rib"
AttributeEnd
WorldEnd
Downloads:
Download: box_archive.rib 1 KB
Download: scene.rib 1 KB
Please login or Click Here to register for downloads
Reading Archives by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
