indiesoftby / defold-scene3d

Scene3D is a collection of scripts, materials and tools to help you develop 3D games with the Defold game engine.
https://indiesoftby.github.io/defold-scene3d/
MIT License
132 stars 8 forks source link

TrenchBroom / Blender / Crocotile workflow #9

Open subsoap opened 2 years ago

subsoap commented 2 years ago

https://trenchbroom.github.io/

https://www.blender.org/

https://crocotile3d.com/

We should make guides for these softwares on how to effectively use them to generate assets usable in this project.

HeadClot commented 2 years ago

Hey, Just thought I would chime in on the TrenchBroom part of this issue. There are two ways this could be tackled. Trench Broom can export an .obj file or a .map file. I find that parsing a .map file is better opposed to an .obj file. Here is why:

Trench broom has "game" called Generic which can load various standard image file formats such as .PNGs for example. There is also a Generic.fgd which defines the list of various entities. So if you really wanted to you could make a addon for Defold that creates a custom .fgd based on the Generic.fgd and allows the user to define custom entities, solids, etc. in the Custom.fgd file.

Once the .fgd is made and several entities are defined. You can place entities, solids, etc. in Trenchbroom then import them into Defold via the .map format.

I would encourage the devs behind Scene3D to look at addons such as Qodot and Godot-TBLoader. Just keep in mind they are written in C++ and are made for Godot Engine. However they should be useful as a point of reference.

In closing - Parsing a .map is so much better than a .obj.