ARMonkeyKit

Easy Content Loading added to ARMonkeyKit

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.

Advertisement

2 Responses to "Easy Content Loading added to ARMonkeyKit"

How to import an animation script from 3DMax or blender, so that may be engaged rather than static objects

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.