Hello everybody,
I'm getting my developing augmented reality application, Thanks for help me.
Now I'm not able to display a 3D object when the marker 1 and marker 2 appear.
I tried this code, but nothing:
/* Add a new marker to the system */
private function addMarker(marker:FLARMarker):void {
if ((marker.patternId.toString()=='0') && (marker.patternId.toString()=='1')){
var markerList:Vector.<FLARMarker> = this.markersByPatternId[marker.patternId];
/* Add new marker to the list */
markerList.push(marker);
trace(markerList.toString());//log
/* Initialise the marker container object */
var container:DisplayObject3D = new DisplayObject3D();
/* Prepare material to be used by the Papervision cube based on pattern id */
var flatShaderMat:FlatShadeMaterial = new FlatShadeMaterial(pointLight3D, 0xFF1918, 0xFF1919);
/* Add material to all sides of the cube */
var cubeMaterials:MaterialsList = new MaterialsList({all: flatShaderMat});
/* Initialise the cube with material and set dimensions of all sides to 40 */
var cube:Cube = new Cube(cubeMaterials, 40, 40, 40);
/* Scale cube to 0 so it's invisible */
cube.scale = 1;
/* Add finished cube object to marker container */
container.addChild(cube);
/* Add marker container to the Papervision scene */
this.scene3D.addChild(container);
/* Add marker container to containersByMarker Dictionary object */
/* Store reference to list of existing markers with same pattern id */
this.containersByMarker[marker] = container;
}
Can you help me, please??
Em sábado, 16 de fevereiro de 2013 21h44min05s UTC-2, thgfsantos escreveu: