Posts

POC: OpenGLES with Orientation Sensor

Image
This is a proof-of-concept (P.O.C.) for rendering OpenGL world by using the phone's Orientation Sensor as an input. First I'll draw a crate in 3D space, then I'll set the camera (View Point) to look at it. whenever a user look away (roll/pitch/yaw) the crate, it will disappear from screen until the user point the phone back to that direction. here's an illustration of what I mean: code segments: public class GLSurfaceViewActivity extends Activity implements SensorEventListener{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // ... // --- init sensor --- mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); sensorList = mSensorManager.getSensorList(Sensor.TYPE_ORIENTATION); orientationSensor = sensorList.get(0); // ... mSensorManager.registerListener(this, orientationSensor,SensorManager.SENSOR_DELAY_FASTEST); } /** * **/ public void onSensorChanged(SensorEvent event){ if (event.sensor ==

AI - 2D Path Finding ...

Image
Hi all, Below were some R&D on path finding, sketched some diagram on them ... 1. Non-blocking Path Finding ... 2. Blocking Path Finding Until next time ... Cheers, Avatar Ng

Test Application 1

Image
Hi all, This 1st test application try out for following features: - non-blocking path-finding - point-and-click move character (touch) - 2d graphic programming in Android Below was some screenshot ... Step 1 - Point at a "new" destination location Step 2 - A new path being generated (consisting all points from travel from A to B) Step 3 - Player object appraoching to destination location Step 4 - After a few seconds anchor (plotting destination) vanished from screen You will see something more in my next post ... a lot of work todo (sweat~~). Ya, remember to check out our SVN code repository at http://code.google.com/p/hexagonm/ . Cheers, Avatar Ng

Project kick off ...

Image
Things are pretty much in initialization stage, but we have moved the 1st step. Milestone 1: testing Android API ... Testing: - touch, gesture - 2D Graphic cabability - qwerty input - animation performance (measure by FPS) - Threading - Simple Path Finding (performance) Not Tested: - SQLite database - OpenGL ES, 3D performance (measure by FPS, quality, supported features) - compass feature (roll, pitch, yaw) - Advance Path Finding, AI (performance) - network feature - ... etc Had setup project on code.google.com: - http://code.google.com/p/hexagonm/ (access with SVN based client) Regards, Avatar Ng