This tutorial will show you how to take a 3D scene from Processing (or any app compatible with OGLE and turn it into a physical 3D model using the Stratasys BST 3D Printer. Right now this only works on Windows due to the reliance on GLIntercept (sorry) though since Processing is cross-platform you could load your sketch on a Windows machine to generate the OBJ.
Steps:
- Download and install Processing
- Download and install GLIntercept
- Download and install OGLE
- Download and install OGLE
- Copy the GLIntercept opengl32.dll into your processing/java/bin directory
- Copy the OGLE gliConfig_OGLE.txt to gliConfig.txt in your processing/java/bin directory
- For some reason Processing doesn’t like the default GLIntercept capture keystroke (CTRL-SHIFT-F) so we need to change it
- Edit the gliConfig.txt in the Processing directory and search for “(ctrl,shift,f)” and replace it with “(f6)”
- Write code in Processing (todo)
- You need to open your window in OpenGL mode by adding
import processing.opengl.*at the top of you code and givingOPENGLas the last argument tosizein yoursetupfunction (e.g.size(200, 200, OPENGL);) - Run your sketch. You should see the file glIntercept.log appear in your Processing /java/bin directory
- You need to open your window in OpenGL mode by adding
- Capture scene by pressing F6 from inside Processing. You should see ogle.obj appear in your
directory - Convert OBJ captured from OGLE into STL
- Using Blender
- Get and install Blender
- Import using File->Import->Wavefront (.obj)
- Export using File->Export->STL
- Inside Catalyst you may need to select STL->Reverse Normals if things look weird. Also, Blender seems to choke on large files that Maya can handle without problems
- Using Maya
- Download and install the mayaExportSTL script
- Open your file in Maya, select the desired geometry, and type “mayaExportSTL” on the MEL command-line
- Using Blender
- Preview STL in Catalyst (todo)
- Print it!
- Remove supports from model (todo)