Skip to content

Instantly share code, notes, and snippets.

@Chris--B
Last active February 20, 2016 23:09
Show Gist options
  • Save Chris--B/979390c6b070b1b1dec1 to your computer and use it in GitHub Desktop.
Save Chris--B/979390c6b070b1b1dec1 to your computer and use it in GitHub Desktop.
PBRT Scene
Film "image"
"integer xresolution" [1280] "integer yresolution" [1024]
Sampler "lowdiscrepancy" "integer pixelsamples" [8]
PixelFilter "box"
LookAt 10 4 10 0 0.5 0 0 1 0
Camera "perspective" "float fov" [20]
WorldBegin
AttributeBegin
LightSource "distant" "color L" [3 3 3] "point from" [0 10 3] "point to" [0 0 0 ]
AttributeEnd
# AttributeBegin
# CoordSysTransform "camera"
# AreaLightSource "area" "color L" [4 4 4] "integer nsamples" [64]
# Translate 0 3 -10
# Material "matte" "color Kd" [ 0 0 0 ]
# Shape "disk" "float radius" [3]
# AttributeEnd
AttributeBegin
AreaLightSource "area" "color L" [2 2 2] "integer nsamples" [64]
Translate 0 15 0
Rotate 90 1 0 0
Material "matte" "color Kd" [ 0 0 0 ]
Shape "disk" "float radius" [20]
AttributeEnd
AttributeBegin
Material "matte" "color Kd" [.1 .1 .1]
Shape "trianglemesh" "integer indices" [ 0 1 2 2 0 3 ]
"point P" [-10 0 -10 10 0 -10 10 0 10 -10 0 10 ]
Shape "trianglemesh" "integer indices" [ 0 1 2 2 0 3 ]
"point P" [-10 0 -10 10 0 -10 10 9 -10 -10 9 -10 ]
Shape "trianglemesh" "integer indices" [ 0 1 2 2 0 3 ]
"point P" [-10 0 -10 -10 0 10 -10 9 10 -10 9 -10 ]
AttributeEnd
Texture "killeroo-texture" "spectrum" "wood"
"integer octaves" [3]
"float roughness" [0.8] # omega
"float scale" [0.5]
"float variation" [2.0]
Texture "buddha-texture" "spectrum" "ignore_me"
Texture "dragon-texture" "spectrum" "marble"
"integer octaves" [8]
"float roughness" [0.5] # omega
"float scale" [5]
# Killeroo
AttributeBegin
Material "uber" "texture Kd" "killeroo-texture" "color Ks" [.1 .1 .1]
Rotate -90 0 1 0
Translate -2 1.4 0
Scale 0.01 0.01 0.01
Rotate -90 1 0 0
Include "geometry/killeroo.pbrt"
AttributeEnd
# Nicholas Cage
AttributeBegin
Material "glass"
Rotate 90 0 1 0
Translate 0 0 0
Scale 10 10 10
Include "geometry/happy.pbrt"
AttributeEnd
# Dragon
AttributeBegin
Material "uber" "texture Kd" "dragon-texture" "color Ks" [.1 .1 .1]
Rotate -90 0 1 0
Translate 2 0 0
Scale 10 10 10
Rotate -90 0 1 0
Include "geometry/dragon.pbrt"
AttributeEnd
WorldEnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment