what do you mean with per poly collisions?
since 3dgs doesn't let me access the level geometry (yet) and i don't want to parse wmp, currently my plugin handles level geometry like that:
Code:
ne_treecollisionbeginbuild();
ne_treecollisionaddmodelgeometry("playground.mdl", nullvector, nullvector, vector(1, 1, 1)); // position, rotation, scale
// add as many models as you want
ne_treecollisionendbuild(1, "playground.bin");
you can only add models to the static collision tree but since wmp and hmp can be converted to mdl with med, this method is quite flexible. you can add everything which is static in your level (level geometry, terrains and static models). this should work nicely for your mdl only levels!
the parameter "1" in the last line means that the collision tree will be optimized (sophisticated polygon reduction for faster collision detection). since this can take a while for complex geometry (>50000 polys) you can serialize the optimized geometry to a file.
to use the serialized geometry next time you simply have to use this line instead of the snippet above:
Code:
ne_createtreecollisionfromserialization("playground.bin");