Posted by: ajclarkson on: April 23, 2010
Thanks to one of the features in JME, the obj to jme convertor, it is easy to provide a simple way for the application developer to load in custom models and content to associate to a marker.
If you want to make use of this in your ARMonkeyKit applications, take a look at the new example in the latest revision ARMaggie. This places a model of Maggie Simpson onto a marker. You can probably see how this works from the code but here is a brief explanation:
Making use of the Object Loader static class all you need to do is call the loadObjectFromFile method, providing a name to identify the model, and the location of the .obj file.
It is important that if you have a material file for the model, this is in the same directory as the .obj file.
This will then return a Node, which you can treat the same as any other content from the previous examples.
May 18, 2010 at 7:37 am
How to import an animation script from 3DMax or blender, so that may be engaged rather than static objects
May 19, 2010 at 3:27 pm
I haven’t had a chance to look into this yet, I have managed to get one of the JMonkeyEngine animations running, but all of the scripting for that is internal to the JMonkeyEngine. At present I am only focusing on static content to meet the needs of this research project.
Thanks for your interest.