Posted: Thu Aug 10, 2006 10:39 am
hey
yep would not be that hard, ill try to setup up a parser within the next hours..
yep would not be that hard, ill try to setup up a parser within the next hours..
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
Code: Select all
name size in byte discribtion
-----------------------------------------------
FileIdentifier 4 will be "HMPF" - means highmapfile
X 4 map size in x and y direction
Y 4 "
PointSpace 4 point distance multiplyer "standard 1"
Overallshapemap 3*X*Y Overallmapshape array(255meter steps)
Detailmapshape 3*X*Y Detailmapshape array(1meter steps)
Code: Select all
<?xml version="1.0"?>
<worldspawn>
<setup
mapname="WastelandB3"
shortname="WLB3"
creator="me"
heightmap="map.bmp"
texture="tex.bmp"
origin="20 20 20"
scale="1.0"
/>
<entities>
<STATIC_MESH
type="OCTREE_MESH"
name="house"
origin="20 20 20"
model="../house.md2"
/>
<NONSTATIC_MESH
type="NEWTON_MESH"
name="car"
origin="20 20 20"
model="../car.md2"
/>
</entities>
</worldspawn>
Code: Select all
irr::io::IXMLReader *xml = gm.FS->createXMLReader("scripts/wasteland.xml");
if(!xml)
printf("ERROR\n");
bool worldspawn = false;
while( xml->read() ) {
if ( xml->getNodeType() == irr::io::EXN_ELEMENT ) {
if( !worldspawn ) {
if(wcscmp(xml->getNodeName(),L"worldspawn" )) {
printf("No Worldspawn found..\n");
break;
} else
worldspawn = true;
}
if(!wcscmp(xml->getNodeName(),L"setup" )) { //create...
}
if(!wcscmp(xml->getNodeName(),L"STATIC_MESH" )) {
//create...via
smgr->
getmesh(xml->getAttributeValue(L"model"));
}
if(!wcscmp(xml->getNodeName(),L"NONSTATIC_MESH" )) {
//create...
}
}
}
xml->drop();
Code: Select all
figure { "figure02"
bone { "root"
length { 11.761 }
bone { "bone01"
length { 22.38 }
diameter { 2 }
bone { "bone02"
length { 34.984 }
orientation { (0 0 0.33101 -0.94363) }
bone { "bone04"
length { 38.22 }
orientation { (0 0 0.74260 -0.66974) }
}
}
bone { "bone03"
length { 34.927 }
orientation { (0 0 -0.33841 -0.94100) }
bone { "bone05"
length { 39.103 }
orientation { (0 0 -0.73165 -0.68168) }
}
}
}
}
}
Code: Select all
<SKELETON VERSION="1100" NUMBONES="6">
<BONE ID="0" NAME="root" NUMCHILD="1">
<TRANSLATION>0 11.761000 0</TRANSLATION>
<ROTATION>0.000000 0.000000 0.000000 0.000000</ROTATION>
<LOCALTRANSLATION>0 0 0</LOCALTRANSLATION>
<LOCALROTATION>0 0 0 0</LOCALROTATION>
<PARENTID>-1</PARENTID>
<CHILDID>1</CHILDID>
</BONE>
<BONE ID="1" NAME="bone01" NUMCHILD="2">
<TRANSLATION>0 22.379999 0</TRANSLATION>
<ROTATION>0.000000 0.000000 0.000000 0.000000</ROTATION>
<LOCALTRANSLATION>0 0 0</LOCALTRANSLATION>
<LOCALROTATION>0 0 0 0</LOCALROTATION>
<PARENTID>0</PARENTID>
<CHILDID>2</CHILDID>
<CHILDID>4</CHILDID>
</BONE>
<BONE ID="2" NAME="bone02" NUMCHILD="1">
<TRANSLATION>0 34.984001 0</TRANSLATION>
<ROTATION>0.000000 0.000000 0.331010 -0.943630</ROTATION>
<LOCALTRANSLATION>0 0 0</LOCALTRANSLATION>
<LOCALROTATION>0 0 0 0</LOCALROTATION>
<PARENTID>1</PARENTID>
<CHILDID>3</CHILDID>
</BONE>
<BONE ID="3" NAME="bone04" NUMCHILD="0">
<TRANSLATION>0 38.220001 0</TRANSLATION>
<ROTATION>0.000000 0.000000 0.742600 -0.669740</ROTATION>
<LOCALTRANSLATION>0 0 0</LOCALTRANSLATION>
<LOCALROTATION>0 0 0 0</LOCALROTATION>
<PARENTID>2</PARENTID>
</BONE>
<BONE ID="4" NAME="bone03" NUMCHILD="1">
<TRANSLATION>0 34.926998 0</TRANSLATION>
<ROTATION>0.000000 0.000000 -0.338410 -0.941000</ROTATION>
<LOCALTRANSLATION>0 0 0</LOCALTRANSLATION>
<LOCALROTATION>0 0 0 0</LOCALROTATION>
<PARENTID>1</PARENTID>
<CHILDID>5</CHILDID>
</BONE>
<BONE ID="5" NAME="bone05" NUMCHILD="0">
<TRANSLATION>0 39.103001 0</TRANSLATION>
<ROTATION>0.000000 0.000000 -0.731650 -0.681680</ROTATION>
<LOCALTRANSLATION>0 0 0</LOCALTRANSLATION>
<LOCALROTATION>0 0 0 0</LOCALROTATION>
<PARENTID>4</PARENTID>
</BONE>
</SKELETON>
you would need an editor.editing these maps is pretty hard cause u don't know how it will look until u render it.
You want to help?or what...stodge wrote:Who's the project manager?
Where are the design documents?
Who is in charge of quality assurance?
Who will develop and maintain tests?
Who are the testers?
What platforms?
What toolsets are needed for development?
Where will this be hosted?
What are the hardware and software requirements?
Well technically since this will be a tech demo if there's a feature someone wants that isn't in irrlicht then we can't do it. The design shouldn't include features like that. Of course there's nothing saying we can't create the feature ourselves and hassle Niko and the others to include it in a later versionPhunk wrote:what will you all do when you discover there is a feature missing in irrlicht, that you need for the completion of the project?