ScratchData LogoScratchData
Back to Jamohyperturbopro's profile

Raytracer with Image Export

JAJamohyperturbopro•Created October 21, 2012
Raytracer with Image Export
22
18
1185 views
View on Scratch

Description

Canthiar's raytracer http://scratch.mit.edu/projects/Canthiar/56074 but with variable resolution, and the ability to export as a .ppm image. Remember, the 3D render was done by Canthiar. I just made the interface more complicated, and added an exporter. run in flash turbo keep an eye on "Process", which shows the percentage of completion. press R to render press X to set the width of the image press Y to set the height of the image press E to export (may take a while), then triple click the text under "PPM export", copy it, and paste it in a text editor, then save it as something.ppm. In an attampt to avoid crashes, the exporter will ask you to download it in parts if the image is larger than 25600 pixels. Simply copy and paste everything in the export box, then press N and a new lot of data will be produced for you to copy and paste right after the last lot in your text editor. The free image editor GIMP can open them and export them to pretty much any other format. otherwise there is an online converter here http://www.sciweavers.org/free-online-image-converter . press Q for a letterbox render. in other words, you select a row (indexed top to bottom, starting at 1) to start rendering from, and the number of rows down you want to render. this makes it possible to render large images in parts and be sure not to lose half an hour's render in a crash.

Project Details

Project ID2849088
CreatedOctober 21, 2012
Last ModifiedNovember 29, 2014
SharedOctober 21, 2012
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root