model_loader.html 3.1 KB

1234567891011
  1. <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="Asciidoctor 1.5.4"><meta name="keywords" content="documentation, sdk, tool"><title>jMonkeyEngine SDK: Creating a model importer</title><link rel="stylesheet" href="./asciidoctor.css">
  2. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  3. <link rel="stylesheet" href="./coderay-asciidoctor.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css"></head><body class="article toc2 toc-left"><div id="header"><div id="toolbar"><a href="https://github.com/jMonkeyEngine/wiki/edit/master/src/docs/asciidoc/sdk/development/model_loader.adoc"><i class="fa fa-pencil-square" aria-hidden="true"></i></a><a href="https://github.com/jMonkeyEngine/wiki/new/master/src/docs/asciidoc/sdk/development/"><i class="fa fa-plus-square" aria-hidden="true"></i></a><input dir="auto" style="position: relative; vertical-align: top;" spellcheck="false" autocomplete="off" class="searchbox__input aa-input" id="doc-search" name="search" placeholder="Search in the doc" required="required" type="search"></div><h1>jMonkeyEngine SDK: Creating a model importer</h1><div class="details"><span class="author" id="author"></span><br><span id="revnumber">version ,</span> <span id="revdate">2016/03/17 20:48</span></div><div id="toc" class="toc2"><div id="toctitle">Table of Contents</div></div></div><div id="content"><div class="paragraph"><p>You can create custom model importers for the jMonkeyEngine SDK. The SDK supports NBM plugins.</p></div>
  4. <div class="olist arabic"><ol class="arabic"><li><p><a href="http://platform.netbeans.org/tutorials/nbm-filetype.html">Create an NBM plugin</a></p></li><li><p>Add importer jar file (wrap jar file)</p></li><li><p>Add filetype (Template)</p></li><li><p>Change DataObject to extend SpatialAssetDataObject</p></li><li><p>Implement getAssetKey(): if(!assetKey instanceof MyKeyType){assetKey = new MyKeyType(oldKey);} return key;</p></li><li><p>Maybe implement loadAsset method in DataObject (if necessary, most model formats should load normally via the loader)</p></li><li><p>Create AssetManagerConfigurator</p></li></ol></div>
  5. <div class="paragraph"><p>See also:</p></div>
  6. <div class="ulist"><ul><li><p><a href="../../sdk/development/projects_assets.html">Projects and Assets</a></p></li><li><p><a href="http://platform.netbeans.org/tutorials/nbm-filetype.html">http://platform.netbeans.org/tutorials/nbm-filetype.html</a></p></li></ul></div></div><div id="footer"><div id="footer-text">Version <br>Last updated 2018-02-04 12:04:19 +00:00</div></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script><script>docsearch({
  7. apiKey: 'a736b6d93de805e26ec2f49b55013fbd',
  8. indexName: 'jmonkeyengine',
  9. inputSelector: '#doc-search',
  10. debug: false // Set debug to true if you want to inspect the dropdown
  11. });</script></body></html>