130 likes | 232 Views
Augmented Reality Engine. Viewlity. CristianAndreica 4 th Year student – Politehnica University of Bucharest Co-founder of XTWIP.com Currently involved in Balaur.ro 3 yrs experience in web industry 1 yrs experience with building desktop apps
E N D
Augmented Reality Engine Viewlity
CristianAndreica 4th Year student – Politehnica University of Bucharest Co-founder of XTWIP.com Currently involved in Balaur.ro 3 yrs experience in web industry 1 yrs experience with building desktop apps Proficiency with: Java, PHP, JS, Python, Unix Email: cristian.andreica@gmail.com Twitter Account: @cristiandreica About me
TODOs Concept Development Problems Demo
Plan Price: 0.99 euro per app Copies: 100 per app Development time: 3-5 hours Number of apps: as much as we can
Camera Activity 1. public class CameraPreviewextends SurfaceViewimplements SurfaceHolder.Callback { 2. private SurfaceHoldermHolder; 3. private Camera mCamera; … 4. public CameraPreview(Context context) { // context -> The application Activity object super(context); 5. mHolder= getHolder(); 6. mHolder.addCallback(this); } 7. public void surfaceCreated(SurfaceHolder holder) { 8. mCamera= Camera.open(); 9. mCamera.setPreviewDisplay(holder); } 10. public void surfaceDestroyed(SurfaceHolder holder){ … } 11. public void surfaceChanged(SurfaceHolder holder, intformat, intw, inth) { … } }
1. public class Controllerimplements LocationListener{ 2. private Criteria locationCriteria; 3. private LocationManagerlocationManager; public Controller(){ locationCriteria= new Criteria(); 4. locationCriteria.setAccuracy(Criteria.ACCURACY_COARSE); 5. locationCriteria.setAltitudeRequired(false); 6. locationCriteria.setBearingRequired(false); 7. locationCriteria.setCostAllowed(true); 8. locationCriteria.setPowerRequirement(Criteria.POWER_LOW); 9. locationManager= (LocationManager) context .getSystemService(Context.LOCATION_SERVICE); 10. locationManager.requestLocationUpdates(bestProvider, LOCATION_REFRESH_TIME, LOCATION_REFRESH_MIN_DISTANCE,this); } 11. public void onLocationChanged(Location location){…} } GPS location
1. public class Controllerimplements SensorEventListener{ 2. private SensorManagersensorManager; public Controller(){ 3. sensorManager= (SensorManager) context.getSystemService(Context.SENSOR_SERVICE); 4. sensorManager.registerListener(this, 5.sensorManager.getDefaultSensor (Sensor.TYPE_ORIENTATION), SensorManager.SENSOR_DELAY_UI ); } 6. public void onSensorChanged(SensorEventevt) { 7. float vals[] = evt.values; 8. If (evt.sensor.getType() == Sensor.TYPE_ORIENTATION) { // do crazy stuff when orientation changes } } } Orientation
Issues • 1. Compatibility • - resolution • - speed • 2. Layout • - [0,360] degrees • - sensor noise problem
DONE Concept Development Problems Demo