Log in or register to post comments

Using a java engine rendering?

November 16, 2010 - 2:24am #1

Hello.

I'm going to use jMonkey Engine to render OpenGL objects.

Is it very difficult?

Do you have an example about how to integrate QCAR-SDK with a java rendering engine?

Thanks.

Re: Using a java engine rendering?

November 25, 2010 - 2:36am #3

I'm very very new with AR Qualcomm SDK. I've been looking for a rendering engine to use with AR SDK for a month but I didn't find one to use with.

Please, can you say me one to use with?

It would be a pity I could not finish the application for not knowing which rendering engine can be use.

Thank you very much.

Re: Using a java engine rendering?

November 16, 2010 - 8:31am #2

We do not currently have a guide to integrating QCAR with rendering engines, but it should be doable. If you are using a Java rendering engine, keep in mind that the QCAR SDK exposes its tracking data in native only. You will need to pass the data (visible targets, projection and pose matrices, etc.) from native to Java. For this you use the JNI (Java Native Interface).

Here is a thread with some sample code for calling back to Java with the name of the currently visible trackable:

http://ar.qualcomm.at/node/2000032

Another thing to consider is that QCAR needs to create the OpenGL context with specific parameters, depending on the device. You'll need to make sure that your rendering engine allows an outside source to set up the GL context, or pass the appropriate settings to the engine yourself.

- Kim

Log in or register to post comments