tag:blogger.com,1999:blog-85054810215834834852014-10-05T07:55:04.716+05:30My Mtech ProjectI am doing Computer Graphics major from IITD. My project is tissue rendering.Gauthamahttp://www.blogger.com/profile/07876075222713595243noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8505481021583483485.post-74498033396256486982011-02-11T23:18:00.000+05:302011-02-11T23:18:12.121+05:30This week<div dir="ltr" style="text-align: left;" trbidi="on">I kind of have 1 week for my mid term review and as always i am a last minute worker. So here is my plan for this week, going through that real time photon map thesis, and see for alternatives for real time subsurface scattering and also i will have to try and implement the paper so i will start again on that.<br /><br /></div>Gauthamahttp://www.blogger.com/profile/07876075222713595243noreply@blogger.com0tag:blogger.com,1999:blog-8505481021583483485.post-73185125338518594272011-02-11T01:14:00.000+05:302011-02-11T01:14:06.945+05:30Testing the Results<div dir="ltr" style="text-align: left;" trbidi="on">In my implementation there are two parameters absorb and scatter and at every event point whether there is scattering or absorption is decided by these coeffs.<br />i.e we take the ratio absorb/(absorb+scatter) at each event point and then generate a random number between zero and one. If the number is less than the ratio the event is absorption else it is scattering. Let me play with the coeffs. If my ab coeff is 0 the image should be black.<br />The wet spheres are black.<br />So that is correct.<br />Now let me try for case scatter coeff is 0. I should get an image similar to my earlier diffuse image.Here i get an additional layer of rings above some radius on the wet surfaces. Why are these rings appearing?<br /><br />A curious thing i observe is that when i do not generate the other hit points in the media the circles do not appear. What can be the reason for this?<br /><br /><br /><br /><br /></div>Gauthamahttp://www.blogger.com/profile/07876075222713595243noreply@blogger.com0tag:blogger.com,1999:blog-8505481021583483485.post-62771784794186733902011-02-10T22:08:00.001+05:302011-02-10T22:11:16.998+05:30My implementation<div dir="ltr" style="text-align: left;" trbidi="on">Ok my initial implementation of the wetness paper is as follows. I am just doing the subsurface part first.<br />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.<br />There are two things i have to deal with in case of subsurface scattering.<br /><br /><ul style="text-align: left;"><li>Photon tracing</li></ul>In case of photon tracing you have to trace the photon with a monte carlo model(this model is suggested to be efficient because here you only have photons of equal energy). At every distance given by absorption coefficient you do a random number generation to see whether the photon is absorbed or scattered.<br />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.<br /><br /><ul style="text-align: left;"><li>Ray tracing.</li></ul>While doing ray tracing i kind of do a ray marching along the ray that enters the wet media. This is done by having hit points at fixed distances(given by the ab and scatt coeffs) and these hit points corresponds to the same pixel.<br /><br /><br /><br /><br /><br /><br /><br /></div>Gauthamahttp://www.blogger.com/profile/07876075222713595243noreply@blogger.com0tag:blogger.com,1999:blog-8505481021583483485.post-57193619006885531542011-02-09T01:20:00.002+05:302011-02-10T22:18:16.229+05:30Wetness Rendering Paper<div dir="ltr" style="text-align: left;" trbidi="on">I have my meetings with Prof Subodh Kumar on Tuesdays 11.30 am.<br />So i will update my blog at least before the meetings. <br /><br /><br />I am currently working on wetness rendering and my aim is to render wetness as realistically as possible in real time(30 fps). I am currently trying to implement the paper rendering wet material by Jensen. This approach uses photon mapping to render wetness. Since it uses photon mapping it is obviously not real time(Although i saw a paper on real time photon mapping).I have to somehow improvise and innovate it to real time. I am using a basic implementation of progressive photon mapping to help me render the images.<br /><br />So what does this paper have?<br />It talks that in order to render wetness it has two models<br /><ul style="text-align: left;"><li>Surface model.</li></ul><ul style="text-align: left;"><li>Subsurface model.</li></ul>In case of <b>Surface model</b> it talks about the amount of photons that pass through the layer of water.A thin film of water is on the surface of material due to wetness. The effect of this is given by fresnal's equations(I am confused about some of the concepts). This is obtained with the help of refractive indexes, the incident angle, the transmitted angle(actually the refractive indexes give the angles with the help of Snell's law).<br /> The Surface model is trying to simulate total internal reflection in the layers causing further absorption.<br /><br />In case of <b>Subsurface model </b>it basically talks about subsurface scattering. In case of subsurface scattering light enters the object at some place of the object and exits at some other place. Inside the material light can be scattered or absorbed.<br />The scattering and absorption are given by scattering coefficient and absorption coefficient respectively. The scattering and absorption are given in units of cm-1 and helps us to decide each scattering event. The probability of absorption is given with the help of exponential distribution(some doubts in this area also need to be cleared).<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><div><br /><br /><br /></div></div>Gauthamahttp://www.blogger.com/profile/07876075222713595243noreply@blogger.com0tag:blogger.com,1999:blog-8505481021583483485.post-82281641623112119732011-02-07T22:38:00.000+05:302011-02-07T22:38:52.958+05:30Purpose<div dir="ltr" style="text-align: left;" trbidi="on">The purpose of this blog is as a way of analyzing my project. By writing down the progress of my project i am planning to think loudly. Hope this helps my project. </div>Gauthamahttp://www.blogger.com/profile/07876075222713595243noreply@blogger.com0