Research Log of Web Science Students

Computer Science is not simply programming

Goodbye Cubes. ;)

leave a comment »

Finally, I was able to integrate an OBJ model onto the NyARToolkit. What I did was, I used the instructions given by Dalton Filho on Model Interaction with Java 3d to be able to load the model. Then I added the Transform3d snippet from the AR codes:

Transform3D camera_3d = ar_param.getCameraTransform();
view.setCompatibilityModeEnable(true);
view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION);
view.setLeftProjection(camera_3d);


Then it worked. 🙂

Some of the OBJ models do not have colors or textures on them initially. The coloring and texturing of the models will be done using Java3D because Java3d has better output compared to the .mtl(Material file).

*Screenshots of the game and models are to be followed shortly.

The only thing that’s left for me to do on the Augmented Reality side is the changing or hiding of models (There are 2 theories that I’m going to use for hiding – Using the Switch class or using the method setAppearance(null)) and optimizing the output frames on the game.

Mouth OBJ Model with Color and Texture

Advertisements

Written by rururu

January 7, 2010 at 4:28 am

Posted in Augmented Reality

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: