Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if I want to add location marker at ground level. #108

Open
kambojumang opened this issue Jan 2, 2020 · 3 comments
Open

What if I want to add location marker at ground level. #108

kambojumang opened this issue Jan 2, 2020 · 3 comments

Comments

@kambojumang
Copy link

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

@Vladgetman
Copy link

Hello!
It will be great if will find solution to this issue.
Also i have question. Is it possible to scale model programmatically?

@kambojumang
Copy link
Author

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

@Vladgetman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants