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

Geoposition not set #83

Open
kishor-bitcode opened this issue Jan 9, 2016 · 2 comments
Open

Geoposition not set #83

kishor-bitcode opened this issue Jan 9, 2016 · 2 comments

Comments

@kishor-bitcode
Copy link

when we set our own latitude and longitude to geoposition then object is not shown on screen,but your demo is run proper.

         mWorld = new World(.this);
        mWorld.setDefaultImage(R.drawable.beyondar_default_unknow_icon);
    mWorld.setGeoPosition(lat, longg); // lat and long is my current location

             GeoObject go1 = new GeoObject(1l);
    go1.setGeoPosition(18.517557d, 73.841660d);
    go1.setImageResource(R.drawable.creature_1);
    go1.setName("Creature 1");

    mWorld.addBeyondarObject(go1);
            mBeyondarFragment.setWorld(mWorld);
@IlCallo
Copy link

IlCallo commented Apr 12, 2016

It's probably due to the MaxDistanceToRender setted too low (by default it seems to be 100m).
Try to put
mBeyondarFragment.setMaxDistanceToRender(5000);
right after you retrieved the fragment

@IlCallo
Copy link

IlCallo commented May 3, 2016

I confirm that, default MaxDistanceToRender is 100m

in ARRenderer, line 52
public static final float DEFAULT_MAX_AR_VIEW_DISTANCE = 100.0F;

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