It focuses on building levels/maps out of prebuilt zones that you connect together.
A PCZSM editor for more arbitrary level geometry would be nicer, but would be a LOT more work.
The source code is in the Ogitor repository.
And I've made a sample application to show how to load from .ogscene into PCZSM:
MZPSampleApp.zip
Or here:
http://www.mediafire.com/?ym3yjimzj2m
The sample app also includes an .ogscene file and the necessary resources.
On its own, the plugin is useless - you need to predefine some zones. The sample app includes some simple rooms.
To make your own you need to define an XML file (with a .zone extension) similar to this:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<zonedescription mesh="Room3.mesh" portals="2" short="a small room" long="a 3 x 3l room with 2 portals on opposite ends of room." >
<portal width = "2" height="2">
<position x="0.0" y="0.0" z="-3.0"/>
<orientation x="0.0" y="1.0" z="0.0" w = "0.0"/>
</portal>
<portal width = "2" height="2">
<position x="0.0" y="0.0" z="3.0"/>
<orientation x="0.0" y="0.0" z="0.0" w = "1.0"/>
</portal>
</zonedescription>
And also provide the mesh and its associated materials etc. See the sample app for examples.
This plugin might also be useful for a tile-based level. Just use the zone file to define the connection points for your various tiles, and it will be easy to snap them together.
I hope this can be of use to others.
Its pretty basic so far, so any feedback/criticism/suggested features will be appreciated.
Here are a couple of screenshots:
Two tutorials:
Tutorial 1 - Shows how to convert a suitable mesh into a zone
Tutorial 2 - How to assemble some zones into a (very small) game level
