Log in or register to post comments

Center model on Marker

August 10, 2011 - 9:56am #1

Hi Ive created my own models in Blender exported it as an .obj ,ran the script to get the header file. Now my models have only vertices and faces so I have commented the below lines to get it to run

// glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, normals);
// glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE,
// 0, texCoords);

// glEnableVertexAttribArray(normalHandle);
// glEnableVertexAttribArray(textureCoordHandle);

My problem is he models appear small and below the markers. How do I center the 2d/3d models on the markers and fit the size of the markers.

Also how do I unwrap and bake as a .png?
How do my models not habe normals and tecture coordinates?


Re: Center model on Marker

August 17, 2011 - 8:22am #2


- Kim

Log in or register to post comments