Log in or register to post comments

Replace Teapot with a custom 3d object

February 13, 2018 - 7:54am #1

Hi everyone, 



To start with, I have read a lot of instructions, some of which seemed outdated, but nonetheless, I desire to understand what is going wrong. 



In blender, I made a simple object, see the following image







I converted this 3d object into a .obj file extension. During this process, I checked the following options









Having this object in a .obj extension, I opened the file with a texteditor so I could copy over normal and vertexes.







The action I did after this was replacing the data inside TEAPOT_VERTS and TEAPOT_NORMS with the data from above. So





 

After this, I started Vuforia sample app, but it gives me the following result:







Where did I go wrong during the process of adding a custom object? Can someone help me out, I have been stuck for quite long on this?



 

Replace Teapot with a custom 3d object

February 14, 2018 - 1:42am #3

Hi kclough, 



Thank you for the golden tip! I have managed to show a cube instead of a teapot with this, through adjusting the existing code of the teapot. Is there a guide that elaborates on a way to include header files in your android project? More complex objects appears to have way too large acceptable arrays for Android Studio to accept. 

Replace Teapot with a custom 3d object

February 13, 2018 - 12:55pm #2

I reccomend checking out this export script. This allowed me to export a custom object from blender. https://github.com/StickyBeat/BlenderVuforiaExport

Log in or register to post comments