Changing Mailman Python Scripts for Virtual Host Support
Native Linux Space Warfare: Freespace 2
JQuery Venetian Blinds Transition Effect
Installing Xdebug for use with Eclipse or Netbeans on Linux
Using Multi-Byte Character Sets in PHP (Unicode, UTF-8, etc)
Symfony 2 Crash Course

The IFS Modeller

Sunday, 22 January 06, 12:00 am
This little program allows you to create IFS models suitable for use in G3D programs. An IFS model can be built from an array of vertices with an associated array of indicies. The indices refer to offsets in the vertex array, and are grouped in sets of three - representing the triangular faces of the model.

So far, my program allows you to:
  • Add a new vertex at the origin
  • Select a vertex with the TAB key
  • Move the selected vertex with the numpad arrow keys
  • Zoom in and out using the numpad plus and minus keys
  • Revolve the camera around the model (xz plane) by moving the joystick left and right
  • Align the previously selected vertex with the current one
The next two steps are 1) allow a vertex to be selected by clicking with the mouse and 2) allow a set of three vertices to be linked together to form a triangular face.

At that point, I'll be ready to test everything by saving the vertex and index arrays as an IFS model, and then loading it in another G3D program.


7:00 am, Monday, 6 March 06

The latest version can:

  • Select a vertex with the mouse

  • Designate a set of 3 vertices as a face

  • Save the model as an IFS

  • Load an IFS model and edit it

Currently lacking is texture map support. The modeller could help by creating the texCoords for the model. For each face, it would generate the 2D points on the texture map. This would produce a texCoord for each vertex, which may not be necessary. Instead, the user could make the selected vertex a texCoord, entering somehow the corresponding 2D coordinates of the texture map.
Leave Comment

/xkcd/ The Simpsons

About This Page