jrealpe / droidar

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

Altitude not being used #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Simon-
In using droidar, we noticed that the altitude was not displaying right.  In 
looking at the code-
/*
             * The altitude should be set to a certain position too. This can be
             * done by using location.getAltitude() TODO first think of all
             * consequences!
             */
            final double altMet = 0;// location.getAltitude(); TODO
And-

    private void updateCamera(double latDistMet, double longDistMet,
            double altDistMet) {
        // myCamera.setNewPosition((float) latDistMet, (float) longDistMet,
        // (float) altDistMet);
        myCamera.setNewPosition((float) latDistMet, (float) longDistMet, 0);
    }

I see you are setting the altitude to zero(0) in purpose.

Any idea when this will get implemented?  Or am I just looking in the wrong 
spot?

Thanks
Palmer

Original issue reported on code.google.com by Palmer.J...@gmail.com on 11 Oct 2011 at 12:58

GoogleCodeExporter commented 9 years ago
i didn't have any scenario jet where i realy needed the altitude (you can 
always set the height of objects or the camera via getPosition().z=100) but i 
think there will be no big problems adding the height value, so i will 
implement the altitude stuff soon

Original comment by simon.heinen on 11 Oct 2011 at 10:52

GoogleCodeExporter commented 9 years ago
Just the scenario we are using-
We are setting the Altitude via a GeoObj from a feed of GeoLocation JSON 
objects we are getting from a service.  We needed it to show the relative 
height off the ground.  And the user/camera my not be on the ground.

Original comment by Palmer.J...@gmail.com on 11 Oct 2011 at 1:19

GoogleCodeExporter commented 9 years ago
Hi guys,
in my szenario the z-Value is also important: displaying GeoObjects 
representing water surfaces at different gauge in AR.

Original comment by raphael....@gmail.com on 16 Oct 2011 at 9:00

GoogleCodeExporter commented 9 years ago
Any idea when you can take a peek @ the altitude stuff?

Original comment by matthew....@gmail.com on 27 Oct 2011 at 11:02

GoogleCodeExporter commented 9 years ago
I will do it soon, maybe on the weekend. for now just set the height of your 
geo objects mesh components manually with 
"geoob.getMeshComp().getPosition().z=100" meter. same for the camera.

i promise this will be the next thing on the todo list;)

Original comment by simon.heinen on 28 Oct 2011 at 7:24

GoogleCodeExporter commented 9 years ago
That would be great.
I did what you suggested above.  It works, but as soon as one moves the virtual 
camera to a different place in the world, and back to the original if breaks. 
Unless i remove the objects and add them back, the altitude is not being 
honored on the move back.  the altitude of the meshcomponents is back to 0 with 
the redraw.

Original comment by Palmer.J...@gmail.com on 2 Nov 2011 at 2:13

GoogleCodeExporter commented 9 years ago
Ok I commited now all the required updates, the height should be taken into 
account now

Original comment by simon.heinen on 7 Nov 2011 at 11:36