"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

Replace 3D model with different 3D model

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.

tuna_kren

Wed, 08/01/2012 - 05:14

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... :)

DavidBeard

Tue, 08/14/2012 - 15:16

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.

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.

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.

DavidBeard

Thu, 08/16/2012 - 01:58

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.

for anyone who see a weird banana, 

you need to change

private void loadTextures()    {

        mTextures.add(Texture.loadTextureFromApk("banana.jpg",getAssets()));

AlessandroB

Wed, 10/17/2012 - 15:06

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: