Problem connecting the camera to Away3DLite

I applied the Augmented Reality app for Android using Adobe Air for Android, FLARManager, Away3DLite. The program works fine on flash. However, when I publish it on my mobile phone (HTC Nexus One) or run it on an emulator, my camera does not activate, and all I can see is the color of my background and the display of the frame rate.

I think the problem in Camera3D that I used is FLARCamera_Away3DLite from FLARManager.

This is how I installed my camera

import com.transmote.flar.camera.FLARCamera_Away3DLite; private var camera3D:FLARCamera_Away3DLite; this.camera3D = new FLARCamera_Away3DLite(this.flarManager, new Rectangle(0, 0, this.stage.stageWidth, this.stage.stageHeight)); 

I will be very grateful for any advice that I can get from you.

Thanks George

+7
source share
1 answer

I think you are wrong in the camera class. The camera class you use is a camera in your “virtual” 3D world, and it captures your 3D world. Then the “movie” goes to the “View” class, which can show your 3D world up to 2d. Your screen is 2nd screen and is not able to display 3d. A camera class, combined with a view, converts your 3D scene into a 2D image that is displayed on the screen.

But since you want to make an AR application, you mean the camera of the phone. You cannot use the Away 3D camera class for this. This guide shows how to use the camera of your andriod phone in flash.

The steps you want to take is that you get a fiction in phonecamera, and past it on the screen. Then use FLARtoolkit to determine the position of your marker. And then adjust the 3D model to the marker position. And last but not least, to show the 3d model on the screen (using the camera and viewing away3d / papervision). So basically you have 2 layers in your flash application. 1 background layer, which is the feed of your library, and the other layer (on top of it) is your view from away3d or papervision.

I think that if you combine these tutorials, you can make your application:

+3
source

All Articles