Talpadk’s Blog

February 21, 2014

Antialiased openscad rendering

Filed under: 3D Printing — talpadk @ 10:48 am
Tags: , , , ,

OpenSCAD rendering

Std. 512x512 OpenSCAD rendering

Std. 512×512 OpenSCAD rendering

Recent versions of OpenSCAD is capable of rendering objects/assemblies to images.
To the right there is an example of the default 512×512 image quality produced by the command:

openscad -o render.png assembly.scad

Below it is an anti-aliased version of the same scad file.
I used the common trick of generating an oversized image and downscaling it.
It was created with the following two commands:

openscad -o render.png  --imgsize=2048,2048 assembly.scad
convert render.png -resize 512x512 render.png

If you update your project renderings using a makefile/script I don’t consider it much of a hassle considering the improvement in image quality.
Also at least on my laptop with the currently relativity simple scad file rendering is still fast.

2048x2048 OpenSCAD render downscaled to 512x512

2048×2048 OpenSCAD render downscaled to 512×512

In case you are wondering the assembly is a new CNC mill I’m designing.
Which hopefully is an improvement over the last design.

The old design is available HERE
The new design is being created HERE

Unlike the old design the new one is being pre-assembled in openscad, hopefully preventing having to print parts that only fitted together in my head, saving both time and plastic.

Both designs are hosted on Cubehero, my favourite site for sharing designs on.
It comes with build in version control though git (it also has a web interface for “kittens”)
Wil that runs the site is a friendly and helpful guy, and it is not bogged down with stupid End User License Agreements like another site…
I highly recommend it…

Advertisements

1 Comment »

  1. Thanks, this solved my quality issues for generated PNG’s. Awesome!

    Comment by yfdennisdevulder — February 24, 2015 @ 3:14 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: