Hi there~
I want to learn the tutorial demo that "draging a teapot onto a fire and it starts to steam".the tutorial video from July 2011 is here:
https://developer.qualcomm.com/develop/mobile-technologies/augmented-reality-vuforia/videos
I found the thread: https://ar.qualcomm.at/content/teapot-fire-tutorial-files
I used ksiva's code, that finds the distance between two targets to start the steam when the teapot gets close to the fire. but I found the distance changed when my iphone camera far or near from the Image Target. I core code is:
float teapotToFireDistance = Vector2.Distance(new Vector2(m_Teapot.transform.position.x, m_Teapot.transform.position.z), new Vector2(m_Fireplace.transform.position.x, m_Fireplace.transform.position.z));
teapotToFireDistance changed when my iphone camera(ARCamrea) far or near from the Image Target, but I want to a fixed value that just distance between teapot and fire, and unaffected by ARCamrea.
so how to modify the code?
Thanks!
I can't download the package from Sky Drive