Search code examples
swingscala3dprocessing

Simple 3D graphics in Scala


I am developing a spatial data structure, and I am looking for a quick and easy way to visualize it for the 3D case. I am familiar with Java2D, but not Java3D or OpenGL.

Which library would you recommend for this? I mainly need to draw 3-dimensional points, lines, and cubes. So ideally like the Graphics2D API but with an extra z component. No animation, collision detection, textures, < your-favourite-3D-feature-here > needed. It should preferably integrate with Swing/AWT. Parametric view angle would be good, so I rotate around the scene.


Solution

  • Processing: