eng_import.cc File Reference

Imports 3D model files from Blender as Graphs. More...

#include "base.hh"
#include "base_file.hh"
#include "gfx.hh"
#include "eng.hh"
#include "eng_node.hh"
#include "eng_graph.hh"
#include "eng_graph_maker.hh"
#include "eng_graph_debug.hh"
#include "eng_import.hh"

Namespaces

namespace  eng

Defines

#define ENG_IMPORT_CC   1
#define ERROR_TEXT_PREFIX   "ERROR[GraphImporter]: "
#define CODE_VERBOSE(CODE)   {{ }}


Detailed Description

Imports 3D model files from Blender as Graphs.

Id
LastChangedDate

Author:
Jim E. Brooks http://www.palomino3d.org
Remarks:
See implementation.html for the data format that is imported.
 *
 * Notes:
 * ------
 * Beware of the C++ pitfall of checking stream.eof().  If a read causes
 * failbit or badbit to be set, eofbit will never be set.
 * Call stream.good() to check for any error including EOF.
 *
 * Importer depends on GraphMaker allowing predecessor Nodes in any order.
 *
 * Importer depends on GraphMaker sorting opaque and translucent nodes.
 *
 * Blender model notes:
 * --------------------
 * (Normal vectors are no longer imported but this info is kept)
 * The normals of some faces may need to be flipped if Palomino appears to cull
 * some polygons backwards.  Blender can draw normals as small cyan rectangles.
 * Those that aren't sticking out (pointing inward) need to be flipped outward.
 *
 * Graph Partitions:
 * -----------------
 * Children of Graph Partitions correlate to Vertex Groups in Blender.
 * In Blender, Vertex Groups are a mechanism to mark and name a set of vertexs.
 * export-palomino.py uses Vertex Groups to divide a mesh into "partitions".
 * Polygons originate from the root partition, but the Blender exporter removes
 * polygons from the root that a child contains.  And, vertexs in the root,
 * that none of its remaining polygons reference, are pruned.
 *
 * 

Define Documentation

#define CODE_VERBOSE ( CODE   )     {{ }}

#define ENG_IMPORT_CC   1

#define ERROR_TEXT_PREFIX   "ERROR[GraphImporter]: "

Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:14 2007