transmote speaks…

design + art + code
  • portfolio
  • rss
  • Home
  • About
  • FLARManager: Augmented Reality in Flash
    • FLARManager intro
    • FLARManager documentation
    • Inside FLARManager
      • Inside FLARManager: Getting Started
      • Inside FLARManager: 2D Marker Tracking
      • Inside FLARManager: Basic Augmented Reality
      • Inside FLARManager: Loading Collada Models
      • Inside FLARManager: Customization
      • Inside FLARManager: FLARManager Miscellany
  • Contact

Inside FLARManager: Loading Collada Models

<– Basic Augmented Reality | Customization –>
 
“Proto is so cute. I want one!”

well, here’s how you do it.

This tutorial will run you through the basics of getting an augmented reality application with a Collada model up and running. This tutorial is almost identical to the basic augmented reality tutorial. You might want to try that one first, or even the 2D tutorial. Or, you might just want to dive right in.

 

FLARManager Tutorial: Augmented Reality with Collada models

Download source for this tutorial here:
FLARManagerTutorial_Collada
and place it in the root of the /src/ FLARManager folder.
Print out any of the ‘pattNNN.png’ markers in this folder to use with the tutorial.
 
 
This tutorial will demonstrate how to draw an animated model wherever FLARToolkit sees a marker. (Big thanks to Tom Tallian for the Scout model!) We’ll start with just one model for now; things get more complex when you want to support multiple models tied to multiple markers.

First, we create a FLARManager instance, passing in the path to an external xml configuration file. For now, we’ll use flarConfig.xml (located in the /resources/ folder in the FLARManager download).
this.flarManager = new FLARManager("../resources/flar/flarConfig.xml");

Once you’re comfortable with the basics of FLARManager, you can edit this config file, or create your own, as you see fit. More information on configuration options lives here.

We want to see the video capture, so let’s add it to the stage. FLARManager creates a default video source all ready to go, though the source can also be modified via the configuration file.
this.addChild(Sprite(this.flarManager.flarSource));

FLARManager uses an event model to notify any interested parties of newly-detected markers, changes in already-detected markers, and marker removal. We add FLARMarkerEvent handlers to respond to these changes.

this.flarManager.addEventListener(FLARMarkerEvent.MARKER_ADDED, this.onMarkerAdded);
this.flarManager.addEventListener(FLARMarkerEvent.MARKER_UPDATED, this.onMarkerUpdated);
this.flarManager.addEventListener(FLARMarkerEvent.MARKER_REMOVED, this.onMarkerRemoved);

We’ll write our event handlers in just a a bit. First, we wait for FLARManager to initialize before setting up the Papervision3D environment.

this.flarManager.addEventListener(Event.INIT, this.onFlarManagerInited);

 

Setting up Papervision3D

once FLARManager has finished initializing, we can set up the Papervision3D environment:

private function onFlarManagerInited (evt:Event) :void {
    this.flarManager.removeEventListener(Event.INIT, this.onFlarManagerInited);
 
    this.scene3D = new Scene3D();
 
    // initialize FLARCamera3D with parsed camera parameters.
    this.camera3D = new FLARCamera3D(this.flarManager.cameraParams);
 
    this.viewport3D = new Viewport3D(this.stage.stageWidth, this.stage.stageHeight);
    this.addChild(this.viewport3D);
 
    // flip display to match mirrored source
    this.viewport3D.x = this.stage.stageWidth;
    this.viewport3D.scaleX = -1;
 
    this.renderEngine = new LazyRenderEngine(this.scene3D, this.camera3D, this.viewport3D);
 
    this.pointLight3D = new PointLight3D();
    this.pointLight3D.x = 1000;
    this.pointLight3D.y = 1000;
    this.pointLight3D.z = -1000;
 
    this.addEventListener(Event.ENTER_FRAME, this.onEnterFrame);

Papervision has to re-render the scene every frame, so we add an ENTER_FRAME event handler in which we’ll do that. (We’ll get to that part in a sec.)

 

FLARToolkit camera parameters

This section is extra credit, but thought you might want to know about that FLARCamera3D line…

FLARToolkit compensates for distortion caused by the camera lens by referring to an external camera parameters file. In the FLARToolkit download, this is named ‘camera_para.dat’; in FLARManager, the file is named ‘FLARCameraParams.dat’. FLARToolkit creates a special FLARCamera3D object (that subclasses Papervision3D’s Camera3D) that incorporates this correction into Papervision3D’s display.

FLARCamera3D requires the information from the camera parameters file, but FLARManager cannot provide this until it has loaded and parsed this file. Therefore, we wait to initialize the Papervision3D environment until after FLARManager has initialized. Once there, we pass the parsed camera parameters data (stored in a FLARParam instance) to the new FLARCamera3D.

 

Create the Model

Let’s set up a single DAE instance that we’ll map to the detected marker. The DAE class, in the ASCollada library, provides a simple framework for loading and displaying Collada models in Flash applications.

// load the model.
// (this model has to be scaled and rotated to fit the marker; every model is different.)
var model:DAE = new DAE(true, “model”, true);
model.load(”../resources/assets/scout.dae”);
model.rotationX = 90;
model.rotationZ = 90;
model.scale = 0.5;

// create a container for the cube, that will accept matrix transformations.
this.modelContainer = new DisplayObject3D();
this.modelContainer.addChild(model);
this.modelContainer.visible = false;
this.scene3D.addChild(this.modelContainer);

    var model:DAE = new DAE(true, "model", true);
    model.load("../resources/assets/scout.dae");
    model.rotationX = 90;
    model.rotationZ = 90;
    model.scale = 0.5;
 
    // create a container for the model, that will accept matrix transformations.
    this.modelContainer = new DisplayObject3D();
    this.modelContainer.addChild(model);
    this.modelContainer.visible = false;
    this.scene3D.addChild(this.modelContainer);

We place the DAE inside of a DisplayObject3D so that we can position the DAE as needed to match the scene. This particular model needs to be rotated and scaled to align with the marker. If we applied the transformation matrix directly to the DAE instance, the rotation and scale would be overwritten, and the model would not display correctly.

 

Responding to FLARMarkerEvents

Now that FLARManager and Papervision3D are both set up, we can make the two work together by drawing Papervision3D objects when handling FLARMarkerEvents coming from FLARManager.

private function onMarkerAdded (evt:FLARMarkerEvent) :void {
    this.modelContainer.visible = true;
    this.activeMarker = evt.marker;
}
 
private function onMarkerRemoved (evt:FLARMarkerEvent) :void {
    this.modelContainer.visible = false;
    this.activeMarker = null;
}

For the purposes of this tutorial, we’re simply toggling the visibility of the model as a marker is added and removed from the camera’s view. We’re also keeping track of the active FLARMarker, from which we’ll extract and apply the transformation matrix that makes the model appear to be tethered to the marker.

For more on FLARMarkerEvents, see the 2D tutorial.

 

Updating the Model

As mentioned earlier, Papervision has to re-render the scene every frame. We’ll take advantage of this opportunity to apply the latest transformation matrix to the model, to make it look like it’s Augmenting our Reality.

private function onEnterFrame (evt:Event) :void {
    this.modelContainer.transform = FLARPVGeomUtils.convertFLARMatrixToPVMatrix(this.activeMarker.transformMatrix);
    this.renderEngine.render();
}

Note that the FLARMarker instance we’re tracking as this.activeMarker will be updating itself continuously; FLARManager handles this for us. We could listen for changes as MARKER_UPDATED events, but since we have to render the Papervision scene every frame, we can just grab the updated information from this.activeMarker while we’re at it.

You might also notice that long, ugly method call, FLARPVGeomUtils.convertFLARMatrixToPVMatrix. (Unfortunately at times like this, I’m a firm believer in self-commenting code.) FLARToolkit uses a different coordinate system than Papervision (and Flash 3D, and Away3D, and Sandy, and Alternativa), so we have to convert FLARToolkit’s transformation matrix into numbers that make sense to Papervision before applying the matrix to the model. Coincidentally, FLARPVGeomUtils has just the method for us!

That should take care of it — you should now see a red-shirted fella perched gently on the marker in your hand!

 
To handle multiple models and multiple markers, we have to be smarter about managing all the DisplayObject3D instances and active FLARMarker instances. One way to do this (though with simple cubes, not Collada models) is laid out in this example:
FLARManagerExample_PV3D

Note that this gets fairly sticky fairly quickly, as models take much longer to load than simple cubes, and also consume more processing power to animate. A good multi-model application will use low-poly-count models, load each model on-demand, and be sure not to load models more than once per session.

Also, FLARManager supports arbitrary aspect ratios. No need to stick with 4:3! Here’s a 16:9 example, if you want to get all cinematic:
FLARManagerExample_PV3D_Wide
 
 
<– Basic Augmented Reality | Customization –>



Comments rss
Comments rss
Trackback
Trackback

61 responses

[...] Inside FLARManager: Loading Collada Models [...]

transmote speaks… » FLARManager v0.5 (for FLARToolkit) | 2009/07/18 | 6:31 pm

[...] Inside FLARManager: Loading Collada Models [...]

For some reason the source code download is giving 404

Nathan Broadbent | 2009/07/22 | 3:11 am

For some reason the source code download is giving 404 error. Please could you rectify.

oops. fixed.

ericsoco | 2009/07/22 | 9:15 am

oops. fixed.

FLARManagerExample_PV3D with 404 error too.

olavolins | 2009/08/03 | 1:02 pm

FLARManagerExample_PV3D with 404 error too.

@olavolins -- sorry, what is the problem you're having?

ericsoco | 2009/08/03 | 1:26 pm

@olavolins — sorry, what is the problem you’re having? i don’t understand from this comment.

the link "FLARManagerExample_PV3D" with erro. Because I have a problem, I

olavolins | 2009/08/05 | 11:58 am

the link “FLARManagerExample_PV3D” with erro.
Because I have a problem, I cannot put many collada models instead of the cubes. Do you have a example for this?

@olavolins -- thanks for catching this. moved the example

ericsoco | 2009/08/05 | 3:44 pm

@olavolins — thanks for catching this. moved the example files around but neglected to update the links. fixed.

Hi, I am having strange problem with basically every AR application

AdamH | 2009/08/23 | 9:10 am

Hi,
I am having strange problem with basically every AR application created with flarmanager.
I can import a collada model with animation and textures and it works perfectly.
I am creating my appz with no problem by clicking on Run application. My html and swf object is stored in bin-debug and it works fine. But If i will move those files to different location, it will not work at all. I am not getting the picture from webcamera (camera is allowed in swf file in browser).
So I tried “Export release build”, that will export everything to folder bin-release, but swf file is smaller immediately and there is not possible to see any picture from camera at all.
I am bit confused from that. I would like to upload my AR test online, but it just do not work.
I am sorry for my probably lame question – I am not a programmer, I am 3d designer.
Any thoughts how I can sort that out? Thanks in advance for any help

add previous post> I am using W7, IE7, Firefox 3.5

AdamH | 2009/08/23 | 9:11 am

add previous post> I am using W7, IE7, Firefox 3.5 and FP10+ Flex 3

@AdamH: this is not really a FLARManager issue, it's a

ericsoco | 2009/08/23 | 4:52 pm

@AdamH: this is not really a FLARManager issue, it’s a more general issue than that. i suggest you start with more basic tutorials on building flash projects, from a site like flashkit or ultrashock or kirupa. one possibility, however, is that you’re getting a sandbox error when trying to load the config file from outside of the Flex Builder debugger. go to this site:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
and make sure the path you’re running your swf/html file from is included in the list. if it’s not, add it.

thank you very much for help. will look at it.

AdamH | 2009/08/24 | 2:14 am

thank you very much for help. will look at it.

To be honest, I took a look on the sites

AdamH | 2009/08/24 | 3:36 am

To be honest, I took a look on the sites you suggested but it is really hard to find information I particulary need.
I used to do some basic animations in flash few years back, but never application.
The sandbox error is sorted out very quickly thru settings of Flash Manager. but that solves problem only for me, not for the others. If I will publish my files online no one can see them.
It is last issue which I have.
I can create 3d models, export them to .dae, sort out texture problems, run it locally, but still I do not know how I can publish it on the internet.
Can you please give me another hint?
I am sorry for probably stupid question, but I really do not want to get into as3/flash/flex problematique > I would like to present my 3d low poly models easily and Flart with FlarManager looks like good way to me.

problem solved... Yesterday at night I forgot to download debug

AdamH | 2009/08/24 | 5:36 am

problem solved… Yesterday at night I forgot to download debug version of flash player, so my swf file was missing one file on server side. Sorry for stupid questions. Error was between chair and keyboard:)

I tried to replace the scout model with the crystal

Kamal | 2009/09/05 | 8:42 pm

I tried to replace the scout model with the crystal example that comes with blender. I exported the file from blender in dae format. But it did not work. Do I have to change the code also.

@kamal -- exporting models as colladas is a painful, trial-and-error

ericsoco | 2009/09/06 | 12:19 am

@kamal — exporting models as colladas is a painful, trial-and-error process, and one that i know little about. i have two suggestions for you: first, download the latest version of FLARManager from SVN; it includes the latest version of Papervision3D, and i understand it handles colladas better. second, if that doesn’t work, try posting to either the FLARToolkit or Papervision forums. people there should be of more help. good luck…

CAMERA DO NOT ACTIVATE Hi Im new to PV3D and AR,

inquisitive | 2009/09/12 | 12:23 pm

CAMERA DO NOT ACTIVATE

Hi Im new to PV3D and AR, i tried this tutorial and follow through religiously however my usb camera do not seem to be activated. Any any idea why? must a getcamera method be passed to switch it on and start detecting?

@inquisitive -- please try downloading the latest source from SVN.

ericsoco | 2009/09/14 | 11:29 am

@inquisitive — please try downloading the latest source from SVN. i recently fixed some problems with camera detection. you can also try manually specifying a camera, with FLARCameraSource.cameraIndex. for example:


var flarManager:FLARManager = new FLARManager();
FLARCameraSource(this.flarManager.flarSource).cameraIndex = 2;

hi,i have a problem with exporting. if i run my

donnid | 2009/09/27 | 1:51 pm

hi,i have a problem with exporting. if i run my swf file in the bin-realease folder i always become the error

Error: Error #2032: Stream-Fehler. URL: file:///C|/Users/Donni/Desktop/FlarManagere/deploy/FLARManager%5Fv05/bin%2Drelease/resources/flar/flarConfig.xml
at com.transmote.flar::FLARManager/onFlarConfigLoadError()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

and if i run with IE i become just i white screen. i realy tried everything, but it doesn’t work :(
please i need help. and sorry for my english

@donnid -- your flarConfig.xml file is in the wrong location.

ericsoco | 2009/09/27 | 7:55 pm

@donnid — your flarConfig.xml file is in the wrong location. either change the path parameter where you instantiate FLARManager, or move the file.

hi, when i load my model in

octagono | 2009/10/15 | 4:02 pm

hi, when i load my model in to my project, dont match wth my marker.
the model is far away from the marker.

any help ??

You mentioned that multiple collada models can be used instead

Steven | 2009/10/21 | 7:35 am

You mentioned that multiple collada models can be used instead of the simple cubes, can you give me a little hint on how this can be done? For example you would use this line of code: return new FlatShadeMaterial(this.pointLight3D, 0xCCCCCC, 0×666666); to change the color/material of the cube but instead I want to grab a collada model. Any hint on how to do this would be great help.

Thank you

@steven -- take a look at FLARManagerTutorial_Collada for an example

ericsoco | 2009/10/21 | 10:20 am

@steven — take a look at FLARManagerTutorial_Collada for an example of loading a collada file. basic strategy is to create a list of collada files, and display them when their corresponding patterns are detected.

*** CAMERA FIX *** to those who were having camera selection

ericsoco | 2009/10/30 | 4:18 pm

*** CAMERA FIX ***
to those who were having camera selection issues, please download the latest from SVN. i believe it’s fixed now. if so, i’ll roll it out as a minor version.

I am trying the code in Flex 3 and keep

Paul | 2009/12/03 | 11:58 am

I am trying the code in Flex 3 and keep getting the followin error, can you help with what is causing the problem

The error is for all 3 functions

private function onMarkerAdded (evt:FLARMarkerEvent) :void {
trace(”["+evt.marker.patternId+"] added”);
this.modelContainer.visible = true;
this.activeMarker = evt.marker;
}

Error: 1046: Type was not found or was not a compile-time constant: FLARMarkerEvent.

@paul, you must have removed your import statement for FLARMarkerEvent.

ericsoco | 2009/12/03 | 1:24 pm

@paul, you must have removed your import statement for FLARMarkerEvent.

I have this at the top of the page, didnt

Paul | 2009/12/03 | 2:15 pm

I have this at the top of the page, didnt remove anything.

import com.transmote.flar.FLARManager;
import com.transmote.flar.marker.FLARMarker;
import com.transmote.flar.marker.FLARMarkerEvent;
import com.transmote.flar.utils.geom.FLARPVGeomUtils;

does it matter what version of flex? the current SDK is 3.2

yeah, i dunno. maybe try cleaning your project?

ericsoco | 2009/12/03 | 3:14 pm

yeah, i dunno. maybe try cleaning your project? Project > Clean…

Hi, Thanks for the tutorial. However, I have some problem regarding

Benson | 2009/12/06 | 8:31 pm

Hi,

Thanks for the tutorial. However, I have some problem regarding the Dae. I was able to load the model however it only show wireframe.

Anyone could what should I do. It seems like everyone is facing the same problem but no real solution to it.

Hi Eric! Sorry for my poor attempt to post a comment

Laanes | 2009/12/08 | 8:52 pm

Hi Eric!

Sorry for my poor attempt to post a comment before.

I followed the instructions –

Download source for this tutorial here:
FLARManagerTutorial_Collada
and place it in the root of the /src/ FLARManager folder.
Print out any of the ‘pattNNN.png’ markers in this folder to use with the tutorial.

Well, the browser opens nicely and no errors are shown but there is nothing being displayed. Just a blank browser page. Can you help me out ?

@lannes -- you probably have some incorrect paths to files

ericsoco | 2009/12/08 | 11:22 pm

@lannes — you probably have some incorrect paths to files needed by FLARToolkit/Manager. try opening the Activity window in Safari or use LiveHTTPHeaders for Firefox to see what’s not getting loaded properly.

Hi Eric ! Thank You for replying to my comment ! I

Laanes | 2009/12/09 | 6:44 pm

Hi Eric !

Thank You for replying to my comment !

I installed the LiveHTTPHeaders plugin for firefox and launched it but it is empty.

Here’s a screen grab:

http://www.UploadScreenshot.com/image/44764/4906998

It is blank with both Firefox and IE.

I reinstalled Flarmanager and Flex Builder but still the same.

Could it be a collision between flash player 9 and 10 ? I uninstalled flash player 9 and installed flash player 10 and the debugger for it.

After that the program still told me that the current version of flash player is not able to debug my application and that i should download a debugger for Flash Player 9. Then after downloading and reinstalling the debugger again for FP10 the error was gone but now there is a blank page without any errors.

I tried to clean the project, nothing happened.

Can you help me with this problem ?

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|%2FUsers%2FAare%2FDocuments%2FFlex%20Builder%203%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=9999

Laanes | 2009/12/12 | 8:46 pm

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|%2FUsers%2FAare%2FDocuments%2FFlex%20Builder%203%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=9999 cannot load data from localhost:9999.
at ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:127]

How would i fix that ? :O

@laanes: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

ericsoco | 2009/12/13 | 11:19 am

@laanes:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

hi eric great tuto...!! but i got a problem... i can' t

Goofy | 2009/12/17 | 6:51 pm

hi eric

great tuto…!!

but i got a problem…
i can’ t use 2 markers with 2 models in….
any tip?

plis helpme obi eric kenobi… ^^

greetings…

@goofy -- i think this came up on the flartoolkit

ericsoco | 2009/12/17 | 8:33 pm

@goofy — i think this came up on the flartoolkit forum, i suggest you dig thru the archives there. if you only have two models, i suggest you preload both and just set the visibility of each based on the patternId in your ADDED and REMOVED handlers.

thanks eric if the models are collada DAE? what is the proces? if

Goofy | 2009/12/17 | 9:24 pm

thanks eric

if the models are collada DAE?

what is the proces?

if the models are more than 2?

thanks for answer me

I have changed the settings so it should allow the

laanes | 2009/12/26 | 7:29 am

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html“>

I have changed the settings so it should allow the swf to load up in any browser but i have still a blank screen.

my Flash Player version: WIN 10,0,42,34
Debug player: Yes
Operating System: Windows 7
local file I/O Enabled: Yes

I would also like to provide you with a few

laanes | 2009/12/26 | 7:50 am

I would also like to provide you with a few screengrabs, please have just a quick look, maybe you can see something i can not.

I really really hope you take a moment to help me with this problem..

@laanes, chances are you have some files in the wrong

ericsoco | 2009/12/26 | 11:57 am

@laanes, chances are you have some files in the wrong path. i suggest you load your application in firefox and take a look at the requests happening via the LiveHTTPRequest plugin, or load with safari and look at the Activity window, to see if there are any failed loads on external files needed by the application, like FLARCameraParams.dat or any of the .pat pattern files.

Hi im curently working on Flarmanger for the first time.

BearyBBBear | 2010/01/05 | 2:24 am

Hi im curently working on Flarmanger for the first time. Now,im having a problem with pre-animated dae files
i believe that the animation should start automaticly because of this line right?

” mod1:DAE = new DAE( true,”mod1″,true); ”

but it don’t seems to work with my dae files // is there is any way to make it work?
and which example should i see if i want to have multi-maker map to diferent 3d model?

//sorry for my poor english//

@BearyBBBear -- i have no idea. i don't know

ericsoco | 2010/01/05 | 12:15 pm

@BearyBBBear — i have no idea. i don’t know much about papervision. try their forum.

Thanks a lot i will try and thank you for

BearyBBBear | 2010/01/06 | 6:06 am

Thanks a lot i will try and thank you for the tutorial its really help me

Why the model does not stand over own marker only

tof | 2010/01/06 | 9:50 pm

Why the model does not stand over own marker only ? // if I show more than 1 marker to webcam.

Oops! I understand already, this example does not check

tof | 2010/01/06 | 10:16 pm

Oops! I understand already, this example does not check pattern id so any pattern in xml config file can be used.
//sorry about my confuse. you can delete my comments.

Hey man, great tool! I've configured the collada example so

thomas | 2010/01/11 | 5:26 pm

Hey man, great tool!

I’ve configured the collada example so i can display multiple models with multiple markers. But i have one problem. The models appear to be too far from the markers themselves. Should i just change X, Y, Z properties? Or is there a better solution?

Also, I’ve noticed i can set a zillion options (there’s screenX, sceneX, x, moveDown, …) and i don’t have a clue which is the right one the use.

you could put each model into a container sprite and

ericsoco | 2010/01/11 | 6:45 pm

you could put each model into a container sprite and apply the matrix transformations to the container, and then move your model around within the container sprite to get it where you want it. this is exactly what i did with this example — see the lines:

// (this model has to be scaled and rotated to fit the marker; every model is different.)
…
model.rotationX = 90;
model.rotationZ = 90;
model.scale = 0.5;

First of all, I want to thank you for taking

cincin | 2010/01/31 | 2:56 am

First of all, I want to thank you for taking the effort for this great package and tutorial!

I can implement the dae file and it shows up perfectly. The dae model follows the marker if I move it in up/down motion. Th only problem I can’t figure out is when I move the marker to the right of the screen, the dae model moves to the left of the screen. So the dae model does not follow the marker horizontally, it moves in the opposite direction of the marker.

Any thoughts or help on this please?

This problem troubled me for a few days, but right

cincin | 2010/01/31 | 3:00 am

This problem troubled me for a few days, but right after I posted the comment above, the answer just popped into my mind!

This only happens if you set mirrorDisplay=”false” in flarConfig.xml. So all I had to do is to set mirrorDisplay=”true”, and the problem disappears!

Thanks again for the great tool!!

Hi Eric ! I am still having a blank screen loading

laanes | 2010/01/31 | 7:49 pm

Hi Eric !

I am still having a blank screen loading up when trying to load FlarmanagerExampleLauncher.

I changed the settings in flashplayer settings manager. It should allow to load up everything coming from the FlarManager folder.

I hope you have a moment to look at the two screengrabs i made.

This is the Safary Activity window showing what has been loaded (or has not ?)

This is the folder from where FlarManagerExampleLauncher loads the file.

Im Sorry ! The links did not show up. Let me

laanes | 2010/01/31 | 7:53 pm

Im Sorry !

The links did not show up. Let me try again.

This is the Safary Activity window showing what has been loaded (or has not ?)

This is the folder from where FlarManagerExampleLauncher loads the file.

Im Sorry ! The links did not show up. Let me

laanes | 2010/01/31 | 7:55 pm

Im Sorry !

The links did not show up. Let me try again.

This is the Safary Activity window showing what has been loaded (or has not ?)

This is the folder from where FlarManagerExampleLauncher loads the file.

I just give you the links without tags, because i

laanes | 2010/01/31 | 7:59 pm

I just give you the links without tags, because i dont know how to use them.

I would like to clean up the mess i created but there is no way to edit my posts. Sorry for that.

http://img1.UploadScreenshot.com/images/orig/2/3101434488-orig.jpg

http://img1.UploadScreenshot.com/images/orig/2/310145589-orig.jpg

Regards,
laanes

Hi everybody! Could anyone please tell me that how should i

Mahesh | 2010/02/07 | 10:23 pm

Hi everybody!

Could anyone please tell me that how should i place a model(3D Display object which does not associated with any marker) right after the last marker ?. I have tried x,y and z coordinates of last marker to map my model next to it but it does not help me. Please give me a solution as soon as possible. I have been dying for it last two days.

Note : I am using flar manager for multiple marker.

Thanks for the clear easy break down of everything. Curious

Micah | 2010/02/18 | 3:24 pm

Thanks for the clear easy break down of everything.

Curious if you have any resource links for loading in animated 3D models. I read so much about the problems between exporting animated collada files from Blender, have you read anything or can you share anything? Better applications to use than Blender? Anything helps. :)

Thanks again.

@micah, your best bet is the forum for the 3D

ericsoco | 2010/02/18 | 3:40 pm

@micah, your best bet is the forum for the 3D framework you’re using.

Thanks for the fast response. Seems like Papervision seems to

Micah | 2010/02/18 | 3:42 pm

Thanks for the fast response. Seems like Papervision seems to be standard, but would you recommend any over any else?

@thomas - on 2010/01/11 you posted that you managed to

Wietse | 2010/02/25 | 6:40 pm

@thomas – on 2010/01/11 you posted that you managed to display multiple models with multiple marker’s. I was wondering if you can help me in the right direction here or if you can post (some) of your code.

I’m new to this and I’m having a very hard time figuring out how to do this.

Any help would be greatly appreciated!

Thank you in advance.

@ericsoco - Hi Eric. Great work with this tutorial. I

Wietse | 2010/02/26 | 9:40 pm

@ericsoco – Hi Eric. Great work with this tutorial. I can really understand how it all works thanks to your descriptions. I just have one question, you mentioned at the top that things will get more complicated when using multiple markers and multiple models. Do you have a tutorial for that somewhere?
Would love to create that but it is very hard to figure out how.

Thanks so much.

@wietse -- nope, sorry. best i can offer is

ericsoco | 2010/02/27 | 12:44 pm

@wietse — nope, sorry. best i can offer is FLARManagerExample_3D, which creates a different-colored cube for each pattern. the trick with multiple models ends up being about loading/managing your assets. search the FLARToolkit forum for more answers; this thread comes up often.

@wietse: it's not that. Just follow the tutorial with the

thomas | 2010/03/02 | 1:52 pm

@wietse: it’s not that. Just follow the tutorial with the multiple colored cubes and combine it whith this one (about loading collada models).

In the colored cubes tutorial, you’ll notice that there’s a function that retrieves a color from an id, and then puts it in a materialslist. If you just change that function into loading collada models, instead of returning a color… Well then there you have it, multiple markers with multiple models. Here’s what I mean in code:

private function getModelByPatternId(patternId:int):DAE
{
var model:DAE=new DAE(true, “model”);

switch (patternId)
{
case 0:
model.load(”model.dae”);
return model;
case 1:
model.load(”model2.dae”);
return model;
}
}

get it?

Hi Thomas, Where do I post this code? If i post

Lucas | 2010/03/09 | 11:21 am

Hi Thomas,

Where do I post this code?

If i post into SimpleCubes_PV3d.as, and use this example, i get this error: Id 1046: Type was not found or was not a compile-time constant: DAE. FLARManager/src/examples/support SimpleCubes_PV3D.as line 141

In line 141: private function getModelByPatternId(patternId:int) :D AE {

Thaks in advance. And thanks ericsoso for the answers and for the FLARManager.

Sorry about my english…

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Additional comments powered by BackType

Recent Posts

  • elastotron: visage @ YBCA/TVOT weds mar 3
  • FLARManager @ FITC Toronto 2010
  • true fullscreen in AIR on OSX
  • FLAR presentation @ ARDevCamp 2009.dec.05
  • FLARManager v0.61 (augmented reality in Flash)

Tags

3d actionscript Add new tag AR ARDevCamp as3 augmented reality camera Capabilities computer vision connections culture digital elastic event handler exhibit exploratorium fiducial flar flarmanager flartoolkit flash flash player forum garbage collection generative grid interactive Keyboard marker memory mesh mirror notes papervision presentation reflection slides sputnik theory to see tracking video video mirror webcam


rss Comments rss design by jide