Max rewrite adjustments

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 11 years ago
parent 3dbde05bdf
commit 797144c783

@ -48,11 +48,12 @@ using namespace PIPELINE::MAX::UPDATE1;
using namespace PIPELINE::MAX::EPOLY; using namespace PIPELINE::MAX::EPOLY;
//static const char *filename = "/srv/work/database/interfaces/anims_max/cp_fy_hof_species.max"; //static const char *filename = "/srv/work/database/interfaces/anims_max/cp_fy_hof_species.max";
static const char *filename = "/home/kaetemi/source/minimax/GE_Acc_MikotoBaniere.max"; //static const char *filename = "/home/kaetemi/source/minimax/GE_Acc_MikotoBaniere.max";
//static const char *filename = "/home/kaetemi/3dsMax/scenes/test2008.max"; //static const char *filename = "/home/kaetemi/3dsMax/scenes/test2008.max";
//static const char *filename = "/home/kaetemi/3dsMax/scenes/teapot_test_scene.max"; //static const char *filename = "/home/kaetemi/3dsMax/scenes/teapot_test_scene.max";
//static const char *filename = "/home/kaetemi/3dsMax/scenes/testplane.max"; //static const char *filename = "/home/kaetemi/3dsMax/scenes/testplane.max";
//static const char *filename = "/home/kaetemi/3dsMax/scenes/geomobjects.max"; //static const char *filename = "/home/kaetemi/3dsMax/scenes/geomobjects.max";
static const char *filename = "/mnt/tsurugi/ryzom-assets/database/landscape/ligo/desert/max/zonematerial-converted-165_eg.max";
static const char *streamname = "Scene"; static const char *streamname = "Scene";
#define PBMS_GEOM_BUFFERS_POLY_A_VERTEX_CHUNK_ID 0x0100 #define PBMS_GEOM_BUFFERS_POLY_A_VERTEX_CHUNK_ID 0x0100
@ -243,7 +244,7 @@ int main(int argc, char **argv)
nldebug("CLEAN"); nldebug("CLEAN");
//scene.clean(); // cleanup unused file structure, don't clean up if we want direct access to chunks as well //scene.clean(); // cleanup unused file structure, don't clean up if we want direct access to chunks as well
// <- TEST // <- TEST
//scene.toString(std::cout);//## scene.toString(std::cout);//##
std::cout << "\n"; std::cout << "\n";
//classDirectory3.build(PIPELINE::MAX::VersionUnknown); //classDirectory3.build(PIPELINE::MAX::VersionUnknown);
//classDirectory3.disown(); //classDirectory3.disown();
@ -258,17 +259,17 @@ int main(int argc, char **argv)
//node->toString(std::cout); //node->toString(std::cout);
//exportObj("tr_hof_civil01_gilet.obj", node->getReference(1)->getReference(1)); // => CDerivedObject::getBase(node->object()) //exportObj("tr_hof_civil01_gilet.obj", node->getReference(1)->getReference(1)); // => CDerivedObject::getBase(node->object())
INode *node = scene.container()->scene()->rootNode()->find(ucstring("GE_Acc_MikotoBaniere")); nlassert(node); /*INode *node = scene.container()->scene()->rootNode()->find(ucstring("GE_Acc_MikotoBaniere")); nlassert(node);
//INode *node = scene.container()->scene()->rootNode()->find(ucstring("testplane")); nlassert(node); //INode *node = scene.container()->scene()->rootNode()->find(ucstring("testplane")); nlassert(node);
CReferenceMaker *object = node->getReference(1); CReferenceMaker *object = node->getReference(1);
object->toString(std::cout); object->toString(std::cout);
exportObj("ge_acc_mikotobaniere.obj", object); exportObj("ge_acc_mikotobaniere.obj", object);*/
//GE_Acc_MikotoBaniere //GE_Acc_MikotoBaniere
// TEST APP DATA // TEST APP DATA ->
/*
#define MAXSCRIPT_UTILITY_CLASS_ID (NLMISC::CClassId(0x04d64858, 0x16d1751d)) #define MAXSCRIPT_UTILITY_CLASS_ID (NLMISC::CClassId(0x04d64858, 0x16d1751d))
#define UTILITY_CLASS_ID (4128) #define UTILITY_CLASS_ID (4128)
#define NEL3D_APPDATA_ENV_FX (84682543) #define NEL3D_APPDATA_ENV_FX (84682543)
@ -294,8 +295,10 @@ int main(int argc, char **argv)
} }
} }
} }*/
// <- TEST APP DATA
/* /*
scene.clean(); scene.clean();
scene.build(PIPELINE::MAX::VersionUnknown); scene.build(PIPELINE::MAX::VersionUnknown);

@ -85,7 +85,7 @@ bool RunningLinux = true;
//const char *SrcDirectoryRecursive = "w:\\database\\stuff\\fyros\\city\\newpositionville\\"; //const char *SrcDirectoryRecursive = "w:\\database\\stuff\\fyros\\city\\newpositionville\\";
const char *SrcDirectoryRecursiveInit = "w:\\database\\"; const char *SrcDirectoryRecursiveInit = "w:\\database\\";
//const char *SrcDirectoryRecursiveHandle = "w:\\database\\stuff\\generique\\agents\\accessories\\"; //const char *SrcDirectoryRecursiveHandle = "w:\\database\\stuff\\generique\\agents\\accessories\\";
const char *SrcDirectoryRecursiveHandle = "w:\\database\\landscape\\ligo_replace\\"; const char *SrcDirectoryRecursiveHandle = "w:\\database\\landscape\\ligo\\primes_racines\\max\\";
bool UseFallbackTga = false; bool UseFallbackTga = false;
const char *FallbackTga = "w:\\database\\stuff\\lod_actors\\texture_lod\\trame.png"; const char *FallbackTga = "w:\\database\\stuff\\lod_actors\\texture_lod\\trame.png";
@ -811,7 +811,7 @@ void fixChunk(uint16 id, IStorageObject *chunk)
// 52 5f 48 4f 46 5f 63 69 76 69 // 52 5f 48 4f 46 5f 63 69 76 69
// 6c 30 31 5f 74 6f 72 73 6f 5f // 6c 30 31 5f 74 6f 72 73 6f 5f
// 43 31 2e 74 67 61 00 // 43 31 2e 74 67 61 00
bool overrideFF = false; // Patch for some ligo max files bool overrideFF = true; // Patch for some ligo max files
if (overrideFF && asRaw->Value.size() > 4 && asRaw->Value[asRaw->Value.size() - 4] == 0xFF) if (overrideFF && asRaw->Value.size() > 4 && asRaw->Value[asRaw->Value.size() - 4] == 0xFF)
{ {
nlwarning("0xFFFFFFFF"); nlwarning("0xFFFFFFFF");

Loading…
Cancel
Save