Skip to content

folkertvanheusden/obj2pov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

This program convertes wavefront .obj-files to something that can be rendered by PovRay or OpenSCAD. The first release is still rather limited altough the minecraft obj-files produced by https://github.com/jmc2obj/j-mc-2-obj work quite well.

Usage:

./obj2pov.py -f inputfile.obj > outputfile.pov

For OpenSCAD output:

./obj2pov.py -S -f inputfile.obj > outputfile.scad

Then you can render it with PovRay/OpenSCAD. For PovRay you may want to tweak the camera location and maybe add some more lights.

Note that for a model from j-mc-2-obj, you want to tick 'Create a seperate object for each block' and untick 'Do not allow duplicate vertexes' in the export window.

Example renders with PovRay:

These examples how a minecraft segment converted to OpenSCAD.

Released under the MIT license by

Folkert van Heusden folkert@vanheusden.com

About

This program converts wavefront .obj files to PovRay scenes and OpenSCAD scripts.

Topics

Resources

Stars

Watchers

Forks

Languages