Participating media II

I managed to get participating media properly, well at least how I expect it to work.

Since there are only two weeks left before I have to hand in the final report I will probably stop implementing anything new and continue working on the report.

I will however try to create cover art to demonstrate the features that I have implemented thus far.

volumetric4.png
Voxel grid rendered using henyey-greenstein phase function g=-0.4
volumetric.png
Constant volume; the light is coming from the top-right
volumetric1.png
Test render for proper occlusion with surfaces

Photon Mapping

I have been trying to implement photon mapping following the book “realistic image synthesis using photon mapping”. Ive come into some problems like what to do with the photon’s power during the photon tracing stage and how to use the photon map for rendering. I am probably misunderstanding some parts so its producing strange results as you can see below.

photonmap.png

KD Tree

I have been working on the data structure that is used in photon mapping during the photon emission stage. The kd tree seems to be choice so, I have been trying to implement a naive implementation just to get something working.

Below are some images debugging the data structure using opengl. They show the behaviour with different search radii with a max photon count of 100.

kdtree1.png
Cornell box radius 250cm: found 100
kdtree.png
Radius 50cm; found 100 photons
kdtree3.png
Radius 30cm; found 34 photons
kdtree4.png
Radius 10cm; found 3 photons

 

 

Autumn Leaf

Fixing and playing around with things while I am trying to grasp the concept of photon mapping and the k-d tree data structure. I will try to get a working implementation by the end of next week since I have to hand in the fourth progress report.

Below is an autumn leaf that is starting to decay. The textures are by Wojciech Piwowarczyk from his autumn leaves texture pack which sadly does not contain any glossy maps. Unfortunately, he has removed his photo-scanned leaves asset which do contain the geometry for the leaves and all the associated maps.

click the image for full size since wordpress compresses the images.

leaf_all.jpg
Render with diffuse, normal, opacity and translucency map
leaf_translucency.jpg
Render showing translucency
leaf_normal.jpg
Render of just the normal Map
leaf_viewport.jpg
3dsmax viewport; each plane has been successively scaled by 10% and spaced 10cm apart
leaf_test.jpg
An early test of translucency; the front face is white and the back is green

Rendering Fun: Part II

I was playing around with the rendering engine some more this time trying to render  foliage and a simple interior. I hope that I can render with some better models if I have the time to.

tree1.jpg
Rendering of a tree using a two-sided material with translucency
room-2048.jpg
Rendering of interior

 

cydc_012.png
Photograph of  Chiyodanomori Dental Clinic

The original photograph is by Daici Ano