By feileechu
on Tue, 03/05/2013 - 16:15
Hi,
i had tested and run the imageTargeted file. I am happy that the teapot is shown when i pointed the camera to the marker.
However, i would like to ask, is it possible to change the 3d object?
Can i change the teapot into my desired object?
What should i do?
Is there any step-to-step guidance for the tutorial? I have no idea at all.
Thanks for your help.
How can i change the 3d object ?
Hi, yes you can change the teapot;
here is an article explainin how to do that step-by-step:
https://developer.vuforia.com/resources/dev-guide/replacing-teapot
How can i change the 3d object ?
Hi,
is unity required in order to change the object?
How can i change the opengl code?
How can i change the 3d object ?
No, Unity is not required; how to change the OpenGL code is explained in that article (https://developer.vuforia.com/resources/dev-guide/replacin
How can i change the 3d object ?
[quote=AlessandroB]
How can i change the 3d object ?
Hi, if you read the tutorial throught the end, it will also show you how to change the OpenGL code so not use the indices
(see glDrawArrays() function at the end of the article)
How can i change the 3d object ?
[quote=AlessandroB]
Hi, if you read the tutorial throught the end, it will also show you how to change the OpenGL code so not use the indices
(see glDrawArrays() function at the end of the article)
[/quote]
Hi Alessandro...
How can i change the 3d object ?
Hi, NPOT textures are supported on some devices, but it's likely the cause of your issue.
However, you could try changing the OpenGL texture initialization code in the initRendering() function:
How can i change the 3d object ?
Hey!..its worked!! Im so happy hehe :D
But my texture isn't rendered correctly ,its little miss posisition
here SS:
How can i change the 3d object ?
If the texture is mis-positioned it, I would assume the texture coordinates are not fully exact.
Doe the model look much different if you open it with a 3D modeler ?
Another reason could be that the texture is just flipped vertically (i.e. it could be that it is upside-down);
How can i change the 3d object ?
Yea thank you its very helpful :D
And for rotatte my object...
you recommend add this code:
How can i change the 3d object ?
Hi, the Z axis is orthogonal to the trackable plane, while the x and y are aligned with the trackable plane;
if you want to make your model stand, you can try rotating it around X or Y, for instance, a 90 degrees rotation around X would be:
How can i change the 3d object ?
[quote=AlessandroB]
Hi, the Z axis is orthogonal to the trackable plane, while the x and y are aligned with the trackable plane;
if you want to make your model stand, you can try rotating it around X or Y, for instance, a 90 degrees rotation around X would be:
How can i change the 3d object ?
Hi, have you tried setting the angle to 90.0f (or other non null value ?)
How can i change the 3d object ?
Yes... it works.
I can rotate my object around X & Y...
Thanks for your advice @AlessandroB.
How can i change the 3d object ?
Is it possible for me to modify both X and Z axis rotation?
I have try the following method:
How can i change the 3d object ?
Hi, you can add as many rotations as you want, this should not cause any crash;
if you get a crash, that might be because of some other reasons; for instance, have you tried adding those rotations to the ImageTargets sample without any other code modifications ? that should work.
How can i change the 3d object ?
Where should I put the code :
for rotating the object 90 degrees in file ImageTarget.cpp?
How can i change the 3d object ?
@mobiro:
you need to adjust the translation part (see the "translatePoseMatri" line of code) until you find a good result
@ snake:
put the rotation code just before the scalePoseMatri line
How can i change the 3d object ?
Okey @AlessandroB....
My Rabbit looks like stand on grass image target now.
Thanks for all of your advice.
Have a nice day.
How can i change the 3d object ?
hey mobiro, glad to hear that.