Skip to content

Commit 351b761

Browse files
committed
Add more renders
1 parent 4200c47 commit 351b761

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ Here's a comparison of different dispersion coefficients. Each of these renders
4141
|:-:|:-:|
4242
|![](img/specular_refraction_dragon_disp0.png)|![](img/specular_refraction_dragon_disp.1.png)|
4343
| **Dispersion = 0.5** | **Dispersion = 1** |
44-
|Render to come![](img/specular_refraction_dragon_disp.5.png)|![](img/specular_refraction_dragon_disp1.png)|
44+
|![](img/specular_refraction_dragon_disp.5.png)|![](img/specular_refraction_dragon_disp1.png)|
45+
46+
Colored refractive materials can also be dispersive. Here's a comparison of clear dispersive and non dispersive dragons as well as yellow dispersive and non dispersive dragons.
47+
48+
|![](img/specular_refraction_dragon_disp0.png)|![](img/specular_refraction_dragon_disp.5.png)|
49+
|:-:|:-:|
50+
|![](img/specular_refraction_dragon_yellow_disp0.png)|![](img/specular_refraction_dragon_yellow_disp.5.png)|
4551

4652
Dispersion does not cause each iteration to take more time, but rendering with a high dispersion may take more iterations to reach the same level of convergence.
4753

@@ -58,9 +64,8 @@ The surface area heuristic is about 32 times faster on a 5000 primitive scene (S
5864
#### Textures
5965
Diffuse textures and normal maps are supported using the `TEX` and `NOR` attributes when defining materials. As textures are loaded, their data is added onto a flat array containing every texture. Each material stores an offset to the array to where its texture starts, along with the texture width to correctly compute the location in the array of a given pixel. Both normal maps and diffuse textures are stored in the same array. UV mapping is implemented for cubes, spheres, and meshes.
6066

61-
|||
62-
|---------------|------------------|
6367
|![](img/textures.png)|![](img/textures-alt.png)|
68+
|---------------|------------------|
6469
|![](img/normal.png)|![](img/mesh_texture.png)|
6570

6671

@@ -70,12 +75,9 @@ First rays emitted from the camera are uniformly jittered within each pixel so t
7075
## More renders
7176
Finally, here are more renders to show correctness. Note that I turned up the emittance of the light to 8 from 5, so these may look brighter than reference renders.
7277

73-
||||
74-
|---------------|------------------|-|
75-
|![](img/diffuse_blue_dragon.png)|![](img/specular_reflection_dragon.png)|![](img/specular_refraction_dragon_disp0.png)|
76-
77-
|||
78+
|![](img/diffuse_blue_dragon.png)|![](img/specular_reflection_dragon.png)|
7879
|---------------|------------------|
80+
|![](img/specular_refraction_dragon_disp0.png)|![](img/specular_refraction_dragon_blue.png)|
7981
|![](img/vanilla_1.png)|![](img/vanilla_specular.png)|
8082

8183
## References
1.3 MB
Loading
1.49 MB
Loading
1.4 MB
Loading
1.4 MB
Loading

scenes/cornell.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ NOR NONE
5252

5353
// Specular white
5454
MATERIAL 4
55-
RGB .98 .98 .98
55+
RGB .95 .87 .35
5656
SPECEX 0
5757
SPECRGB .98 .98 .98
5858
REFL 1
5959
REFR 1
6060
REFRIOR 1.3
61-
DISP 0.5
61+
DISP 0
6262
EMITTANCE 0
6363
TEX NONE
6464
NOR NONE
@@ -122,7 +122,7 @@ FOVY 45
122122
ITERATIONS 6000
123123
DEPTH 8
124124
FILE cornell
125-
EYE 0.0 5 10.5
125+
EYE 0.0 5 10
126126
LOOKAT 0 5 0
127127
UP 0 1 0
128128

0 commit comments

Comments
 (0)