vianziro / droidar

Automatically exported from code.google.com/p/droidar
0 stars 0 forks source link

Need some clarifications on Geo #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using droidAR to show some GeoObjects.

Below is the code how i spawn the objects.

I am defining a mesh as MeshComponent mesh = GLFactory.getInstance()
                            .newTexturedSquare("mytext",
                                    IO.loadBitmapFromView(mylayout), 3);
                    mesh.addChild(new AnimationFaceToCamera(camera, 0.5f));
                    mesh.setScale(new Vec(10, 10, 10));

GeoObj x = new GeoObj(pos, mesh);
and world.add(x)

Can you please clarify these points.

1. I have spawned 5 pints . one at current location, second at 10m from current 
position , 3rd at 100 meters , 4th at 1 kn 
Now when i open the AR view, which of these point will be visible. ie where am 
i setting the radius for camera visibility 

2. I want to listen to location update and update AR view automatically . Is 
this possible and the default behaviour ? I saw the event handler for location 
update defined in the setup . WIll this take care of lo9cation update or should 
we override / implment any function.

Thanks a lot for your answers. It will be really helpful for me.

Original issue reported on code.google.com by preetha...@gmail.com on 21 Aug 2012 at 8:38

GoogleCodeExporter commented 8 years ago
about 1.: the render distance can be changed in the GLRenderer, take a look at 
the code

about 2.: the location update listener handles the movement of the virtual 
camera if you use a configuration like in the defaultarsetup. so you will not 
have to move the geoobjects around yourself 

Original comment by simon.heinen on 21 Aug 2012 at 11:23

GoogleCodeExporter commented 8 years ago
Thank you for the support . It really helped.

Original comment by preetha...@gmail.com on 22 Aug 2012 at 11:56