Presentation is loading. Please wait.

Presentation is loading. Please wait.

Augmented Reality Engine Viewlity. About me CristianAndreica 4 th Year student – Politehnica University of Bucharest Co-founder of XTWIP.com Currently.

Similar presentations


Presentation on theme: "Augmented Reality Engine Viewlity. About me CristianAndreica 4 th Year student – Politehnica University of Bucharest Co-founder of XTWIP.com Currently."— Presentation transcript:

1 Augmented Reality Engine Viewlity

2 About me 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 Proficiency with: Java, PHP, JS, Python, Unix Email: cristian.andreica@gmail.com Twitter Account: @cristiandreica

3 Concept Development Problems Demo TODOs

4 Augmented Reality

5 Concep t

6 Plan Price: 0.99 euro per app Copies: 100 per app Development time: 3-5 hours Number of apps: as much as we can

7 Development

8 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) { … } } Camera Activity

9 GPS location 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){…} }

10 Orientation 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 }

11 Issues 1. Compatibility - resolution - speed 2. Layout - [0,360] degrees - sensor noise problem

12 Concept Development Problems Demo DONE

13 Thank you!


Download ppt "Augmented Reality Engine Viewlity. About me CristianAndreica 4 th Year student – Politehnica University of Bucharest Co-founder of XTWIP.com Currently."

Similar presentations


Ads by Google