Comments (5)
It seems much faster at rendering on my phone. I am doing some additional
filtering to smooth the compass data, you can turn that off and see if it helps.
In the class LowPassFilter there is an ALPHA variable. If you make that value
closer to 1 it should do less smoothing.
You could also trying not using the smoothing at all, in class SensorsActivity:
Change:
if (evt.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
smooth = LowPassFilter.filter(evt.values, grav);
grav[0] = smooth[0];
grav[1] = smooth[1];
grav[2] = smooth[2];
} else if (evt.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {
smooth = LowPassFilter.filter(evt.values, mag);
mag[0] = smooth[0];
mag[1] = smooth[1];
mag[2] = smooth[2];
}
To:
if (evt.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
//smooth = LowPassFilter.filter(evt.values, grav);
grav[0] = evt[0];
grav[1] = evt[1];
grav[2] = evt[2];
} else if (evt.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {
//smooth = LowPassFilter.filter(evt.values, mag);
mag[0] = evt[0];
mag[1] = evt[1];
mag[2] = evt[2];
}
Original comment by [email protected]
on 17 Jan 2012 at 11:18
from android-augment-reality-framework.
Original comment by [email protected]
on 17 Jan 2012 at 11:19
- Changed state: Started
from android-augment-reality-framework.
You can also try disabling collision detection:
In class AugmentedReality, set the variable useCollisionDetection to false.
Original comment by [email protected]
on 17 Jan 2012 at 11:26
from android-augment-reality-framework.
They didn't work quite but changing this line
sensorMgr.registerListener(this, sensorGrav, SensorManager.SENSOR_DELAY_NORMAL);
sensorMgr.registerListener(this, sensorMag, SensorManager.SENSOR_DELAY_NORMAL);
to
sensorMgr.registerListener(this, sensorGrav, SensorManager.SENSOR_DELAY_UI);
sensorMgr.registerListener(this, sensorMag, SensorManager.SENSOR_DELAY_UI);
worked.
Thanks for this project by the way, its really cool.
Original comment by [email protected]
on 21 Jan 2012 at 7:32
from android-augment-reality-framework.
Yea, That's another good option to speed things up. I am guessing I don't see
the same problems because my processor is a bit quicker.
Original comment by [email protected]
on 21 Jan 2012 at 9:10
- Changed state: Done
from android-augment-reality-framework.
Related Issues (20)
- Markers not updated properly HOT 2
- markers position HOT 2
- ARData azimuth HOT 2
- Program fail in AVD 4.2 HOT 3
- Live marker rotation HOT 3
- Rotation refresh rate is really slow HOT 1
- Latest code working for both orientations. What if want to work on one only? HOT 4
- Does not show multiple POIs close enough to share the screen space HOT 4
- Reference Table overflow HOT 2
- AFatal signal 11 (SIGSEGV) HOT 9
- apps auto close when too much marker on certain angle HOT 2
- Problem with icon movement in the screen HOT 2
- activity force close when added too many markers HOT 5
- License change HOT 1
- Local Datasorce not showing POI HOT 2
- How to optimize the rendering performance for AR Objects(Markers) HOT 15
- Canvas getMatrix method dprecated HOT 5
- Show map view summary when device is horizontal to ground
- Marker on screen move with device movement
- Wrong marker position when marker is behind us
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-augment-reality-framework.