Log in or register to post comments

3d model

February 27, 2013 - 9:45am #1

Hi,

 

 Is possible to use our own 3d model engine in vuforia image target? We are using cloud based image target which will recognize and play the video. We want to integrate our own 3d model engine to overlay the 3d model. Can you please guide / provide the right way to do it.

 

 Prakash V

3d model

February 28, 2013 - 5:02am #6

Hi, have you read this tutorial :

http://www.jpct.net/wiki/index.php/Integrating_JPCT-AE_with_Vuforia

if you already did that, it would be better to contact the guys who made that directly, as they might be able to answer your question.

 

3d model

February 28, 2013 - 4:54am #5

Hi,

 

 I have followed the JPCT integration tutorial and i had a problem in camera view. Camera view shown only portion of the screen (1/4 bottom),  not coming full screen camera view. Can you please tell me why it is not displaying the full screen camera view. Also they have given updateCamera method, when this will be called and from where should this be called?

 

public void updateCamera() {
	Matrix m = new Matrix();
	m.setDump(modelViewMat);
        cam.setBack(m);
}

 

Prakash V

3d model

February 27, 2013 - 10:08am #4

OK. So, in general the integration should be possible (we have seen other developers integrating thrid-party Java engines like JPCT-ae, if you search the Forum you can find the relevant threads).

The only main things to be aware of are:

you should try to hook your rendering and initialization code of your engine into these three methods of the Renderer (see for instance ImageTargetsRenderer.java):

public void onSurfaceCreated(GL10 gl, EGLConfig config)
{
    // DO your engine initialization here       
}

public void onSurfaceChanged(GL10 gl, int width, int height)
{
   // Handle surface resize in your engine 
}

public void onDrawFrame(GL10 gl) {   // DO the rendering with your engine   }

 

Also, you will need to pass the information about the Trackables from C++ to Java (for instance the trackable Pose), using the JNI interface; however this is perfectly doable, and quite easy to do (although the JNI code can be a bit ackward to write).

I hope this answers your question.

 

3d model

February 27, 2013 - 9:53am #3

It is java based Open GL framework.

 

3d model

February 27, 2013 - 9:48am #2

Hi, can you be more specific on your engine ? will it be Java-based ? or C++ ?

Log in or register to post comments