Joseph Hocking writes:
A very useful but unglamorous tool, a "dropper" is a simple level editor that lets you position objects in 3D space and then writes all the positions/rotations/etc. to an easily parsed text file. Your game can then read this file to put everything in the same place. It exports any custom properties that you set, plus you can choose either JSON or XML for the output format.
7 Comments
Very interesting. Is there an example of what this tool does?
The included .blend is an example to export, and the screenshot shows what the XML and JSON output looks like.
Thanks a lot Joseph. Do you have any website that can display the JSON or XML generated by your tool? Thank you very much.
Not sure what you mean by "display". If you just mean you want to see an example of the exported JSON, the screenshot shows that, or just download this script and export the sample scene.
If you mean a website that actually loads the data and processes it somehow, well the point of this tool is that it's generic data without a set purpose. You can do whatever you want with this data; I load it in my game and place objects around the scene.
Do you know what else is needed so that a web browser is able to display the generated file? Thanks! :)
Display as a drawing, as a geometry ;)
I think you misunderstood what this data is. It's not the geometry, like vertices and polygons. There are already plenty of file formats for that; if you want to display 3D models in your website, I'd export to gltf or fbx and load them with three.js
This data is just the overall position, rotation, and scale of objects. And whatever custom attributes you add, so that you can tell your game stuff like "this object has 20 health" or "this object is a spawn point."