"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Experience on jPCT

Hi,

I've seen some posts related to the use of jPCT, I want to use it just for a basic objects rendering, not a full game, I'm wondering if -in your experience- would be a good choice to make or what suggestions you could give me, I would  like to avoid using the NDK and do everything in Java.

Just another silly question, I'm wondering if in the samples from the SDK 2.8. is there any class in Java equivalent to the SampleUtils in C++. I wanted to use the rotatePoseMatrix function following the tutorial from http://www.jpct.net/wiki/index.php/Integrating_JPCT-AE_with_Vuforia but in java only.

	// Get the trackable:
	const QCAR::TrackableResult* result = state.getTrackableResult(tIdx);
	const QCAR::Trackable& trackable = result->getTrackable();
	QCAR::Matrix44F modelViewMatrix = QCAR::Tool::convertPose2GLMatrix(result->getPose());

    SampleUtils::rotatePoseMatrix(180.0f, 1.0f, 0, 0, &modelViewMatrix.data[0]);
	// Passes the model view matrix to java
	env->SetFloatArrayRegion(modelviewArray, 0, 16, modelViewMatrix.data);
	env->CallVoidMethod(obj, updateMatrixMethod , modelviewArray);

or if you know how can I perform the same task to rotate the modelViewMatrix in java.

 

Thanks for yout help!

 

AlessandroB

Fri, 03/21/2014 - 14:33

Hi, integrating JPCT-ae wih Vuforia 2.8 in Java should be easy. The tutorial you refer to still refers to the old version of Vuforia, using amix of  C++ and Java with JNI. But now they you can use the full Java API of Vuforia, everything should be even simpler.