Browse Source

Added blender2ogre and mesh pipeline instructions

pitch-detection
Macoy Madson 2 months ago
parent
commit
e1f55909c6
4 changed files with 26 additions and 3 deletions
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      Dependencies/blender2ogre
  3. +22
    -3
      ReadMe.org
  4. BIN
      test/data/Models/Sphere.mesh

+ 3
- 0
.gitmodules View File

@ -10,3 +10,6 @@
[submodule "Dependencies/tracy"]
path = Dependencies/tracy
url = https://github.com/wolfpld/tracy
[submodule "Dependencies/blender2ogre"]
path = Dependencies/blender2ogre
url = https://github.com/OGRECave/blender2ogre

+ 1
- 0
Dependencies/blender2ogre

@ -0,0 +1 @@
Subproject commit fd15a2d46be120354ffaee98f978c40de81a6c9d

+ 22
- 3
ReadMe.org View File

@ -24,9 +24,28 @@ Build:
* Asset pipeline
This is a work in progress.
** Blender setup
- Install [[https://www.blender.org/][Blender]]. I can confirm Blender 2.91 works.
- Copy ~blender2ogre~ to Blender plugins:
#+BEGIN_SRC sh
cp -r Dependencies/blender2ogre/io_ogre/ ~/.config/blender/2.91/
#+END_SRC
- Open Blender, then open Preferences (Edit->Preferences), and click Add-ons
- Search for "Ogre" and check the box to enable the OGRE Exporter
- Build Ogre, if you haven't already (run ~BuildDependencies_Debug.sh~)
- Set ~OGRETOOLS_XML_CONVERTER~ to where you built OgreMeshTool. You'll need to browse to ~gamelib/Dependencies/ogre-next/build/Debug/bin/OgreMeshTool_d~
You are now ready to export. Open your model or create one, then do ~File -> Export -> Ogre3D~. See the following section for settings. /Note:/ I will be making command-line driven auto-exporting to reduce these manual steps.
** OGRE Export Settings
- Don't *export materials*. These are v1 materials as far as I know, which don't work with Ogre 2
- Don't *export scene*. I don't use these files
- Ensure *mesh export version* is set to ~v2~
** Converting ~.mesh.xml~ to ~.mesh~
You shouldn't need to do this step if you set ~OGRETOOLS_XML_CONVERTER~, but in case blender2ogre didn't recognize it, here's how I worked around it:
For me:
#+BEGIN_SRC sh
cd ~/Development/code/repositories/gamelib/Dependencies/ogre-next/build/Debug/bin
./OgreMeshTool_d -e -O puqs ~/Development/code/repositories/gamelib/test/data/Models/Suzanne.mesh.xml
cd Dependencies/ogre-next/build/Debug/bin
./OgreMeshTool_d -e -O puqs ../../../../../test/data/Models/Suzanne.mesh.xml
#+END_SRC
Run this after you've made an attempted export from the Blender OGRE plugin.

BIN
test/data/Models/Sphere.mesh View File


Loading…
Cancel
Save