Pages

Wednesday, 3 August 2011

Sanae 3D - cgkit

cgkit is a small python library that supports drawing 3D objects. It uses pygame for viewing the model.

After looking around for something that can actually draw 3D objects, I found this library and liked how it's compact (1 MB for cgkit, 1 MB for pygame).

Many other packages that I found were simply too large for something as simple as taking some vertices and faces and showing something.

I haven't figured out how to use the viewer very well and just copied some scripts to display a scene. It allows you to move the object, zoom in/out, as well as rotate the scene.

You can get cgkit here: http://cgkit.sourceforge.net/download.html

pygame here: http://www.pygame.org

You will also need to download PyProtocols: http://peak.telecommunity.com/PyProtocols.html

Sanae 3D - python image library

I've decided to use the PIL for all image handling and processing. Binary distributions are available for download at http://www.lfd.uci.edu/~gohlke/pythonlibs/ (search PIL)

It is a 1 MB download so it shouldn't be too much of a problem.

Wednesday, 27 July 2011

Getting started with 3D model formats

Brief tutorial that should get you started, based on what I did.
Provides very informal (and possibly wrong) explanations for all the technical concepts. Is meant for you to get an idea what you're getting yourself into, rather than information.

You should go and read better explanations on wikipedia or other formal sources.
Or you can just read this; it's much more formal and accurate:

http://wiki.xentax.com/index.php/DGTEFF

Sanae 3D

This is a small tool I wrote that serves three purposes:
  1. Provides a standard set of methods for parsing and exporting binary/text model files
  2. Provides easy methods for reading and writing binary files, making this an instructional tool for those interested in figuring out some model format.
  3. Instructional tool for myself