These are the original Blender files for all 3D models in the WebGL version.
3D artists are welcome to improve these models!
Follow these steps to prepare the 3D models for usage in Freeciv-web:
-
Install and activate the Blender glTF 2.0 exporter https://github.com/KhronosGroup/glTF-Blender-Exporter
-
Export the blender file from Blender: File -> Export -> glTF 2.0 (.glb)
- Don't export normals.
- Export to the .glb file to freeciv-web/src/main/webapp/gltf/
- Filename must match unit name from Freeciv ruleset.
- Rebuild Freeciv-web using freeciv-web/build.sh script.
When creating new additional 3D-models they must also be added to preload.js in Freeciv-web so that they are preloaded correctly.
Be sure to limit the file size and number of verticies, since the result will be rendered in a web browser. Check the file size of the generated .glb file!
Don't export any lights or cameras.
See the citywalls.blend for an example of a 3D model with textures which works in Freeciv-web 3D.
The unit models come from here: http://opengameart.org/content/blender-models-for-freeciv-units