By tainguyen90
on Mon, 01/26/2015 - 07:00
Hi All,
I using sample Image Targets.Now, i'm want model 3D in sample automatic rotate.
How to automatic rotate model 3D ?
Can you help me.
Thanks all
Hi All,
I using sample Image Targets.Now, i'm want model 3D in sample automatic rotate.
How to automatic rotate model 3D ?
Can you help me.
Thanks all
How to automatic rotate model 3D ?
Hi, what do you mean by "automatic rotate" ? do you mean rotating with elapsed time ?
How to automatic rotate model 3D ?
sorry for my bad english!
I mean when i move my camera to target image, my application will show the 3D model and that will rotato automatic.
How can i do that?
Thanks for your help! :)
How to automatic rotate model 3D ?
Hi, basically you need to add a rotation part to your modelview matrix, which takes a rotation angle based on some animation time;
the animation time is updated every frame and it is reset to zero when there are no targets detected or when a different target is detected;
How to automatic rotate model 3D ?
HI, In my project haven't derectory sms and file time.h
How to automatic rotate model 3D ?
<sys/time.h> should be included with your NDK, you don't need to have it in your project...
Just try to compile it (as i did) and it should work.
How to automatic rotate model 3D ?
Hi, I want my model 3D automatic rotate as this video http://www.youtube.com/watch?feature=player_embedded&v=l65DfJvMJ_E
Here file my Imagetarget.cpp :
How to automatic rotate model 3D ?
Hi,
the file that you posted is not ImageTargets.cpp, it is ImageTargetsSplashScreen.java
How to automatic rotate model 3D ?
Hi. Sorry I added wrong file
Here, My file Imagetaget.cpp :
How to automatic rotate model 3D ?
Ok, not sure if I posted it in my previous message, but you alos need to add this code (right after the line const QCAR::Trackable& trackable = result->getTrackable() ):
How to automatic rotate model 3D ?
Hi, I added your code into file my Imagetarget.cpp. But, model 3D no automatic rotate .
Here, file my Imagetarget.cpp : http://www.mediafire.com/view/?bh33vx44ldikoec
How to automatic rotate model 3D ?
Hi, in your latest code (in the link) I cannot see any more this code (after float currentRotationAngle = totalRotationAngle ..... ):
How to automatic rotate model 3D ?
Hi, my Model 3D automatic rotated. But , i want my Model 3D continue repeat
How to automatic rotate model 3D ?
Ok, for a never-ending (repeat) rotation, you can just replace this line:
with this line:
How to automatic rotate model 3D ?
Thanks AlessandroB
How to automatic rotate model 3D ?
You're welcome