You can read and reply to posts and download all mods without registering.
We're an independent and non-profit fan-site. Find out more about us here.
Could you add an option that let's you import the bounding box (create a new Object called BoundingBox perhaps)?
And also something which writes a custom bounding box
I can do that. How about a wireframe cube without faces?
I'm not so sure about this one. From what I've seen in DromEd, the bbox specified in the file is not necessarily the actual bbox. Correct me if I'm wrong, but DromEd seems to generate the bbox based on the maximum absolute value in each dimension. So if your object starts at 0 and stands 1 unit tall, the Z bounds of the bbox will still be -1 and 1.It's still a grey area to me, and I would like to know how it really works. With this stuff cleared up, I could also implement a real offset option which doesn't require cheating.
Maybe voodoo47 has more insight into this than I do.
Why do you want to make it an option?
But what still beats me is the presence of 3 floats for the centre of the model in the header (bytes 48:60). I wonder if there are any vanilla models with a non-zero centre—maybe I should knock together a script to check.
And your egg models ZylonBane also have just zeros in them for the center coordinates.
Intriguing. So the model really is offset from center just by offsetting its local coordinates, and isn't automatically re-centered by the engine.
The bbox should retain it relative position it has, but should move along with the model in case it needs to get centered.
Only "problem" left then is that the edge of the imported bbox (when renamed) doesn't get exported properly(?).
The geometry of objects that have no polygons is now ignored during export (they are not supported by the engine anyway). This is in response to Olfred's observation quoted below.
With the change you made now it isn't possible anymore to have these vertices to make a model "bigger" than it actually is.
two vertices, without an edge
But it is. Try it.
OlfredDo you use Wings at all? The other plug-in could use some equally tüchtige testing =)
I get the bbox, rename it and export