Saqoosha.net

  1. About
  2. Archives
  3. Search
  4. Say
Language:

FLARToolKit 2.0 released!

NyARToolKit 2.0.0 リリースから約 1 ヶ月。よーやっとでけた。ほとんどおんなじ作業を 2 回やるというのはなかなかモチベーションがあがらないわけでw 結果的には 10% 程度のスピードアップ(ミーのマシンで 30fps → 33fps ぐらい)は実現できてるみたいです。まあ今回も Java → AS3 コンバートしただけなんだけど。やっぱなあ AS3 おせえなあ。Flash Player 10 専用になるけど Vector とか ShaderJob 使うとか、固定小数点で計算してる? NyARTooskitCS を移植するとかすればもっと速くなるかなあ。あんましやる気ないけど。

FLARToolKit 2.0 のソースコード は Spark Project のリポジトリからチェックアウトしてくださいな。

$ svn co http://www.libspark.org/svn/as3/FLARToolKit/trunk FLARToolKit

いちおう現時点でのスナップショットを zip で固めたやつ、ここ置いときますね。

英語での問い合わせが結構あったりするので、英語でも書いてみる。けど、自信ないので誰か Lang-8 で添削してください。。

追記(2008/12/5):フォーラムできました。FLARToolKit についてのいろいろはこちらで。

17 Responses to “FLARToolKit 2.0 released!”

  1. A虎@ Says:

    こにちはー。移植ありがとうございました!

    速度向上ですが、FPU持ってる場合は、固定小数点化するとかえって遅くなるみたいです。(Javaだと倍遅くなった)

    折角移植が終わったところでこんなこと言うと撃ち殺されそうですが、今度公開する2.1に搭載してる計算省略版のコードを使えば、3割くらい速くなると思います。
    (NyARToolKitCSのモバイル版用に開発したコードで、誤差と引き換えに計算量を半分以下に減らしたやつです。)

    また解析させてしまうのもアレなので、差分だけ抽出して、お知らせします。

  2. Saqoosha Says:

    > A虎@ さん
    どーもどーも。
    そーか固定小数点計算ってそうなのねー。
    2.1 の件、了解すー、すごいなー、まだ速くできるんだなあ。(撃ち殺したりしないですww)

  3. psilos Says:

    Hi again,

    Thanks once more for the library and congrats for the good job.

    I was trying to use the is_continue and the transMatContinue and it is much smoother with it, but I think it has a bug where occasionally it rotates the scene for 90 degrees.

    I cannot find where is the problem, but can u check if this is the case or not?

  4. Saqoosha Says:

    Hi psilos, thank you for your report.

    I cannot understand all of algorithm of ARToolKit. (Just ported to AS3.) I’ll try to review the code, but I don’t know whether I can fix or not…

  5. psilos Says:

    Hi Saqoosha,

    thanks for the quick reply. My guess it that it would be really handy to have the continueMode, since otherwise it causes the 3DModel in the scene to flicker if you try to keep it still.

  6. Mikko Says:

    Hey Saqoosha,

    I’ve been trying to check out your code now that I’ve had some time to play around with it.

    I maybe missing quite a bit cause I can’t follow the comments but I was wondering what are the Pattern, and Camera files?

    I have no clue what the camera file is (clearly some binary data). But by looking at the pattern file it looks like the pattern file is the pattern FLARToolkit is trying to find.

    I was just looking at your example and you’re looking for a 16×16 pattern but in the pattern file there are 3 sets of 16×48. At first I thought you had the 3 colors in one pattern and that’s why its 48, but why then 3 patterns?

  7. Pablo Cabana Says:

    Amazing work Saqoosha!

    I am trying de play around with it but I´m getting a strange error:

    “1119: Access of possibly undefined property _projection through a reference with static type org.libspark.flartoolkit.pv3d:FLARCamera3D”

    Any idea?

  8. Saqoosha Says:

    Hi Mikko,

    Camera file has correction data for camera lens distortion.
    It’s made by calib_camera2 program included in original ARToolKit.
    I cannot understand the detail of correction data.

    Pattern file is almost what you guess.
    Pattern data is consists of 3 colors and 4 direction.
    16 wide x 16 high x 3 colors x 4 direction.

    got it?

  9. Saqoosha Says:

    Hi Pablo,

    Limitations of current version of Papervision3D, You must modify line 528 of org.papervision3d.cameras.Camera3D to “protected var _projection : Matrix3D;”.

  10. Pablo Cabana Says:

    Thanks Sagoosha!

  11. Mikko Says:

    Thanks for the answer I’ll have to look at this program.

  12. FlarToolkit/Flash Augmented RealityGetting Started | Mikko Haapoja's Blog Says:

    [...] ra parameter file is a binary file that is loaded in. I had no idea at first what this file was about, but I went on Saqoosha’s blog and asked him what this is all about and he sais it’s a file that comes from a program that comes with AR [...]

  13. Rafael Says:

    Hey Saqoosha how are you?

    First thanks for all the help and information! I’m trying to make an Augmented reality using the kit, but as i saw on the “ge smartgrid” I need to have 3 sets of animation, one for the oppening (when the pattern is detected), another animation to stay looping, and one animation to make the “closure” when the users takes out the paper from the camera….
    I dont know if i have to make the model with all the animation, and use some code to read only the frames i need at a time….. please i really need your help.

  14. muqeem Says:

    Hi,
    Would you please tell me the easiest way to make AR, I have been using a commercial software but it expired now, see;

    http://www.youtube.com/watch?v=CQyGC06EO3k

    Please help, I am not a coder and know a little scripting and trying Qaurts too for AR,
    thanks,
    Muqeem

  15. phihochzwei Says:

    Hey ho Saqoosha,

    I got a small problem, and maybe you can help me with it.
    Is there some way to create the pattern-files other than drawing them, printing them out and holding them in front of a camera ? Where planning to publish them on a regular basis with a higher number, which would make it a little annoying to create. Any idea?

    Thanks in Advance,

    Kind regards ,
    phi²

  16. CVEGA Says:

    HI Just wondering if you van help me I’m trying to set the camera on the browser but i get this error “Severity and Description Path Resource Location Creation Time Id
    A file found in a source-path ‘flartdemo’ must have the same name as the class definition inside the file ‘FLARTdemo’. flartdemo/src flartdemo.as Unknown 1242568079672 94″
    I hope you can help me I think I have my code well written but I still can not find any error…

  17. Sudhir Says:

    Hi Saqoosha,

    Thanks for the AR presentation. It is really helpful.
    I have created something similar: http://www.youtube.com/watch?v=LcGKjwcCr7s

    http://www.creativesid.com/projects/ar/

    Now I am trying to embed a DAE file instead of a basic cube. Do you have any idea how to achieve that?

    Thanks,
    Sudhir

Leave a Reply



Saqoosha.net は Windows なら Internet Explorer 7, Firefox 3, Safari 3, Mac なら Firefox 3, Safari 3 でいい感じになるように作ってありますのでそれ以外のブラウザでは Saqoosha が意図しない見た目になっている可能性がありますのでよろしくです。
どうやら Flash Player の最新版がインストールされていないようです。こちらから最新版をインストールするともうちょっと素敵な Saqoosha.net を見ることができるかもしれません → Flash Player Download