Parcourir la source

Add sssdragon scene

Matt Pharr il y a 3 ans
Parent
commit
449d32c872

+ 14 - 0
README.md

@@ -110,6 +110,20 @@ Sportscar model, where nearly every surface uses a measured BRDF from the
 This excellent model and pbrt conversion courtesy of Yasutoshi Mori (@MirageYM);
 [CC-BY](https://creativecommons.org/licenses/by/2.0/) license.
 
+## SSS Dragon
+
+<img alt="Dragon" src="images/sssdragon/dragon_10.png" height="400"/>
+
+[sssdragon/](https://github.com/mmp/pbrt-v4-scenes/tree/master/sssdragon/)
+
+Dragon model rendered with subsurface scattering, where multiple scene
+description files show the visual effect of changing the density of the
+scattering medium.
+
+Dragon model courtesy [Stanford Computer Graphics
+Laboratory](http://graphics.stanford.edu/data/3Dscanrep/).  Environment map
+thanks to [Bernhard Vogl](http://dativ.at/lightprobes/index.html).
+
 ## Transparent Machines
 
 <img alt="Frame 812" src="images/transparent-machines/frame812.png" height="400"/>

BIN
images/sssdragon/dragon_10.exr


BIN
images/sssdragon/dragon_10.png


BIN
images/sssdragon/dragon_250.exr


BIN
images/sssdragon/dragon_50.exr


+ 49 - 0
sssdragon/dragon_10.pbrt

@@ -0,0 +1,49 @@
+Sampler "halton"
+    "integer pixelsamples" [ 1024 ]
+PixelFilter "gaussian"
+Film "rgb" "float scale" 2
+    "string filename" [ "dragon_10.exr" ]
+    "integer yresolution" [ 1024 ]
+    "integer xresolution" [ 1366 ]
+Scale -1 1 1
+LookAt 3.69558 -3.46243 3.25463
+    3.04072 -2.85176 2.80939
+    -0.317366 0.312466 0.895346
+Camera "perspective"
+    "float fov" [ 28.841503 ]
+
+
+WorldBegin
+
+
+AttributeBegin
+    ConcatTransform [ -0.224951 0 -0.97437 0 -0.97437 0 0.224951 0 0 1 0 8.87 0 0 0 1  ]
+    ConcatTransform [ 0 0 -1 0 1 0 0 0 0 1 0 0 0 0 0 1  ]
+    LightSource "infinite" "float scale" .3
+        "string filename" "textures/envmap.exr"
+AttributeEnd
+
+AttributeBegin
+    Translate 0.2 0.3 0.78
+    Rotate 90 1 0 0
+    Rotate -90 0 1 0
+    Scale 0.02 0.02 0.02
+    Material "subsurface"
+        "float scale" [ 10 ]
+        "string name" [ "Skin1" ]
+        "float eta" [ 1.5 ]
+    Shape "plymesh"
+        "string filename" [ "geometry/dragon.ply.gz" ]
+AttributeEnd
+Texture "checkers" "spectrum" "checkerboard"
+    "float uscale" [ 16 ]
+    "float vscale" [ 16 ]
+    "rgb tex2" [ 0.2 0.2 0.2 ]
+    "rgb tex1" [ 0.4 0.4 0.4 ]
+
+AttributeBegin
+    Material "diffuse"
+        "texture reflectance" [ "checkers" ]
+    Shape "plymesh"
+        "string filename" [ "geometry/meshes_0.ply" ]
+AttributeEnd

+ 49 - 0
sssdragon/dragon_250.pbrt

@@ -0,0 +1,49 @@
+Sampler "halton"
+    "integer pixelsamples" [ 1024 ]
+PixelFilter "gaussian"
+Film "rgb" "float scale" 2
+    "string filename" [ "dragon_250.exr" ]
+    "integer yresolution" [ 1024 ]
+    "integer xresolution" [ 1366 ]
+Scale -1 1 1
+LookAt 3.69558 -3.46243 3.25463
+    3.04072 -2.85176 2.80939
+    -0.317366 0.312466 0.895346
+Camera "perspective"
+    "float fov" [ 28.841503 ]
+
+
+WorldBegin
+
+
+AttributeBegin
+    ConcatTransform [ -0.224951 0 -0.97437 0 -0.97437 0 0.224951 0 0 1 0 8.87 0 0 0 1  ]
+    ConcatTransform [ 0 0 -1 0 1 0 0 0 0 1 0 0 0 0 0 1  ]
+    LightSource "infinite" "float scale" .3
+        "string filename" "textures/envmap.exr"
+AttributeEnd
+
+AttributeBegin
+    Translate 0.2 0.3 0.78
+    Rotate 90 1 0 0
+    Rotate -90 0 1 0
+    Scale 0.02 0.02 0.02
+    Material "subsurface"
+        "float scale" [ 250 ]
+        "string name" [ "Skin1" ]
+        "float eta" [ 1.5 ]
+    Shape "plymesh"
+        "string filename" [ "geometry/dragon.ply.gz" ]
+AttributeEnd
+Texture "checkers" "spectrum" "checkerboard"
+    "float uscale" [ 16 ]
+    "float vscale" [ 16 ]
+    "rgb tex2" [ 0.2 0.2 0.2 ]
+    "rgb tex1" [ 0.4 0.4 0.4 ]
+
+AttributeBegin
+    Material "diffuse"
+        "texture reflectance" [ "checkers" ]
+    Shape "plymesh"
+        "string filename" [ "geometry/meshes_0.ply" ]
+AttributeEnd

+ 49 - 0
sssdragon/dragon_50.pbrt

@@ -0,0 +1,49 @@
+Sampler "halton"
+    "integer pixelsamples" [ 1024 ]
+PixelFilter "gaussian"
+Film "rgb" "float scale" 2
+    "string filename" [ "dragon_50.exr" ]
+    "integer yresolution" [ 1024 ]
+    "integer xresolution" [ 1366 ]
+Scale -1 1 1
+LookAt 3.69558 -3.46243 3.25463
+    3.04072 -2.85176 2.80939
+    -0.317366 0.312466 0.895346
+Camera "perspective"
+    "float fov" [ 28.841503 ]
+
+
+WorldBegin
+
+
+AttributeBegin
+    ConcatTransform [ -0.224951 0 -0.97437 0 -0.97437 0 0.224951 0 0 1 0 8.87 0 0 0 1  ]
+    ConcatTransform [ 0 0 -1 0 1 0 0 0 0 1 0 0 0 0 0 1  ]
+    LightSource "infinite" "float scale" .3
+        "string filename" "textures/envmap.exr"
+AttributeEnd
+
+AttributeBegin
+    Translate 0.2 0.3 0.78
+    Rotate 90 1 0 0
+    Rotate -90 0 1 0
+    Scale 0.02 0.02 0.02
+    Material "subsurface"
+        "float scale" [ 50 ]
+        "string name" [ "Skin1" ]
+        "float eta" [ 1.5 ]
+    Shape "plymesh"
+        "string filename" [ "geometry/dragon.ply.gz" ]
+AttributeEnd
+Texture "checkers" "spectrum" "checkerboard"
+    "float uscale" [ 16 ]
+    "float vscale" [ 16 ]
+    "rgb tex2" [ 0.2 0.2 0.2 ]
+    "rgb tex1" [ 0.4 0.4 0.4 ]
+
+AttributeBegin
+    Material "diffuse"
+        "texture reflectance" [ "checkers" ]
+    Shape "plymesh"
+        "string filename" [ "geometry/meshes_0.ply" ]
+AttributeEnd

BIN
sssdragon/geometry/dragon.ply.gz


BIN
sssdragon/geometry/meshes_0.ply


BIN
sssdragon/textures/envmap.exr