Augmented reality -Pro Augmented Reality" by Raghav Sood-Chapter 8

525 Views Asked by At

My name is Cristina and i am studying telecommunications engineering in the last year. My questions: i have tried the code from chapter 8 (named:A 3D Augmented Reality Model Viewer)from the book: "Pro Augmented Reality" by Raghav Sood on my phone,and everything goes ok with the models from there,but when i try to load my own models i get nothing. I did my models in blender,then export them as .obj files,when i export them i checked the Triangle and Normals.I also tried with other models from the internet,but the models didn't load. I studyed a lot the explications from this site http://code.google.com/p/andar/ about the andar code but still have no answer why my models aren't loading . Please help me with an answer!

1

There are 1 best solutions below

2
On

1) You should probably check the size of your model, maybe the model is too big or too small and just not visible.

2) Another important element to check is the origin of your 3D model. For marker-based AR, the best solution is to define the origin at the ground plane of your model (from a side view, at the lowest vertical coordinate) and not in the center.

To check your model, I will advice you to load both your model and a model working with AndAR (e.g. plant.obj, sofa.obj) in Blender (File>>Append) and see if both are "roughly" aligned in Blender. If not you can align your model with the AndAR one (scale, origin), delete the AndAR mesh and export again.