Showing posts with label AugmentedRealityExample. Show all posts
Showing posts with label AugmentedRealityExample. Show all posts

Tuesday, September 3, 2013

[Tut] How to perform AndEngine Examples of Nicolas Gramlich - AugmentedRealityExample (with camera)


andengineaugmentedrealityextension.jar has some problems when using it to implement this example on emulator, so you can use some files to replace the .jar file

Create the package org.anddev.andengine.extension.augmentedreality and create 2 files like this


Here is the code of BaseAugmentedRealityGameActivity class
package org.anddev.andengine.extension.augmentedreality;

import org.anddev.andengine.opengl.view.ComponentSizeChooser;
import org.anddev.andengine.opengl.view.RenderSurfaceView;
import org.anddev.andengine.ui.activity.BaseGameActivity;

import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;

Posted By Live Blog6:49 PM

Choose an Android item