Faster Pixel Beads Photo Pane

by jsc, published

Faster Pixel Beads Photo Pane by jsc Apr 25, 2014


Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

15132Views 1588Downloads Found in 2D Art


Just like the original, but 3 to 4 times faster. Generates the shape as a 2D surface and extrudes the entire surface at once for better performance. On my machine, 50x50 compiles are ~1h 30m, down from 6+ hours.

Also fixes an error in the default parameters which sometimes generated non-manifold STLs.


The linear extrude takes up a lot of time. This will disable the preview in the Customizer, so use Preview mode, then switch it to Compile before finishing.

You can only use the Customizer for 20x20 images. Much larger images are still too slow. This is mainly intended for people who want to download the OpenSCAD file and generate their own photo panes locally.

To compile locally, set the mode variable to Compile, use the image array tool to generate the picture array (don't forget to invert colors), and change the width and height to your image size. Be aware that almost all the time will be taken up generating the preview in Compile mode; the actual render and compile step should take under a minute.

Refer to the original version for more information.

More from 2D Art

view more

All Apps

Upgrade this Thing with Thingiverse Apps


Edit, personalize, or revise this Thing

Customizer is the easiest way to take great 3D printable designs and make them your own. Make your OpenSCAD designs infinitely more valuable by empowering the community to customize them.

App Info Launch App
Customizer Thing App

I don't see a button for uploading my own image in the customizer window. Am I missing something? Thanks a lot ahead of time.

Check the Instructions section for a link to the image array tool.

The instructions link goes nowhere and there are no input options at all (no data or image file upload) when this open in customizer (at least in Chrome). What up?

Thingiverse appears to have removed the Instructions tab and nuked any content that used to be in there. Thanks, thingiverse. I've retrieved the text and put it directly in the summary.

Customizer appears to be broken, and not displaying the variable settings. It just repeats the first variable ("mode") several times. You can run the script locally using OpenSCAD and the restored instructions.

I will make mine self portrait , i have a file in jpg and png , can i make it
I understand the operation not good, what do you do after the " Usage To Array " (what do you do with the numeric code ????)
( sorry for mine bad englisch

Try using the Customizer, where you do not have to worry about that, just upload a picture.

If you really really want to run it locally, put the image data in a file (for example, "portrait.dat") and set the surface_file variable to the filename you chose: surface_file = "surface.dat"; Line 12 or so.

You could probably go ahead and remove your hack at this point - customizer cranked this thing out in a few seconds for me, and I was able to see it pretty quick in the preview even on render.

Thanks by the way, this is a cool script. Lots of possibilities here.

it writes 'current top level is not a 3d object' in openscad

Make sure pixel_size and grid_size don't add up to exactly 1.

it adds up to 0.8 but it still writes 'top level object is a 2d object'

Ah, I see what's probably going on. You need to change the "mode" setting in line 6 to "Compile". This is a hack optimization to get it to be fast enough to work with the Customizer (although it's probably not needed any more, with Customizer having been upgraded to a version of OpenSCAD that is super fast on these objects now).

Thanks! its working again

FYI: If you use the latest development snapshot of OpenSCAD, "Compile" mode is now near-instantaneous.

Why, so it is! Amazing.

Garbled, how? When you switch the mode select to Compile, it will take a few minutes for the preview to update. In the meantime, the preview window will show the nine-squares "waiting" animation. Just hit Create Thing at that point. I just tried it and it works for me.

"Preview" looks great, "Compile" looks garbled. Anyone able to get this one to work?