"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 Teacup model by another model

I have a door 3D model and I want to replace Teacup model with my model.  I used Blender to export door.obj to door.h. And replace code in ImageTargetsEAGLView.h file:

glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*) &teacupVertices[0]);

glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*) &teacupNormals[0]);

glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*) &teacupTexCoords[0]);`

to

glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)&doorBoddy_Cube_001Vertices);
glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)&doorBoddy_Cube_001Normals);
glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)&doorBoddy_Cube_001TexCoords);

glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)&planeVertices);
glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)&planeNormals);
glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)&planeTexCoords);

and

glDrawElements(GL_TRIANGLES, NUM_OBJECT_INDEX, GL_UNSIGNED_SHORT, (const GLvoid*) &teacupIndices[0]);

to

glDrawArrays(GL_TRIANGLES, 0, NUM_PLANE_OBJECT_VERTEX); 
glDrawArrays(GL_TRIANGLES, 0, NUM_DOORBODDY_CUBE_001_OBJECT_VERTEX);

But when I scan image target, child objects in the door object are stacked, and they do not erect but lies parallel to the image target.

My Door.h is attached follow: https://drive.google.com/file/d/0B7hGN300dOTAVWxqNVg0YnBXYXc/view?usp=sharing