Parcourir la source

Reduce bump map scale for crown model -> much better results.

Matt Pharr il y a 7 ans
Parent
commit
3a36d7cd80
3 fichiers modifiés avec 12 ajouts et 7 suppressions
  1. 12 7
      crown/crown.pbrt
  2. BIN
      images/crown/crown.exr
  3. BIN
      images/crown/crown.png

+ 12 - 7
crown/crown.pbrt

@@ -1,6 +1,7 @@
 
 Film "image" "integer xresolution" 1000 "integer yresolution" 1400
     "string filename" "crown.exr"
+# imgtool convert -bloomlevel 1 crown.exr crown.png 
 
 # Rotate 1 0 0 1 # slight lean left to even out
 LookAt 0 5.5 24   0 11 -10  0 1 0
@@ -274,17 +275,21 @@ Texture "mitra_inlay-kd" "color" "scale"
         "rgb tex2" [1.5 1.5 1.5]
 Texture "mitra_inlay-bump" "float" "imagemap" 
         "string filename" [ "textures/mitra/mitra_border_bump.png" ] 
+Texture "mitra_inlay-bump-sc" "float" "scale"
+        "texture tex1" "mitra_inlay-bump" "float tex2" .05
 MakeNamedMaterial "mitra_inlay" 
         "float roughness" [ 0.0104080001 ] 
         "float index" [ 1 ] 
         "string type" [ "uber" ] 
         "texture Kd" [ "mitra_inlay-kd" ] 
         "rgb Ks" [ 0.310160011 0.310160011 0.310160011 ] 
-        "texture bumpmap" "mitra_inlay-bump"
+        "texture bumpmap" "mitra_inlay-bump-sc"
 
 # big gold areas mid-crown
 Texture "mitra_right_back-bump" "float" "imagemap" 
         "string filename" [ "textures/mitra/right_front_bump2.png" ] 
+Texture "mitra_right_back-bump-sc" "float" "scale"
+        "texture tex1" "mitra_right_back-bump" "float tex2" .05
 Texture "mitra_right_back-roughness-tex" "float" "imagemap" 
         "string filename" [ "textures/mitra/right_front_spec.png" ] 
 Texture "mitra_right_back-roughness" "float" "scale" 
@@ -295,15 +300,13 @@ MakeNamedMaterial "mitra_right_back"
         "texture roughness" "mitra_right_back-roughness"
         "spectrum k" "spds/Au.k.spd"
         "spectrum eta" "spds/Au.eta.spd"
-        "texture bumpmap" "mitra_right_back-bump"
+        "texture bumpmap" "mitra_right_back-bump-sc"
 
-Texture "mitra_right_front-kd-img" "color" "imagemap" 
-        "string filename" [ "textures/mitra/right_front_bump2.png" ] 
 MakeNamedMaterial "mitra_right_front" 
         "string type" [ "metal" ] 
         "spectrum k" "spds/Au.k.spd"
         "spectrum eta" "spds/Au.eta.spd"
-        "texture bumpmap" "mitra_right_back-bump"
+        "texture bumpmap" "mitra_right_back-bump-sc"
 
 MakeNamedMaterial "pearl" 
 #    "string type" "fourier" "string bsdffile" "bsdfs/ceramic.bsdf"
@@ -363,14 +366,16 @@ MakeNamedMaterial "s_lily_ruby_socket"
         "spectrum eta" "spds/Au.eta.spd"
 
 # up top
-Texture "saphire-bump" "float" "imagemap" 
+Texture "sapphire-bump" "float" "imagemap" 
         "string filename" [ "textures/arc/saphire_bump.png" ] 
+Texture "sapphire-bump-sc" "float" "scale"
+        "texture tex1" "sapphire-bump" "float tex2" .05
 MakeNamedMaterial "saphire" 
         "float index" [ 3 ] 
         "string type" [ "glass" ] 
         "rgb Kr" [ .33 .5 1] 
         "rgb Kt" [ .33 .5 1] 
-	"texture bumpmap" "saphire-bump"
+	"texture bumpmap" "sapphire-bump-sc"
 
 MakeNamedMaterial "small_ruby" 
         "float index" [ 3 ] 

BIN
images/crown/crown.exr


BIN
images/crown/crown.png