The Other G3D Examples
Tuesday, 27 December 2005, 2:00 pm
The example I'd like to look at next is the ArticulatedDemo. It does a whole load of things, like loading a variety of models and placing them in a scene graph. It's this scene graph thing that I think I need to understand properly.
Unfortunately, I can't get ArticulatedDemo to run - it compiles and links ok, but fails an assertion, then crashes.
The next most interesting demo is Collision_Demo, which has a set of static objects in a box, then drops a load of different sized balls in, which bounce around the place.
It compiles and runs fine.
Unfortunately, I can't get ArticulatedDemo to run - it compiles and links ok, but fails an assertion, then crashes.
The next most interesting demo is Collision_Demo, which has a set of static objects in a box, then drops a load of different sized balls in, which bounce around the place.
It compiles and runs fine.
compton
2:00 pm, Thursday, 29 December 2005
The MD2_Demo, which loads Quake II format MD2 models, runs well. It loads an animated model from some Penrith game, called pknight. All files relating to the model are stored in a folder of that name. These files include MD2 files for each sub-model (the knight has a separate weapon), and PCX texture files for each submodel too.
compton
2:00 pm, Wednesday, 28 December 2005
Defines the entry point (main()), the App class, and a subclass of GApplet, called Demo.
Defines methods of Demo for building a scene from static and dynamic objects.
Defines the Scene object, itself made up of static objects, dynamic objects, the shadow map, and a sky. It does not use a scene graph, instead storing objects in two arrays (one for static objects, the other for dynamic).
Defines a family of 6 classes with Object at the head. GeneralObject, BoxObject, CapsuleObject and SphereObject all derive from Object, SimSphere derives from SphereObject.
Handles 3D models loaded from disk. Contains a static Table that caches loaded objects.