#include <ngl3DSLoader.h>
This class can load most static informations (no animations) from Autodesk 3DStudio files. Format supported are .3DS or .PRJ binary files, from revision 2 to 4. The loading process is event-driven : when the Load() method is invoked, the different callbacks are called, once by object instance (mesh, camera, material, light) and once for global settings (OnScene()).
The loader can currently parse only from a file. It has been tested against large and various files and is considered robust.
This code does not make any use of the (copyrighted) Autodesk SDK content. It is based on reverse engineering and consultation of the Wotsit.org documents. Autodesk and 3D Studio are trade marks registered by their respective owners.
Public Member Functions | |
Life cycle | |
| ngl3DSLoader (const nglPath &rFileName) | |
| ngl3DSLoader (nglFile *pFile) | |
| virtual | ~ngl3DSLoader () |
Loader interface | |
| bool | Load (int VerboseLevel=0) |
| virtual bool | OnHeader (bool Is3DS, nglSize Size) |
| virtual bool | OnMaterial (const ngl3DSMaterial &rMat) |
| virtual bool | OnMesh (const ngl3DSMesh &rMesh) |
| virtual bool | OnLight (const ngl3DSLight &rLight) |
| virtual bool | OnCamera (const ngl3DSCamera &rCam) |
| virtual bool | OnScene (const ngl3DSScene &rScene) |
|
|
|
|
|
|
|
|
|
|
|
Start parsing.
|
|
|
New camera.
|
|
||||||||||||
|
Check 3DS signature.
|
|
|
New light (omni or spot, NOT ambient).
|
|
|
New material.
|
|
|
New mesh.
|
|
|
Global settings (called once).
|
1.4.1