Log in or register to post comments

Is there a method to make a 3D object easily?

October 11, 2010 - 9:56am #7

Hi there.
This SDK is fucking awesome!! wow!!
It's easy to make my AR application on the mobile.
But the problem is that i'm a new about OPENGL. That's why I ask this question.
ARTOOLKIT is possible to use some 3D file format. It just import those 3D objects. That's done.
Can you tell me some tips to make a 3D object easily?
Thanks for reading my question. ;)

October 11, 2010 - 11:25am #6

The SDK does not provide an importer/renderer for 3D model formats. The sample programs use a simple header format that stores static geometry in four lists: vertices, normals, texture coordinates, and indices. See the Teapot.h file for an example. Also, see the ImageTargets.cpp file for an example of how to feed this data to OpenGL and render the result.

The documentation suggests the RightHemisphere DeepExploration tool for converting 3D geometry to a C++ header file. You can also find a number of C++ importers for various file formats (.obj, collada, etc.) Anything that works with OpenGL ES and that can be built for Android should work with the SDK.

- Kim

Re: Is there a method to make a 3D object easily?

October 20, 2010 - 9:32am #5

Hello everybody,

I have downloaded the RightHemisphere DeepExploration(Free Trial version), but I don't know how to convert 3D geometry into a C++ header file.

I tried to use the "save as" function to convert .skp 3D file into another file type, but I can't find the ".h" file type to save. Could someone tell me how to convert 3D into a C++ header file by using DeepExploration tool? Or recommend me some useful tools, which can convert 3D into a header file easily.

Thanks for your help!!:)

Re: Is there a method to make a 3D object easily?

October 20, 2010 - 5:24pm #4

Try saving your file as either a DirectX Model (.x) or as OpenGL CPP Code (.cpp). In either case, you will need to manually extract the vertex, normal, texture coordinate, and index lists from this file. Place the arrays in your own .h file, using Teapot.h as a guide.

This is only one possible solution to importing 3D content. I suggest searching the internet for tools that might serve your particular need.

- Kim

Re: Is there a method to make a 3D object easily?

October 21, 2010 - 8:38pm #3

Thanks for ksiva's help.:)

I already understand how to modify the .h file. And I have tried to substitute the 3D teapot for another 3D object by modifying the teapot.h. Then I ran the ImageTargets project, but the teapot 3D object was still rendered on the screen. Even though I deleted the teapot.h file in "samples/Shared/jni" direction, the teapot still on the screen.:(

Did I miss any important step?:confused: Could somebody help me to solve this problem? Thanks a lot~

Re: Is there a method to make a 3D object easily?

October 21, 2010 - 10:39pm #2

If you are using Eclipse, please remember to refresh the "libs" in the Package Explorer after compiling your native codes.

This might solve your problem. :-)

Re: Is there a method to make a 3D object easily?

November 8, 2010 - 4:29am #1

I'm having this problem also. Even replacing the teapot.h text with the cube.h text doesn't change it. Using ndk-build does nothing too and refreshing over and over does nothing.

Solution anyone?

EDIT: Use ndk-build on the application not the Shared ) *facepalm*

Log in or register to post comments