Log in or register to post comments

How to add 3d object instead of teapot object

December 28, 2010 - 8:51pm #1

I have already created new 3d object with blender but I don't know how can I add the new 3d object instead of teapot. please help me I am beginner. I don't have knowledge about openGl ES

what type of file that I export from the blender which can use:confused:

please give me a suggestion

Thank you

How to add 3d object instead of teapot object

October 29, 2013 - 7:38am #14

You should check out the BlenderVuforiaExport script available at 

https://github.com/StickyBeat/BlenderVuforiaExport

(developed by a coworker of mine)

How to add 3d object instead of teapot object

April 10, 2013 - 10:37pm #13

DavidBeard wrote:

There are instructions in this thread - https://ar.qualcomm.at/content/replace-3d-model-different-3d-model

Be sure the add the banana's header file to your project.

How to add 3d object instead of teapot object

July 31, 2012 - 10:15am #12

There are instructions in this thread - https://ar.qualcomm.at/content/replace-3d-model-different-3d-model

Be sure the add the banana's header file to your project.

How to add 3d object instead of teapot object

July 31, 2012 - 8:44am #11

hey Jesse, can you help with this...how did u get that banana thingy loaded?

Re: How to add 3d object instead of teapot object

March 2, 2012 - 12:22pm #10

We don't make any official recommendations for bringing your 3D content in. For the native samples, we hook things up to OpenGL and the rest is up to you. I do suggest looking into Unity and our Unity extension as one simple option for working with 3D content.

- Kim

Re: How to add 3d object instead of teapot object

March 2, 2012 - 2:13am #9

I know this thread is a bit old but still think this is the best place.
@ksiva you say that qualcomm don't officially recommend using this script.
So what do you recommend for getting my 3d models rendered with openGL? What's the best way?

Re: How to add 3d object instead of teapot object

February 21, 2012 - 9:15pm #8

i have similar kind of problem...when i add a .h file without having any one of these attributes-vertces,normals and texcoordinates...the app hangs.
is it possible to add a 3d model .h file mising one of these attributes?
please help me out.......:(:(

Re: How to add 3d object instead of teapot object

December 9, 2011 - 12:07pm #7

Try setting the kObjectScale in ImageTargets.cpp to something larger.

- Kim

Re: How to add 3d object instead of teapot object

December 9, 2011 - 9:06am #6

Hi,Ksiva. I followed Heiko Behrens's obj2opengl solution of banana, and I got the banana.But the size of banana is so small that I can hardly see it. So, do I need to modify something in 'banana.h'or 'ImageTargets.cpp'?:)
Thanks in advance~~

ksiva wrote:

We don't officially recommend any method for this, but several users in the forum have had luck with this perl script:

http://heikobehrens.net/2009/08/27/obj2opengl/

You can save your model as a .obj file and run it through that script. It generates a header file that is similar to Teapots.h, except that it does not include an index array. That means you will need to use the glDrawArrays function instead of glDrawElements:

glDrawArrays(GL_TRIANGLES, 0, NUM_TEAPOT_OBJECT_VERTEX);

instead of

glDrawElements(GL_TRIANGLES, NUM_TEAPOT_OBJECT_INDEX, GL_UNSIGNED_SHORT, (const GLvoid*) &teapotIndices[0]);

- Kim

Re: How to add 3d object instead of teapot object

January 20, 2011 - 1:00am #5

Also see my post on:

http://ar.qualcomm.at/node/2000283

Re: How to add 3d object instead of teapot object

January 10, 2011 - 2:35am #4

I need to create a chain as virtual object , can u help me how can i draw using opengl, so that it will help me.

Re: How to add 3d object instead of teapot object

January 3, 2011 - 1:05am #3

Thank you :)

Re: How to add 3d object instead of teapot object

December 29, 2010 - 6:54am #2

We don't officially recommend any method for this, but several users in the forum have had luck with this perl script:

http://heikobehrens.net/2009/08/27/obj2opengl/

You can save your model as a .obj file and run it through that script. It generates a header file that is similar to Teapots.h, except that it does not include an index array. That means you will need to use the glDrawArrays function instead of glDrawElements:

glDrawArrays(GL_TRIANGLES, 0, NUM_TEAPOT_OBJECT_VERTEX);

instead of

glDrawElements(GL_TRIANGLES, NUM_TEAPOT_OBJECT_INDEX, GL_UNSIGNED_SHORT, (const GLvoid*) &teapotIndices[0]);

- Kim

Log in or register to post comments