0

how to change object option from AndAR Model Viewer

example in the picture below

picture

Help me, please

Fakhrul
  • 1
  • 1
  • 3

1 Answers1

0

I think some parts of the code are missing on Google code but I am not sure. However, I checked this project on github which was cloned from the project you referred. The part that you're looking for is in ModelViewer.java. It looks like the class loads all .obj files in the assets folder. (You can take a look at line 219)

if(modelFileName.endsWith(".obj")) {...

So the easiest way to change the option is to put your model in the assets folder and remove ones that you don't want. You can start from there. Hope this helps.

pt2121
  • 11,720
  • 8
  • 52
  • 69
  • I have removed some objects but after I replaced it with a new one by importing the object will not display in the rendering – Fakhrul Nov 09 '12 at 11:59
  • If you're sure that your code is fine, it could be your model. There are currently some restrictions to the models: Every face must have normals specified. The object must be triangulated, this means exactly 3 vertices per face. Basic materials and textures are supported. http://code.google.com/p/andar/wiki/AndARModelViewerInstructions – pt2121 Nov 12 '12 at 13:30