add support for newer ac3d file keywords
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9221 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: b046efbb08e1ace2408e632a9bdababd502bc901 Former-commit-id: ad4e2073be08fb5089365171d0875be8552ef2b3
This commit is contained in:
parent
de7f7efbb3
commit
efa35c4468
3 changed files with 44 additions and 2 deletions
|
@ -328,7 +328,18 @@ osg::Node* ReaderWriterACC::readObject(std::istream& stream, FileData& fileData,
|
||||||
}
|
}
|
||||||
else if (token == "shad")
|
else if (token == "shad")
|
||||||
{
|
{
|
||||||
|
}
|
||||||
|
else if (token == "subdiv")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else if (token == "folded")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else if (token == "hidden")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else if (token == "locked")
|
||||||
|
{
|
||||||
}
|
}
|
||||||
else if (token == "texrep")
|
else if (token == "texrep")
|
||||||
{
|
{
|
||||||
|
|
|
@ -381,6 +381,10 @@ static Tag object_tags [] =
|
||||||
{ "kids" , do_kids },
|
{ "kids" , do_kids },
|
||||||
{ "crease" , do_ignore },
|
{ "crease" , do_ignore },
|
||||||
{ "shader" , do_ignore },
|
{ "shader" , do_ignore },
|
||||||
|
{ "folded" , do_ignore },
|
||||||
|
{ "subdiv" , do_ignore },
|
||||||
|
{ "hidden" , do_ignore },
|
||||||
|
{ "locked" , do_ignore },
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,9 @@
|
||||||
#define REFS "refs"
|
#define REFS "refs"
|
||||||
#define CREASE "crease"
|
#define CREASE "crease"
|
||||||
#define SUBDIV "subdiv"
|
#define SUBDIV "subdiv"
|
||||||
|
#define FOLDED "folded"
|
||||||
|
#define HIDDEN "hidden"
|
||||||
|
#define LOCKED "locked"
|
||||||
|
|
||||||
ob_t::ob_t() :
|
ob_t::ob_t() :
|
||||||
kids(0),
|
kids(0),
|
||||||
|
@ -254,6 +257,9 @@ int doMat(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
||||||
int doRefs(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
int doRefs(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
||||||
int doCrease(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
int doCrease(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
||||||
int doSubdiv(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
int doSubdiv(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
||||||
|
int doFolded(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
||||||
|
int doHidden(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
||||||
|
int doLocked(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials);
|
||||||
|
|
||||||
void computeSaveAC3D(const std::string & OutputFilename, std::list<ob_t> &objects, const std::vector<mat_t> &materials);
|
void computeSaveAC3D(const std::string & OutputFilename, std::list<ob_t> &objects, const std::vector<mat_t> &materials);
|
||||||
void computeSaveOBJ(const std::string & OutputFilename, std::list<ob_t> &objects, const std::vector<mat_t> &materials);
|
void computeSaveOBJ(const std::string & OutputFilename, std::list<ob_t> &objects, const std::vector<mat_t> &materials);
|
||||||
|
@ -277,7 +283,10 @@ verbaction_t verbTab[] =
|
||||||
{ MAT, doMat },
|
{ MAT, doMat },
|
||||||
{ REFS, doRefs },
|
{ REFS, doRefs },
|
||||||
{ CREASE, doCrease },
|
{ CREASE, doCrease },
|
||||||
{ SUBDIV, doSubdiv, },
|
{ SUBDIV, doSubdiv },
|
||||||
|
{ FOLDED, doFolded },
|
||||||
|
{ HIDDEN, doHidden },
|
||||||
|
{ LOCKED, doLocked },
|
||||||
{ "END", NULL } };
|
{ "END", NULL } };
|
||||||
|
|
||||||
/** Copies a single surface from the "vertexarray" attributes of srcob to the ones of destob.
|
/** Copies a single surface from the "vertexarray" attributes of srcob to the ones of destob.
|
||||||
|
@ -1103,6 +1112,24 @@ int doSubdiv(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int doFolded(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials)
|
||||||
|
{
|
||||||
|
dataFound = false;
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
|
int doHidden(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials)
|
||||||
|
{
|
||||||
|
dataFound = false;
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
|
int doLocked(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials)
|
||||||
|
{
|
||||||
|
dataFound = false;
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
int doTexture(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials)
|
int doTexture(char *Line, std::list<ob_t> &objects, std::vector<mat_t> &materials)
|
||||||
{
|
{
|
||||||
char name[256] = { 0 };
|
char name[256] = { 0 };
|
||||||
|
|
Loading…
Reference in a new issue