- February 7, 2014 at 7:10 am #31613
I am trying to draw a 3d model when my application detects an image that is scanned with the camera. I cannot figure out how to draw the 3d model on top of the camera view.February 10, 2014 at 4:40 am #38407
Yes. I want the 3d model to be drawn only when a certain image is detected. I have the image detection part working. But I cant figure out how to draw the 3d model on the image.February 10, 2014 at 5:11 am #38408
because the Ndk is hardware specific , you cannot access it throught jni easily , so you need to use java ,there is a lot of sample in the Android sdk first of all and here
there is thousand of samples out there and approach.
davidFebruary 10, 2014 at 5:40 am #38409
I have the image detection part working. It detects the image i train. Now i want to start drawing 3d models on that image using the powervr sdk. the problem is that the powervr sdk uses nativeActivity approach and will always be initialised when the applicaiton starts and not when my image is detected.February 10, 2014 at 7:00 am #38410
sure the sdk provide gles samples ,you can develop an observer and bind it using JNI to inform your native part or java part , the ShellOSImpl part need to be a bit customized but i am sure it will be not a prob for you.
The Jni is the not fun part but there is a lot of samples on the web or book about ndk and java intercommunicationFebruary 10, 2014 at 7:36 am #38411
I cannot seem to find any ShellOSImpl.cpp i can only find the PVRShellImpl.h in the shell directoryFebruary 10, 2014 at 7:48 am #38412
and most important
PowerVR/GraphicsSDK/SDK_3.2/Shell/Documentation/html/index.htmlFebruary 10, 2014 at 9:26 am #38413
is there any specific function i can call from my own native class to start the rendering of the 3d model with powervr?February 10, 2014 at 10:02 am #38414
i would recommend to read the shell documentation and the lifecycle if the application about the renderingFebruary 11, 2014 at 7:14 am #38415
Can you tell me where the android_main() function is present. android_app_glue will be calling the android_main() to start running the native code. I cannot find any implementation of android_main()