I want to create a light map render using ray tracing for learning purpose.
I already builded the raytracer part, but i dont know how to generate the lightmap from that.
Today, i just throw the rays from my camera, calculate the intersection, shading, throw extra rays ....
But how do i use this to generate the lightmap ?
Do i need throw rays from each texel of my model's texture ? (how many rays should i throw ??!!) Is this the right way ?
And, to "throw rays from each texel of my model's texture", do i need to rasterize my triangles, get the generated position, them throw the rays ?
Thanks !!
Edited by tpastor, 13 November 2012 - 07:37 PM.






