Log in or register to post comments

Replace teapot object in Unity

December 29, 2015 - 9:34am #1

It's been a little while since I've done this, so maybe I'm remembering it wrong.

I have the Image Target example working with Unity 5.3 and a Nexxus 5 Android phone. 

One of the image targets in the example scene has successfully been replaced by a custom target, and this works with the existing Teapot objects.

I would like to replace the teapot object with another 3D object. 

I have brought the object into the scene in Unity, and have placed it in the hierarchy of the Image Target I wish it to be associated with.  I thought that was all that was needed.  But this is not working. 

I can move around the teapots and re/disassociate them with targets.  But so far no luck with imported objects.

What am I missing?

Replace teapot object in Unity

December 29, 2015 - 12:50pm #2

I was able to use my own objects when I started a new project from scratch.  I do get an error when I use the 64 bit editor.  But the code seems to work the same.

 

d to load 'Assets/Plugins/QCARWrapper.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was IMAGE_FILE_MACHINE_I386. You must recompile your plugin for 64 bit architecture.
Vuforia.EditorClasses.WebCamEditor:OnInspectorGUI()
Vuforia.EditorClasses.WebCamEditor:OnInspectorGUI()
UnityEditor.DockArea:OnGUI()

Not sure why I couldn't just replace objects in the Image Target Demo.  I'm sure there's a logical reason.  I just don't remember it being more than one step before.

Log in or register to post comments