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

Is my phone fitting? #32

Open
cttpla opened this issue Aug 18, 2016 · 2 comments
Open

Is my phone fitting? #32

cttpla opened this issue Aug 18, 2016 · 2 comments

Comments

@cttpla
Copy link

cttpla commented Aug 18, 2016

Hi Simon, first of all this is a great job.
My phone is not so much cool, it just has GPS and accelerometer:
http://www.mediacomeurope.it/ZeusInc/PressRoom/Documents/M-PPG700.pdf

Can i use geolocation and 3d positioning objects somehow? I downloaded the latest version and built your sample code with solar system, it ran without errors but all i can see is the camera and a cross, no 3d model at all and it says position accuracy 2% .

Thank you so much!

@cttpla
Copy link
Author

cttpla commented Aug 19, 2016

Just an update: yesterday i managed to get some progression. The accuracy issue was due to my GPS issue which is now fixed. So now accuracy is >10 and i can see the solar system model. BUT, it simply seems not well managed by the engine, it appears very close to the camera and doesn't follow the movements of the camera in the space. Plus, since its rotating on a pivot, it disappears after few seconds. I can't suppose if that is due to my phone or something wrong with the code:

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Button b = new Button(this);
        b.setText("Click me to Start the AR Action");
        b.setOnClickListener(new OnClickListener()
        {
           @Override
           public void onClick(View v)
           {
             ArActivity.startWithSetup(DemoDroidAR.this, new DefaultARSetup() 
             {
                @Override
                public void addObjectsTo(GL1Renderer renderer, World world, GLFactory objectFactory) 
                {
                    // TODO Auto-generated method stub
                    world.add(objectFactory.newSolarSystem(new Vec(1, 1, 0)));
                }
             });
           }
        });
        setContentView(b);
  }

Please keep in mind that my phone has only accelerometer and GPS, no Compass and no Gyroscope.

Thank you so much!

@cttpla
Copy link
Author

cttpla commented Aug 19, 2016

PS - i downloaded JumpAndRun and im having same issues. Models are rendered very close to camera and doesnt follow the movements, they stay fixed on screen.

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

1 participant