-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject1.rib
41 lines (31 loc) · 1 KB
/
project1.rib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
##RenderMan RIB
version 3.03
# Michael Rose
# January 13 2016
# As of January 13th, 2016, this file compiles using
# prman.exe from the non-commercial version of
# Renderman found in RenderManProServer-20.6
# declare the variables:
Declare "Ad" "uniform float"
Declare "Bd" "uniform float"
# define the output file:
Display "ovals.tiff" "file" "rgb"
Format 2500 2500 -1
# define the lighting:
LightSource "ambientlight" 1 "intensity" [0.25]
LightSource "distantlight" 2 "intensity" [0.75] "from" [5 8 -10] "to" [0 0 0]
# define the rendering parameters:
ShadingRate 1
Projection "perspective" "fov" [70]
# define the scene to be rendered:
WorldBegin
Surface "ovals" "Ad" 0.025 "Bd" 0.10
# specify the surface shader
Color [1 1 1] # specify the Cs color
Opacity [1 1 1] # specify the Os opacity
TransformBegin
Translate 0 0 6 # move away from the eye (= gluLookAt)
Rotate 90 1. 0. 0. # rotate so don't see north pole
Sphere 3 -3 3 360 # a full sphere of size 3
TransformEnd
WorldEnd