What if I want to add location marker at ground level.
kambojumang opened this issue · 3 comments
Hello All,
Great work, I want to know how can we add a location marker on ground level as per the sea level. Like If landscape or location is on first floor or second floor how we can distinguish them.
Thanks,
Umang Kamboj
Hello!
It will be great if will find solution to this issue.
Also i have question. Is it possible to scale model programmatically?
Hello @Vladgetman ,
We can update scale by updating the value of LocationMarker.scaleModifier from by default 1.0f to 2.0f to make it twice and 0.5f to make it half and so on. Along with this library have scalingModes that will increase or decrease scale
public enum ScalingMode {
FIXED_SIZE_ON_SCREEN,
NO_SCALING,
GRADUAL_TO_MAX_RENDER_DISTANCE,
GRADUAL_FIXED_SIZE
}
which will scale object as per distance and location.
Along with this you can change the height of the object using LocationMarker.height = 0.0f by default but it is as per the camera's height. I am trying to set height as per the altitude.
example: If I am on top of the building and I see park in front of me, that it will appear down in AR camera and it could be done using altitude this library is using altitude as 0 for both locations (mobile location and marker location), may be it will work if we provide altitude with with library as well. already few libraries are using this for reference:
https://www.wikitude.com/external/doc/documentation/latest/android/poi.html#geo-ar-points-of-interest
I hope this will help.
Thanks,
Umang Kamboj
Dear @kambojumang thank you so much for yor help.
Here is what I found. It can only be an idea, not a solution.
google-ar/sceneform-android-sdk#185
This question is about how to put an object in the air, but I think it can help if you can move the model below the anchor