my digital playground

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

3D diceIn 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

Watering can 3D objectIn 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.

Bookmark, print, and share:
  • Print
  • PDF
  • Add to favorites
  • Digg
  • Facebook
  • del.icio.us
  • StumbleUpon
  • MySpace
  • Live
  • Google Bookmarks
:, , ,

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Archives

All entries, chronologically...