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?

Thanks
Akshay

Re: Center model on Marker

August 17, 2011 - 8:22am #2

http://wiki.blender.org/index.php/Doc:Manual/Textures/UV/Unwrapping_a_Mesh
http://wiki.blender.org/index.php/Doc:Manual/Render/Bake

- Kim

Log in or register to post comments