Ok my initial implementation of the wetness paper is as follows. I am just doing the subsurface part first.

In my hand i have a progressive photon map implementation. This implementation has ray tracing pass first which generate hit points on diffuse surfaces. The whole area is divided into grids and each grid point has a sphere associated with it to collect photons(surrounding ,some initial radius). Each hitpoint is mapped into grids with the help of these spheres.

There are two things i have to deal with in case of subsurface scattering.

If photon is absorbed it is stored there in photon map else it is scattered in random direction. My scene consists only of spheres so i check after the photon hits a surface that whether the photon is inside or outside the sphere at every event distance(given by ab coeff)if it is inside the surface i do the scatt or ab otherwise it is just a normal photon.

In my hand i have a progressive photon map implementation. This implementation has ray tracing pass first which generate hit points on diffuse surfaces. The whole area is divided into grids and each grid point has a sphere associated with it to collect photons(surrounding ,some initial radius). Each hitpoint is mapped into grids with the help of these spheres.

There are two things i have to deal with in case of subsurface scattering.

- Photon tracing

If photon is absorbed it is stored there in photon map else it is scattered in random direction. My scene consists only of spheres so i check after the photon hits a surface that whether the photon is inside or outside the sphere at every event distance(given by ab coeff)if it is inside the surface i do the scatt or ab otherwise it is just a normal photon.

- Ray tracing.

## No comments:

## Post a Comment