Skip to content

Commit baae16c

Browse files
committed
environment map with importance sampling + fix texture filtering issue + add demo scene for fov & environment map
1 parent f80d8c9 commit baae16c

21 files changed

+16560
-174
lines changed

img/apature_0.png

502 KB
Loading

img/apature_0_1.png

658 KB
Loading

img/demo_1.png

2.09 MB
Loading

img/env_imp_sampling.png

4.51 MB
Loading

scenes/env_map.txt

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
Camera
2+
Resolution 1800 1350
3+
FovY 40
4+
LensRadius 0
5+
FocalDist 11
6+
Sample 5000
7+
Depth 8
8+
File Cornell
9+
Eye 0 0 10
10+
LookAt 0 0 0
11+
Up 0 1 0
12+
13+
EnvMap texture/gamrig_4k.hdr
14+
15+
Material Light
16+
BaseColor 8 8 8
17+
Type Light
18+
Metallic 0
19+
Roughness 1
20+
Ior 0
21+
NormalMap Null
22+
23+
Material Light2
24+
BaseColor 1 1 1
25+
Type Light
26+
Metallic 0
27+
Roughness 1
28+
Ior 0
29+
NormalMap Null
30+
31+
Material White
32+
Type Lambertian
33+
BaseColor .98 .98 .98
34+
Metallic 0
35+
Roughness 1
36+
Ior 0
37+
NormalMap Null
38+
39+
Material Red
40+
Type Lambertian
41+
BaseColor .85 .25 .25
42+
Metallic 0
43+
Roughness 1
44+
Ior 0
45+
NormalMap Null
46+
47+
Material Green
48+
Type Lambertian
49+
BaseColor .25 .85 .25
50+
Metallic 0
51+
Roughness 1
52+
Ior 0
53+
NormalMap Null
54+
55+
Material Metal
56+
Type MetallicWorkflow
57+
BaseColor .98 .98 .98
58+
Metallic 1.0
59+
Roughness 0.2
60+
Ior 1.1
61+
NormalMap Null
62+
63+
Material Mirror
64+
Type Dielectric
65+
BaseColor 1 1 1
66+
Metallic 1
67+
Roughness 0
68+
Ior 0.05
69+
NormalMap Null
70+
71+
Material Plastic
72+
Type MetallicWorkflow
73+
BaseColor .2 .3 .8
74+
Metallic 0
75+
Roughness 0.15
76+
Ior 1
77+
NormalMap Null
78+
79+
Material Glass
80+
Type Dielectric
81+
BaseColor 1 1 1
82+
Metallic 0
83+
Roughness 0
84+
Ior 1.5
85+
NormalMap Null
86+
87+
Material AlienMetal
88+
Type MetallicWorkflow
89+
BaseColor texture/sci-fi-panel1-albedo.png
90+
Metallic 1
91+
Roughness 0.3
92+
Ior 0
93+
NormalMap texture/sci-fi-panel1-normal.png
94+
95+
Material Textured2
96+
Type MetallicWorkflow
97+
BaseColor texture/pixel.png
98+
Metallic 0.1
99+
Roughness 0.1
100+
Ior 0
101+
NormalMap Null
102+
103+
Object Floor
104+
model/square.obj
105+
Material White
106+
Translate 0 -3 0
107+
Rotate 0 0 0
108+
Scale 100 100 100
109+
110+
Object Bunny
111+
model/bunny.obj
112+
Material Plastic
113+
Translate 0.5 -2 0
114+
Rotate 0 0 0
115+
Scale 1 1 1
116+
117+
Object Teapot
118+
model/teapot.obj
119+
Material Glass
120+
Translate 2 0 -2
121+
Rotate 45 45 0
122+
Scale .3 .3 .3
123+
124+
Object Sphere
125+
model/sphere40.obj
126+
Material Mirror
127+
Translate 4 0 0
128+
Rotate 0 0 0
129+
Scale 1 1 1
130+
131+
Object Cube
132+
model/cube.obj
133+
Material AlienMetal
134+
Translate -2 1 -1
135+
Rotate 0 45 10
136+
Scale 1.1 1.1 1.1

scenes/fov.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Camera
2+
Resolution 1800 1350
3+
FovY 15.4
4+
LensRadius 0.1
5+
FocalDist 9.5
6+
Sample 5000
7+
Depth 8
8+
File Cornell
9+
Eye 0 1 10
10+
LookAt 0 1 0
11+
Up 0 1 0
12+
13+
EnvMap texture/forest_slope_4k.hdr
14+
15+
Material Glass
16+
Type Dielectric
17+
BaseColor 1 1 1
18+
Metallic 0
19+
Roughness 0
20+
Ior 1.5
21+
NormalMap Null
22+
23+
Material Floor
24+
Type Lambertian
25+
BaseColor texture/checker.png
26+
Metallic 1
27+
Roughness 0.3
28+
Ior 0
29+
NormalMap Null
30+
31+
Object Floor
32+
model/000.obj
33+
Material Floor
34+
Translate 0 0 0
35+
Rotate 0 0 0
36+
Scale 1 1 1
37+
38+
Object Sphere
39+
model/sphere40.obj
40+
Material Glass
41+
Translate 0 1 0
42+
Rotate 0 0 0
43+
Scale 1 1 1

0 commit comments

Comments
 (0)