hi,
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 (get the model position corresponding to the texel …) ? (how many rays should i throw !!!) Is this the right way ?
Thanks !!