Browse Source

update scenes file to fit for change dimension script

Jérôme BUISINE 1 month ago
parent
commit
7a2dda68de

+ 4 - 1
cornel-box/p3d_cornel-box-view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [800] "integer yresolution" [800] "string filename" "p3d_cornel-box-view0.rawls"
+Film "image" 
+	"integer xresolution" 800
+	"integer yresolution" 800 
+	"string filename" "p3d_cornel-box-view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
echecs/p3d_echecs-view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_echecs-view0.rawls"
+Film "image" 
+	"integer xresolution" 1920]
+	"integer yresolution" 1080
+	"string filename" "p3d_echecs-view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
echecs/p3d_echecs-view1.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_echecs-view1.rawls"
+Film "image" 
+    "integer xresolution" 1920 
+    "integer yresolution" 1080 
+    "string filename" "p3d_echecs-view1.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
echecs/p3d_echecs-view2.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_echecs-view2.rawls"
+Film "image" 
+    "integer xresolution" 1920
+    "integer yresolution" 1080
+    "string filename" "p3d_echecs-view2.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
glasses/p3d_glasses-view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_glasses-view0.rawls"
+Film "image" 
+	"integer xresolution" 1920 
+	"integer yresolution" 1080 
+	"string filename" "p3d_glasses-view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
indirect/p3d_indirect-view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_indirect-view0.rawls"
+Film "image" 
+    "integer xresolution" 1920 
+    "integer yresolution" 1080
+    "string filename" "p3d_indirect-view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
low_table/p3d_low_table_2spheric_view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_low_table_2spheric_view0.rawls"
+Film "image" 
+	"integer xresolution" 1920 
+	"integer yresolution" 1080 
+	"string filename" "p3d_low_table_2spheric_view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
low_table/p3d_low_table_coridor_view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_low_table_coridor_view0.rawls"
+Film "image" 
+	"integer xresolution" 1920
+	"integer yresolution" 1080
+	"string filename" "p3d_low_table_coridor_view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
low_table/p3d_low_table_upper_view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_low_table_upper_view0.rawls"
+Film "image" 
+	"integer xresolution" 1920 
+	"integer yresolution" 1080 
+	"string filename" "p3d_low_table_upper_view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 4 - 1
low_table/p3d_low_table_window-view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_low_table_window-view0.rawls"
+Film "image" 
+	"integer xresolution" 1920 
+	"integer yresolution" 1080
+	"string filename" "p3d_low_table_window-view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 Accelerator "bvh" 
 "string splitmethod" "sah"

+ 4 - 1
rubix-cube/p3d_rubix-view0.pbrt

@@ -1,4 +1,7 @@
-Film "image" "integer xresolution" [1920] "integer yresolution" [1080] "string filename" "p3d_rubix-view0.rawls"
+Film "image" 
+	"integer xresolution" 1920 
+	"integer yresolution" 1080
+	"string filename" "p3d_rubix-view0.rawls"
 PixelFilter "box" "float xwidth" [0.5] "float ywidth" [0.5] 
 #Accelerator "bvh" 
 # "string splitmethod" "sah"

+ 3 - 3
sponge/p3d_eponge-fractal-5-view0.pbrt

@@ -8,9 +8,9 @@ LookAt 4.5 12 15.5
 Camera "perspective" 
         "float fov" [ 60 ] 
 Film "image" 
-        "integer xresolution" [ 800 ] 
-        "integer yresolution" [ 800 ] 
-        "string filename" [ "p3d_eponge-fractal-5-view0.rawls" ] 
+        "integer xresolution" 1920
+        "integer yresolution" 1080
+        "string filename" "p3d_eponge-fractal-5-view0.rawls"
 Sampler "random" 
         "integer pixelsamples" [ 8 ] 
 Integrator "path"

+ 3 - 3
sponge/p3d_eponge-fractal-5-view1.pbrt

@@ -8,9 +8,9 @@ LookAt  0 0 0
 Camera "perspective" 
         "float fov" [ 60 ] 
 Film "image" 
-        "integer xresolution" [ 800 ] 
-        "integer yresolution" [ 800 ] 
-        "string filename" [ "p3d_eponge-fractal-5-view1.rawls" ] 
+        "integer xresolution" 1920
+        "integer yresolution" 1080
+        "string filename" "p3d_eponge-fractal-5-view1.rawls"
 Sampler "random" 
         "integer pixelsamples" [ 8 ] 
 Integrator "path"

+ 3 - 3
sponge/p3d_eponge-fractal-6-view0.pbrt

@@ -8,9 +8,9 @@ LookAt 4.5 12 15.5
 Camera "perspective" 
         "float fov" [ 60 ] 
 Film "image" 
-        "integer xresolution" [ 800 ] 
-        "integer yresolution" [ 800 ] 
-        "string filename" [ "p3d_eponge-fractal-6-view0.rawls" ] 
+        "integer xresolution" 1920
+        "integer yresolution" 1080
+        "string filename" "p3d_eponge-fractal-6-view0.rawls"
 Sampler "random" 
         "integer pixelsamples" [ 8 ] 
 Integrator "path"

+ 3 - 3
sponge/p3d_eponge-fractal-6-view1.pbrt

@@ -8,9 +8,9 @@ LookAt  0 0 0
 Camera "perspective" 
         "float fov" [ 60 ] 
 Film "image" 
-        "integer xresolution" [ 800 ] 
-        "integer yresolution" [ 800 ] 
-        "string filename" [ "p3d_eponge-fractal-6-view1.rawls" ] 
+        "integer xresolution" 1920
+        "integer yresolution" 1080 
+        "string filename" "p3d_eponge-fractal-6-view1.rawls"
 Sampler "random" 
         "integer pixelsamples" [ 8 ] 
 Integrator "path"

+ 2 - 2
utils/change_dimensions_all.sh

@@ -20,11 +20,11 @@ prefix="p3d_"
 xresolution=$1
 yresolution=$2
 
-for folder in $(ls -d ${main_folder})
+for folder in $(ls -d ${main_folder}*)
 do
   for file in $(ls $folder)
   do
-    filename=$folder$file
+    filename=$folder/$file
     filename_fixed=${filename//\/\//\/}
 
     # check if filename contains