By werther
on Fri, 05/23/2014 - 20:28
Hi guys!
I ve browsed the forum but havent found any satisfying solution on how to replace 3D model with another 3D model in ImageTargets project. A lot of you managed to do this somehow, so could you pls tell me (or show a sample) which exact steps are needed to do it ?
Thanks a lot.
Replace 3D model with different 3D model
i build it with Java native, and until now i still dont know how to load my 3D Object to my marker....
Replace 3D model with different 3D model
Hello,
Have you followed David's instructions below? Do you have a 3D model converted to a .h file?
Thank you,
-Peter
Replace 3D model with different 3D model
i've read and still don't know,, can you tell me step by step how to load 3D object from zero until success? help me please, i wanna learn more about it... :)
Replace 3D model with different 3D model
I have been stuck on the same thing for last 1 an
Replace 3D model with different 3D model
From my point of view, I think your .obj file is not compatible with the script, or maybe there is an
Replace 3D model with different 3D model
It appears that the header file is corrupted. I notice that there is a reference to the MTL file, and the format is incorrect. Try Franck's advice, to make sure that you are exporting your model correctly. And uncomment line 294.
Replace 3D model with different 3D model
I'm not sure but it definitely comes from your obj file which come from DOS while the obj2opengl.pl script is intended to be used in unix. More specifically it comes from the line breaking and the presence of the "^M" hidden caracter.
Replace 3D model with different 3D model
Hey, thanks Frano and DavidBeard.
I exported the 3d model as explained i.e. with the vertices and normals only. But I get the same .h file. Except that I dont get any error on line 294 in obj2openpl file.
Replace 3D model with different 3D model
Do you have another 3D environment, or a model conversion utility, that you can try with? - i.e. to generate the obj version from software other than 3DS Max.
Replace 3D model with different 3D model
Hi Its Done...:)
My 3d max guy wasn't converting the mesh into triangle. Once it was done it worked !!
Thanks guys..:)
Replace 3D model with different 3D model
Forgot to mention the function name in ImageTarget.cpp:
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_getCallFromJava.
Replace 3D model with different 3D model
how are u guys getting your own model ?
Replace 3D model with different 3D model
I've been looking for a solution to change this 3D object for whole day, and i've read every comment on this page but still i have nothing. I've got banana object and banana.h from http://heikobehrens.net/2009/08/27/obj2opengl/
Replace 3D model with different 3D model
Hello,
Try setting the kObjectScale in ImageTargets.cpp to something larger.
Thank you,
-Peter
Replace 3D model with different 3D model
werther mentioned about that but i thought that was j
Replace 3D model with different 3D model
Just to add some important spots..
Download the obj2opengl file. Unzip this and use the files as follows.
Replace 3D model with different 3D model
for anyone who see a weird banana,
you need to change
Replace 3D model with different 3D model
Hello,you seem not to mention that we should add "banana.h" into ImaginationTargets.cpp
Replace 3D model with different 3D model
Hello,you seem not to mention that we should add "banana.h" into ImaginationTargets.cpp
Replace 3D model with different 3D model
Hi there, i have a problem here when i want to convert .obj to .h with obj2opengl.pl
Replace 3D model with different 3D model
Hi hoaxman,
if you only have vertices (and no tex coords), it is expected that you won't be able to see your mesh;
if you want to see your mesh anyway, you'll need to to modify the shader code in CubeShader.h (I'm referring to ImageTargets sample), replacing the line: