3D processing
by Reto Vogel on Nov.21, 2009, under HSLU, Multimediatechnik, Processing, Programming
This week’s task were about 3D modelling in Processing. You can build your own objects and figures based on vertices. But Processing is also capable of importing 3D models in various formats from your favourite modeling program.
Dice
In this exercise we used vertices to draw a dice. After modelling the vertices we over-layed a texture, we drawed before in Photoshop.
The result can be seen in the applet beyond. Use UP and DOWN to zoom in or out and drag the dice to rotate with your mouse!
Applet demonstration here.
3D Modelling
In this exercise I imported a 3D model. I found a nice modell of a watering can on oyonale.com. To load OBJ into processing, an OBJ loader like the SAITO OBJ loader is needed. The code is quite simple an can be seen here on my page.
You can rotate the object by dragging it with your mouse. Try it out here.