Initializing OpenGL
Error
I'm looking at your cl code so I can understand how you do it. But what about the main loop, how does it call the kernel(s)? Will you provide the sample c code (or the pseudo code) for the loop (please
Not Telling
18 May 2013 - 01:39 AM
17 May 2013 - 05:25 PM
04 May 2013 - 07:07 PM
04 May 2013 - 04:44 AM
03 May 2013 - 09:00 PM
for (int spp=0; spp<32; spp++) {
Init_Info_Buffer; // reset path termination flag along other things.
for (int depth=0; depth<3; depth++) {
Kernel_Gen_Cam_Rays;
Kernel_Shoot_Rays;
// begin direct illumination for none terminating paths.
// discard camera rays to sky for example but still record sky color.
Kernel_Gen_Rays_To_Random_Light;
Kernel_Shoot_Rays; // for none terminating paths, discard rays not hitting any lights.
Kernel_Gen_Random_Hemi_Rays; // diffused rays
Kernel_Shoot_Rays; // if hit sky, record color, else keep path for next depth.
}
Send_Pixels_To_Screen;
}
Find content