discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Antialiasing when doing image export?

S
Scalpel78
Sun, Jan 4, 2015 8:25 PM

Hi, I'm using the commandline export to file functionality to generate some
images of my model.

For OpenSCAD itself I've set some anti-aliasing settings in the AMD Control
Center, so that lines are smooth when I preview a model in OpenSCAD. But,
when I export to file via the commandline the antialiasing doesn't work.
I've set the AA settings for both the openscad.exe and openscad.com files,
but it's not looking pretty.

Here is a screenshot of the model in OpenSCAD next to the same model
exported to file. Notice the jagged lines.
http://forum.openscad.org/file/n10912/Antialiasing.png

The command I used to export the cube was:
"%PROGRAMFILES%\OpenSCAD\Openscad.com" -o images\cube.png -D $fn=100
cube.scad

Any suggestions for how I can make the exported image look better?

--
View this message in context: http://forum.openscad.org/Antialiasing-when-doing-image-export-tp10912.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi, I'm using the commandline export to file functionality to generate some images of my model. For OpenSCAD itself I've set some anti-aliasing settings in the AMD Control Center, so that lines are smooth when I preview a model in OpenSCAD. But, when I export to file via the commandline the antialiasing doesn't work. I've set the AA settings for both the openscad.exe and openscad.com files, but it's not looking pretty. Here is a screenshot of the model in OpenSCAD next to the same model exported to file. Notice the jagged lines. <http://forum.openscad.org/file/n10912/Antialiasing.png> The command I used to export the cube was: "%PROGRAMFILES%\OpenSCAD\Openscad.com" -o images\cube.png -D $fn=100 cube.scad Any suggestions for how I can make the exported image look better? -- View this message in context: http://forum.openscad.org/Antialiasing-when-doing-image-export-tp10912.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Jan 4, 2015 8:54 PM

On 01/04/2015 09:25 PM, Scalpel78 wrote:

Any suggestions for how I can make the exported image look better?

Using large values for --imgsize=width,height and scale down the
image should allow pretty much give same effect as the anti-aliasing
settings.

ciao,
Torsten.

On 01/04/2015 09:25 PM, Scalpel78 wrote: > Any suggestions for how I can make the exported image look better? > Using large values for --imgsize=width,height and scale down the image should allow pretty much give same effect as the anti-aliasing settings. ciao, Torsten.
S
Scalpel78
Tue, Jan 6, 2015 8:43 PM

Thanks, that helped.

I can go as high as --imgsize=4096,4096. That gives a lot smoother edges.
Here is a comparison without ---imgsize, and with it set to 4096.
http://forum.openscad.org/file/n10948/CubeBetter.png

I started getting errors when trying --imgsize=8192,8192.

--
View this message in context: http://forum.openscad.org/Antialiasing-when-doing-image-export-tp10912p10948.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Thanks, that helped. I can go as high as --imgsize=4096,4096. That gives a lot smoother edges. Here is a comparison without ---imgsize, and with it set to 4096. <http://forum.openscad.org/file/n10948/CubeBetter.png> I started getting errors when trying --imgsize=8192,8192. -- View this message in context: http://forum.openscad.org/Antialiasing-when-doing-image-export-tp10912p10948.html Sent from the OpenSCAD mailing list archive at Nabble.com.