"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

different 3D model not shown

Ok guys i went through a lot of ontopic posts,but none fix me,I'm working on the ImageTarget sample project

i replaced the image target,was trying to replace the 3D model with some free collected 3D model

i did choose the famous banana.h, and its texture,the texture loaded easily

const char* textureFilenames[] = {
        "banana.png"
//        "TextureTeapotBrass.png",
};

I did change the cordinates of model inside setup3dObjects method,with banana's.

    for (int i=0; i < [textures count]; i++)
    {
        Object3D *obj3D = [[Object3D alloc] init];
        
        obj3D.numVertices = bananaNumVerts;
        obj3D.vertices = bananaVerts;
        obj3D.normals = bananaNormals;
        obj3D.texCoords = bananaTexCoords;
        
//        obj3D.numIndices = NUM_TEAPOT_OBJECT_INDEX;
//        obj3D.indices = teapotIndices;

        
        obj3D.texture = [textures objectAtIndex:i];
        NSLog(@"obj width:%d",obj3D.texture.width);
        [objects3D addObject:obj3D];
        [obj3D release];
    }

The dataset loaded successfully,the target was identifyed and also the frame rendered, i printed the obj3D's(the rendering 3D model) properties  inside renderFrameQCAR,it's printing.

The problem is,there's no banana is on screen...! i think i'm missing something silly, anyone point me please, i'm going mad

@ ullash.podder:

one thing you may want to check is the scale factor applied to your mesh; sometimes a model does not show up just because it is too small compared to the scale of your image target;

ullash.podder

Wed, 01/23/2013 - 12:12

Hi P.Uthaman i got some responses with your suggestion, they texture appears but structure gone,i'm gonna fix this tell me o

ullash.podder

Thu, 02/07/2013 - 05:12

hi AlessandroB

sorry as it was not working i switched to different project lately,i had to come back to this

the banana.h file got

unsigned int bananaNumVerts, float bananaVerts [ ], float bananaNormals [ ], float bananaTexCoords [ ]

ullash.podder

Thu, 02/07/2013 - 10:45

Hi i tried it this doesn't show the model,doesn't error as well,and the renderFrameQCAR method prints this log ,  NSLog(@"text%d",obj3D.texture.width);

so its getting right texture. do i have problems with cordinates?

ullash.podder

Thu, 02/07/2013 - 11:49

i was very frustrated,i don't know how to thank you... it worked...u kinda saved me man...! thanks a lotttt

I am finding difficulty in java code of the same can you please help me out.i cant see the banana model .And not getting how to change kobjectscale.