some of actionscript that i manage to manipulate , that kinda important
this script use for container project the 3d objects , i do that 14 different container
this.modelContainer = new DisplayObject3D();
this.modelContainer.addChild(model1);
this.modelContainer.visible = false;
this.scene3D.addChild(this.modelContainer);
This script for add , update and remove the marker
if(evt.marker.patternId == 1)
{
trace("Pattern 1 Added");
markerAdded(1);
this.activeMarker = evt.marker;
if(evt.marker.patternId == 1)
{
trace("Pattern 1 Updated");
markerAdded(1);
this.activeMarker = evt.marker;
if(evt.marker.patternId == 1)
{
trace("Pattern 1 Removed");
markerRemoved(1);
Monday, December 27, 2010
2nd Prototype
i already manage the problem that encounter , it takes 2 weeks to solve it but its actually 5-mins problem only , damnnnn , so waste my time. but its still many need to repair , haihhhh , hopefully i can make this fyp succesfully.
here screenshot that i take
only 1 3d that scaled big , others kinda tiny.
Saturday, December 11, 2010
Actionscript
Initiation Script (External Script)
package {
import flash.display.Sprite;
[SWF(width="640", height="480", frameRate="30", backgroundColor="#FFFFFF")]
public class launchMultiMarker extends Sprite {
public function launchMultiMarker () {
this.addChild(new MultiMarkerMultiDae()); <--Main Class
}
}
}
This one for single marker that i've tested and compiled
public function Earth() {
addEventListener(Event.INIT, _onInit);
init('Data/camera_para.dat', 'Data/test16.pat'); <--this one for the marker
}
private function _onInit(e:Event):void {
_earth = new DAE();
_earth.load('model/jupiter.DAE')<--this one for the dae;
_earth.scale = 10;
_earth.rotationX = 90;
_markerNode.addChild(_earth);
addEventListener(Event.ENTER_FRAME, _update);
}
private function _update(e:Event):void {
_earth.rotationZ -= 0.5<--this one for the dae animation (rotation)
}
}
}
This one for changing the collada models.
// (this model has to be scaled and rotated to fit the marker; every model is different.)
var model1:DAE = new DAE(true, "model1", true);
model1.load("assets/model4.dae");<--dae model
model1.rotationX = 0;
model1.rotationY = 0; <--- animation on dae model
model1.rotationZ = 0;
model1.scale = 10;
// load the model.
// (this model has to be scaled and rotated to fit the marker; every model is different.)
var model2:DAE = new DAE(true, "model2", true);
model2.load("assets/model4.dae");
trace("model4 loaded");
model2.rotationX = 0;
model2.rotationY= 0;
model2.rotationZ = 0;
model2.scale = 10;
// load the model.
// (this model has to be scaled and rotated to fit the marker; every model is different.)
var model3:DAE = new DAE(true, "model3", true);
model3.load("assets/model4.dae");
model3.rotationX = 0;
model3.rotationY= 0;
model3.rotationZ = 0;
model3.scale = 10;
XML for the multiple marker
sorry i take this code by screenshot because there's a problem when i wrote this code on this blog.
Thursday, December 9, 2010
Project Progress
Blender is a software , not the kitchen blender. First of all , this software is commonly use for the3D modeling for augmented reality application but i still learn it and it's kinda hard because no one can teach me how to use it. It's because this software can export the 3D model into DAE file format. I spend about 6 hours to have the basics of the software but it's still didn't help me at all.
In the end i find another solution that i use external component for 3DMax for exporting the DAE files and its works , down here screen shot about the blender software. I've no idea how to manage this software.Sorry can't prepared the multiple marker for multiple collada , this is the problem why , i spend about 4 - 6 hours everyday looking and finding the error
Wednesday, December 1, 2010
First Prototype
Hey guys , i got some prototype to show here , maybe its not finish but i just want to show that this application run ;)
First run on the first prototype.
- i try on single customize marker , and its works , down here the screenshots
Second run on the first prototype
- i try on multiple customize marker , but its not the 3D but only tested on cube.
First run on the first prototype.
- i try on single customize marker , and its works , down here the screenshots
Second run on the first prototype
- i try on multiple customize marker , but its not the 3D but only tested on cube.
Monday, November 8, 2010
FLAR Marker
Tuesday, November 2, 2010
Magic Book Layout
3D Planets
Here is the progress that i've been made , it's modelling the content ( planets ) , the progress shown by screen shots that i've taken.
Venus
Uranus
Pluto
Neptune
Moon
Mars
Jupiter
Earth
Mercury
Venus
Uranus
Pluto
Neptune
Moon
Mars
Jupiter
Earth
Mercury
Subscribe to:
Posts (Atom)