ErNancy / droidar

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

Not working on Note2 #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
-Tried to start the demos, but not worked

I can see nothing, just a cross, and the camera view.

I tried to add some GeoPoint to myself then:

                ArActivity.startWithSetup((Activity) MainActivity.mycontext, new DefaultARSetup() {
                    @Override
                    public void addObjectsTo(GL1Renderer renderer, World world, GLFactory objectFactory) {

                        GeoObj o1 = new GeoObj(47.4607182, 19.0375422, 2, "HOME"); 
                        o1.setComp(objectFactory.newArrow());

                        GeoObj o2 = new GeoObj(47.4807182, 19.1375422, 2, "ASD"); 
                        o2.setComp(objectFactory.newArrow());

                        world.add(o1);
                        world.add(o2);

                    }
                });

http://pastebin.com/FUw1PE0Y

but the same, I can see anything, only the camera view...

Original issue reported on code.google.com by lostinwa...@gmail.com on 24 Jan 2013 at 4:10

GoogleCodeExporter commented 8 years ago
If it can help project members it's because the note ROMs declare an 
orientation sensor as being available but then sends no events of that type...

Original comment by marcu...@gmail.com on 14 Apr 2013 at 11:18

GoogleCodeExporter commented 8 years ago
I seems have the same problem now on my Nexus 4 with Android 4.3 on it. I also 
only see the camera view, but no objects. When I move my device, the camera in 
the AR world isn't moved. Could you explain in more detail how you solved it? 
What do you mean by "note ROMs"? 

Original comment by CaptainTrunks on 6 Sep 2013 at 2:16

GoogleCodeExporter commented 8 years ago
you can try to use different sensor inputs, but normally if you use the latest 
droidar version from github https://github.com/bitstars/droidar and you use the 
default ar setup, it should use the defailt rotation sensors. try things like 
google sky or google street view, if they work the default ar setup should work 
as well

Original comment by simon.heinen on 7 Sep 2013 at 10:03

GoogleCodeExporter commented 8 years ago
yeah, i have the recent version from github. it worked fine before i installed 
the 4.3 update on my phone. i had the droidar framework set to version 2.3.3 in 
eclipse. it didnt't work when set to version 4.2. now after having installed 
version 4.3 on the phone i have the same results with the framework being set 
to 2.3.3, 4.2 and 4.3. i tryed google sky map and it works just fine. the 
sensors send data. now i tryed the default droid ar setup and the demos from 
the framework, but it doesn't work. the objects are rendered, but the camera 
doesn't move when i move the phone. it seems the camera stays in the position 
that it is initialised in. in the "animation demo" the camera faces down and i 
can see the white rendered surface and the red and green polygones moving 
through the screen. 
i will have to try a bit more later.

Original comment by CaptainTrunks on 9 Sep 2013 at 2:13

GoogleCodeExporter commented 8 years ago
i got it. i manually set "useAccelAndMagnetoSensors" in the class "Setup" to 
false and it works fine now. even with version 4.3 set on the droidar framework.

Original comment by CaptainTrunks on 9 Sep 2013 at 2:23

GoogleCodeExporter commented 8 years ago
#5

Can you paste the code please ? I would be very grateful!!

Original comment by bernagon...@gmail.com on 22 Apr 2014 at 9:52

GoogleCodeExporter commented 8 years ago
go to the class "setup.java". you'll find some constructors there.

/**
 * Original
 */
//  public Setup() {
//      this(true);
//  }

    public Setup() {
        this(false);
    }

    public Setup(Activity target, SetupListener listener,
            boolean useAccelAndMagnetoSensors) {
        this(useAccelAndMagnetoSensors);
        mySetupListener = listener;
    }

    // TODO remove boolean here and add to EventManager.setListeners..!
    public Setup(boolean useAccelAndMagnetoSensors) {
        this.useAccelAndMagnetoSensors = useAccelAndMagnetoSensors;
    }

i took  

public Setup() {
    this(true);
    }

and made it

    public Setup() {
        this(false);
    }

this works for me under android 4.3

Original comment by CaptainTrunks on 23 Apr 2014 at 12:23

GoogleCodeExporter commented 8 years ago
Hi, I'm working project with droidar. I'm currently use Samsung galaxy mini and 
it works perfectly to show image and all sensor. Then I'm trying using Samsung 
galaxy mini 2 and Samsung Galaxy S3 Mini. 2.3 on galaxy mini and mini 2, and 
4.2 on galaxy S3 mini.

Then I try to use Samsung galaxy tab 2 wifi only with 4.1.2 android version. It 
shown the sensor wont work it's only a camera. Beside it's shown an image but 
only like a picture stuck in the screen. it not move whenever I move my device.

I already change the Setup.java into false but it not working. 

The following code is 

protected 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 arg0) {
                ArActivity.startWithSetup(MainActivity.this, new DefaultARSetup(){

                    @Override
                    public void addObjectsTo(GL1Renderer renderer, World world,
                            GLFactory objectFactory) {
                        world.add(objectFactory.newSolarSystem(new Vec(10, 0, 0)));
                        }

                });
            }
        });

        setContentView(b);
    }

Thanks in advance

Original comment by madya...@gmail.com on 31 May 2014 at 7:20