Skip to content

Commit

Permalink
bug in closure backward TOBE FIXED
Browse files Browse the repository at this point in the history
  • Loading branch information
W-Solaris committed Dec 6, 2023
1 parent 0418499 commit f656023
Show file tree
Hide file tree
Showing 1,320 changed files with 9,266,030 additions and 441 deletions.
Binary file added cbox/cbox.exr
Binary file not shown.
58 changes: 58 additions & 0 deletions cbox/cbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"film": {
"type": "Film",
"impl": "Color",
"prop": {
"resolution": [
1024,
1024
],
"exposure": 0
}
},
"camera": {
"type": "Camera",
"impl": "Pinhole",
"prop": {
"position": [
-0.01,
0.995,
5.0
],
"fov": 27.8,
"spp": 1024,
"film": "@film",
"file": "cbox.exr",
"filter": {
"impl": "Gaussian",
"prop": {
"radius": 1
}
}
}
},
"import": [
"meshes/cbox.luisa"
],
"integrator": {
"type": "Integrator",
"impl": "MegaPath",
"prop": {
"depth": 5,
"sampler": {
"impl": "Independent",
"prop": {
"seed": 0
}
}
}
},
"render": {
"cameras": "@camera",
"integrator": "@integrator",
"shapes": "@cbox",
"spectrum": {
"impl": "sRGB"
}
}
}
9 changes: 9 additions & 0 deletions cbox/meshes/cbox-parts/back-wall.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v -1.00 0.00 -1.00
v 1.00 0.00 -1.00
v 1.00 2.00 -1.00
v -1.00 2.00 -1.00
vt 0 1
vt 1 1
vt 1 0
vt 0 0
f -4/-4 -3/-3 -2/-2 -1/-1
5 changes: 5 additions & 0 deletions cbox/meshes/cbox-parts/ceiling.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
v -1.00 2.00 1.00
v -1.00 2.00 -1.00
v 1.00 2.00 -1.00
v 1.00 2.00 1.00
f -4 -3 -2 -1
5 changes: 5 additions & 0 deletions cbox/meshes/cbox-parts/floor.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
v -1.00 0.00 1.00
v 1.00 0.00 1.00
v 1.00 0.00 -1.00
v -1.00 0.00 -1.00
f -4 -3 -2 -1
5 changes: 5 additions & 0 deletions cbox/meshes/cbox-parts/left-wall.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
v -1.00 0.00 1.00
v -1.00 0.00 -1.00
v -1.00 2.00 -1.00
v -1.00 2.00 1.00
f -4 -3 -2 -1
5 changes: 5 additions & 0 deletions cbox/meshes/cbox-parts/light.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
v -0.24 1.98 0.16
v -0.24 1.98 -0.22
v 0.23 1.98 -0.22
v 0.23 1.98 0.16
f -4 -3 -2 -1
5 changes: 5 additions & 0 deletions cbox/meshes/cbox-parts/right-wall.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
v 1.00 0.00 -1.00
v 1.00 0.00 1.00
v 1.00 2.00 1.00
v 1.00 2.00 -1.00
f -4 -3 -2 -1
41 changes: 41 additions & 0 deletions cbox/meshes/cbox-parts/short-box.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Top Face
v 0.53 0.60 0.75
v 0.70 0.60 0.17
v 0.13 0.60 0.00
v -0.05 0.60 0.57
f -4 -3 -2 -1

# Left Face
v -0.05 0.00 0.57
v -0.05 0.60 0.57
v 0.13 0.60 0.00
v 0.13 0.00 0.00
f -4 -3 -2 -1

# Front Face
v 0.53 0.00 0.75
v 0.53 0.60 0.75
v -0.05 0.60 0.57
v -0.05 0.00 0.57
f -4 -3 -2 -1

# Right Face
v 0.70 0.00 0.17
v 0.70 0.60 0.17
v 0.53 0.60 0.75
v 0.53 0.00 0.75
f -4 -3 -2 -1

# Back Face
v 0.13 0.00 0.00
v 0.13 0.60 0.00
v 0.70 0.60 0.17
v 0.70 0.00 0.17
f -4 -3 -2 -1

# Bottom Face
v 0.53 0.00 0.75
v 0.70 0.00 0.17
v 0.13 0.00 0.00
v -0.05 0.00 0.57
f -4 -3 -2 -1
41 changes: 41 additions & 0 deletions cbox/meshes/cbox-parts/tall-box.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Top Face
v -0.53 1.20 0.09
v 0.04 1.20 -0.09
v -0.14 1.20 -0.67
v -0.71 1.20 -0.49
f -4 -3 -2 -1

# Left Face
v -0.53 0.00 0.09
v -0.53 1.20 0.09
v -0.71 1.20 -0.49
v -0.71 0.00 -0.49
f -4 -3 -2 -1

# Back Face
v -0.71 0.00 -0.49
v -0.71 1.20 -0.49
v -0.14 1.20 -0.67
v -0.14 0.00 -0.67
f -4 -3 -2 -1

# Right Face
v -0.14 0.00 -0.67
v -0.14 1.20 -0.67
v 0.04 1.20 -0.09
v 0.04 0.00 -0.09
f -4 -3 -2 -1

# Front Face
v 0.04 0.00 -0.09
v 0.04 1.20 -0.09
v -0.53 1.20 0.09
v -0.53 0.00 0.09
f -4 -3 -2 -1

# Bottom Face
v -0.53 0.00 0.09
v 0.04 0.00 -0.09
v -0.14 0.00 -0.67
v -0.71 0.00 -0.49
f -4 -3 -2 -1
113 changes: 113 additions & 0 deletions cbox/meshes/cbox.luisa
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
Surface cbox-white : Matte {
Kd : Constant {
v { 1, 1, 1 }
inline { false }
}
roughness : Constant {
v { 1 }
inline { false }
}
}

Surface cbox-red : Matte {
Kd : Constant {
v { 1, 0, 0 }
inline { false }
}
roughness : Constant {
v { 1 }
inline { false }
}
}

Surface cbox-green : Matte {
Kd : Constant {
v { 0, 1, 0 }
inline { false }
}
roughness : Constant {
v { 1 }
inline { false }
}
}

Shape cbox-ceiling : Mesh {
file { "cbox-parts/ceiling.obj" }
surface { @cbox-white }
}

Shape cbox-floor : Mesh {
file { "cbox-parts/floor.obj" }
surface { @cbox-white }
}

Shape cbox-left-wall : Mesh {
file { "cbox-parts/left-wall.obj" }
surface { @cbox-white }
}

Shape cbox-right-wall : Mesh {
file { "cbox-parts/right-wall.obj" }
surface { @cbox-white }
}

Surface cbox-brick : Matte {
Kd : Image {
file { "../textures/brickwall.jpg" }
gamma { 0.5 }
encoding { "gamma" }
semantic { "albedo" }
}
// sigma : Constant {
// v { 10 }
// }
// normal : Image {
// file { "../textures/brickwall_normal.jpg" }
// encoding { "linear" }
// }
}

Surface cbox-metal : Metal {
eta { "Au" }
roughness : Constant {
v { 0.2 }
}
}

Shape cbox-back-wall : Mesh {
file { "cbox-parts/back-wall.obj" }
surface { @cbox-white }
}

Shape cbox-tall-box : Mesh {
file { "cbox-parts/tall-box.obj" }
surface { @cbox-white }
}

Shape cbox-short-box : Mesh {
file { "cbox-parts/short-box.obj" }
surface { @cbox-white }
}

Shape cbox-light : Mesh {
file { "cbox-parts/light.obj" }
light : Diffuse {
emission : Constant {
v { 10, 10, 10 }
semantic { "illuminant" }
}
}
}

Shape cbox : Group {
shapes {
@cbox-floor,
@cbox-ceiling,
@cbox-left-wall,
@cbox-right-wall,
@cbox-back-wall,
@cbox-tall-box,
@cbox-short-box,
@cbox-light
}
}
1 change: 1 addition & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets/
Binary file added data/envmaps/envmap.exr
Binary file not shown.
Binary file added data/envmaps/photo_studio_01_1k.hdr
Binary file not shown.
73 changes: 73 additions & 0 deletions data/meshes/bingdwendwen.luisa
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
Surface bing-white : Substrate {
Kd : Image {
file { "bingdwendwen/body.jpg" }
}
Ks : Constnant {
v { 0.04 }
}
roughness : Constant {
v { 0.3 }
}
}

Surface bing-black : Matte {
Kd : Constant {
v { 0.3 }
}
}

Surface bing-glass : Glass {
roughness : Constant {
v { 0.01 }
}
Kt : Constant {
v { 0.9, 0.95, 1.0 }
}
}

Surface bing-colorful : Substrate {
Kd : Image {
file { "bingdwendwen/ring.jpg" }
}
Ks : Constant {
v { 0.04 }
}
roughness : Constant {
v { 0.2 }
}
}

Shape bing-body : Mesh {
file { "bingdwendwen/oldtiger001.obj" }
surface { @bing-white }
}

Shape bing-coat : Mesh {
file { "bingdwendwen/oldtiger002.obj" }
surface { @bing-glass }
}

Shape bing-ring : Mesh {
file { "bingdwendwen/oldtiger009.obj" }
surface { @bing-colorful }
}

Shape bing-tail : Mesh {
file { "bingdwendwen/Sphere001.obj" }
surface { @bing-black }
}

Shape bing-tail-coat : Mesh {
file { "bingdwendwen/Sphere002.obj" }
surface { @bing-glass }
}

Shape bingdwendwen : Group {
shapes {
@bing-body,
@bing-ring,
@bing-coat,
@bing-tail,
@bing-tail-coat
}
}
Loading

0 comments on commit f656023

Please sign in to comment.