model_loader.adoc 996 B

123456789101112131415161718192021222324
  1. = jMonkeyEngine SDK: Creating a model importer
  2. :author:
  3. :revnumber:
  4. :revdate: 2016/03/17 20:48
  5. :keywords: documentation, sdk, tool
  6. :relfileprefix: ../../
  7. :imagesdir: ../..
  8. ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  9. You can create custom model importers for the jMonkeyEngine SDK. The SDK supports NBM plugins.
  10. . link:http://platform.netbeans.org/tutorials/nbm-filetype.html[Create an NBM plugin]
  11. . Add importer jar file (wrap jar file)
  12. . Add filetype (Template)
  13. . Change DataObject to extend SpatialAssetDataObject
  14. . Implement getAssetKey(): if(!assetKey instanceof MyKeyType){assetKey = new MyKeyType(oldKey);} return key;
  15. . Maybe implement loadAsset method in DataObject (if necessary, most model formats should load normally via the loader)
  16. . Create AssetManagerConfigurator
  17. See also:
  18. * <<sdk/development/projects_assets#,Projects and Assets>>
  19. * link:http://platform.netbeans.org/tutorials/nbm-filetype.html[http://platform.netbeans.org/tutorials/nbm-filetype.html]