Deciphering the Business Card Raytracer
31–40 of 68 posts
Re: Deciphering the Business Card Raytracer
#32Earlier quoted context omitted.
How come you decided for a coordinate system with Z pointing up instead of the traditional right hand/left hands coordinate systems ?
In non-programming math contexts, it's pretty standard for Z to point up. I have no idea why, as it seems to me like the typical way it works in graphics programming is the more obvious extension of 2D plotting into 3D.
Re: Deciphering the Business Card Raytracer
#33The 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?
If you're using Linux or OSX, run it like this: ./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.bmp
Re: Deciphering the Business Card Raytracer
#34Earlier quoted context omitted.
FWIW I was not able to open it with Preview on OS X 10.8
Eep, my mistake. You're right: it doesn't work. I thought I used to open PPMs with Preview back in Mac OS 10.3 or something else ancient. I could be mistaken on that. Oh well. Everyone has Gimp and LibreOffice installed though, right? They both open the file without problems.
Re: Deciphering the Business Card Raytracer
#35The 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?
If you're using Linux or OSX, run it like this: ./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.bmp
.aek | displayRe: Deciphering the Business Card Raytracer
#36Earlier quoted context omitted.
If you're using Linux or OSX, run it like this: ./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.bmp
What is the worlds dumbest picture format then?
Re: Deciphering the Business Card Raytracer
#37Earlier quoted context omitted.
Eep, my mistake. You're right: it doesn't work. I thought I used to open PPMs with Preview back in Mac OS 10.3 or something else ancient. I could be mistaken on that. Oh well. Everyone has Gimp and LibreOffice installed though, right? They both open the file without problems.
Or just install ImageMagick, and do 'convert card.ppm card.png'.
Re: Deciphering the Business Card Raytracer
#38Earlier quoted context omitted.
What is the worlds dumbest picture format then?
Raw data without any header, I suppose. You must know or guess the width and height to properly decode the image.
Re: Deciphering the Business Card Raytracer
#39Earlier quoted context omitted.
How come you decided for a coordinate system with Z pointing up instead of the traditional right hand/left hands coordinate systems ?
In non-programming math contexts, it's pretty standard for Z to point up. I have no idea why, as it seems to me like the typical way it works in graphics programming is the more obvious extension of 2D plotting into 3D.