Like Shapes, 3D models are also made up of Meshes, but models are more complex than Shapes. While Shapes are built into jME3, you typically create models in external 3D Mesh Editors.
To use 3D models in a jME3 application:
assets
directory.Spatial model = assetManager.loadModel( "Models/MonkeyHead/MonkeyHead.mesh.xml" );
To create 3D models and scenes, you need a 3D Mesh Editor such as Blender, with an OgreXML Exporter plugin.
Tip: Consider creating UV textures for more complex models, it looks more professional.
3D mesh editors are third-party products, so please consult their documentation for instructions how to use them. Here is an example workflow for Blender users:
To export your models as Ogre XML meshes with materials:
something.mesh.xml
goes with something.material
, plus (optionally) something.skeleton.xml
, and some JPG files.assets/Models/
directory. E.g. assets/Models/something/
.You can now use the jMonkeyPlatform to load and view models. You can create scenes from them and write cde that loads them into your application.