Deciphering the Business Card Raytracer
fabiensanglard.net
Deciphering the Business Card Raytracer
1–10 of 68 posts
Re: Deciphering the Business Card Raytracer
#2Re: Deciphering the Business Card Raytracer
#3Re: Deciphering the Business Card Raytracer
#4How do you view the output?
Re: Deciphering the Business Card Raytracer
#5The output file is .aek but I can't figure out what to do with it. My Google-fu is failing me this evening. How do you view the output?
Re: Deciphering the Business Card Raytracer
#6The output file is .aek but I can't figure out what to do with it. My Google-fu is failing me this evening. How do you view the output?
card.aek: Netpbm PPM "rawbits" image data, size = 512 x 512
Not sure how to view Netpbm (portable bit map).
Re: Deciphering the Business Card Raytracer
#7The output file is .aek but I can't figure out what to do with it. My Google-fu is failing me this evening. How do you view the output?
Re: Deciphering the Business Card Raytracer
#8The output file is .aek but I can't figure out what to do with it. My Google-fu is failing me this evening. How do you view the output?
Re: Deciphering the Business Card Raytracer
#9The output file is .aek but I can't figure out what to do with it. My Google-fu is failing me this evening. How do you view the output?
./aek > aek.ppm
That will produce an image in .ppm format. ('The world's second-dumbest picture format.') You'll probably have to convert it to a more widely supported format. Make sure you have the netpbm package installed, and then run, say: pbmtopng aek.ppm > aek.bmpRe: Deciphering the Business Card Raytracer
#10Would the wasted empty space in a #define return make up for the several return statements that I see? That is why typedef statements are nice, you can ; terminate them!