Log in or register to post comments

Using my own 3D models in sampleApps

March 29, 2014 - 8:04am #1

Hi, everyone.

Unfortunatley, I'm new at AR programming, and my problem can be simple and qiote stupid, sorry.

I try to write my own AR app with Vuforia SDK, based on FrameMarkers sample app. The problem is, that i dont know how to change sample 3d models to my own. In FrameMarkers app when camera detect marker with id "0" we just see a 3D "Q" letter. As I can see application uses two things: a texture file in assets/FrameMarkers, and a QObject.java. As I understand right, I need to change this files to my own textures and Java class to my 3D model.

How can I do that, if, for example I have *.max file? Or what is a common way to generate classes like QObject.java and textures.png files? From what formats?

Please help, because I cant find existing solution on forum.

Using my own 3D models in sampleApps

March 31, 2014 - 7:06am #6

You're welcome

Using my own 3D models in sampleApps

March 31, 2014 - 5:48am #5

Thanks, I will try it!

Using my own 3D models in sampleApps

March 31, 2014 - 5:36am #4

Yes, the tutorial that I was mentioning:

https://developer.vuforia.com/forum/faq/android-how-do-i-replace-teapot

is the best one to read; it explains that you can export an OBJ and convert it to an OpenGL file. Only thing to keep in mind, is that this works with the C++ version of Vuforia, not with Java. For Java, you will need to add some extra steps to convert the openGL .h file to some sort of text file and then read and parse that.

Alternatively, you could search the Internet for some FBX or OBJ parsing libraries that work with Java and OpenGL ES, and integrate them into your app.

 

Using my own 3D models in sampleApps

March 31, 2014 - 5:33am #3

Thank you much for the reply. I understand that i have to use custom 3d renderer, but can you give me a hint, where I can read about it? If I have .OBJ, .FBX, .3DS, COLLADA files how can I exactly use them? May be some tutorials exists.

Thanks.

Using my own 3D models in sampleApps

March 30, 2014 - 12:26pm #2

How can I do that, if, for example I have *.max file? Or what is a common way to generate classes like QObject.java and textures.png files? From what formats?

I am not aware of any "general" process; the Q, C, A, R letters (3D models) where created ad hoc for the samples.

But you could try the approach explained in this article:

https://developer.vuforia.com/forum/faq/android-how-do-i-replace-teapot

Note: that article still refers to the C++ version of the Vuforia samples; however, with a little extra effort you could easily adapt it to Java.

 

See also the general guidelines on 3D models formats in Vuforia:

https://developer.vuforia.com/forum/faq/technical-what-3d-model-formats-does-vuforia-support

 

Log in or register to post comments