Saqoosha

Progression3都物語 workshop in Kyoto, Osaka, Kobe

Blog

こないだやったアンケートのやつ、関西 3 都市で開催される Prognession 3 のワークショップ、の、詳細が決まったのでお知らせ。こつら。数限りがありますのでお早めに、、、とおもったら参加申し込みは 10/18(土)の AM 0:00 からでした。ATND で募集するので OpenID もってないひとはご準備を。

大阪第 1 回参加するひとで懇親会出たいってひとは懇親会まで時間もてあますだろうから裏プチてら子的なものをやろうかと思ってます。ので、まあ、そちらも来たいってな人は第 1 回狙いで。ああ、もちろん私も大阪 1 回目→裏プチてら子→懇親会コースですよ。だって Progression 3 やったことないんですもの。

FLARToolKit 2.0 released!

BlogFLARToolKit

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 についてのいろいろはこちらで。

Categories: FLARToolKit

Comments (19)

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

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

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

    また解析させてしまうのもアレなので、差分だけ抽出して、お知らせします。
  • Saqoosha
    > A虎@ さん
    どーもどーも。
    そーか固定小数点計算ってそうなのねー。
    2.1 の件、了解すー、すごいなー、まだ速くできるんだなあ。(撃ち殺したりしないですww)
  • psilos
    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?
  • Saqoosha
    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...
  • psilos
    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.
  • Mikko
    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 16x16 pattern but in the pattern file there are 3 sets of 16x48. At first I thought you had the 3 colors in one pattern and that's why its 48, but why then 3 patterns?
  • Pablo Cabana
    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?
  • Saqoosha
    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?
  • Saqoosha
    Hi Pablo,

    Limitations of current version of Papervision3D, You must modify line 528 of org.papervision3d.cameras.Camera3D to "protected var _projection : Matrix3D;".
  • Pablo Cabana
    Thanks Sagoosha!
  • Mikko
    Thanks for the answer I'll have to look at this program.
  • [...] 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 [...]
  • Rafael
    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.
  • muqeem
    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
  • phihochzwei
    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²
  • CVEGA
    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...
  • Sudhir
    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
  • Henk Visser
    Hi Saqoosha, i've been playing around with the FLAR for soem time now and i managed to input my own collada . However the next step for me would be to get animation in the scene. I've tried soem of the Papervision and AScollada stuff but had no succes yet.
    Do you have a classes package that deals with animation ?
    http:www.henkvisser.nl/Assets/AR
  • augmented
    I ditto Suhdir..
    I am no coder. I am just a 3D guy testing this out.
    If there is a surce that has collada model with bitmap texture on it,
    i could easily replace the dae- and the jpg-files with my own.
    Let me know if you find one. :)
    That would be great..
    Cheers!

移動平均いろいろ - Moving Average

Blog

20081018-Movingaverage

iPhone ぐるぐるがあんまし安定しないやつ、コメントもらったのでつっこんで調べてみたわけよ。移動平均 (Moving Average) にもいろいろあるみたいで。

んでもともと実装してたやつはどうやら指数加重移動平均 (EMA: Exponetial Moving Average) っぽい。あれですよ、Flash でよくやる動きをスムーズにするやつ、

posX = (currentX - posX) * 0.1 + posX;

みたいなの。自然と移動平均つかってたんやんっていう。

んでまあいろいろある移動平均がどーちがうねんっていうのを見るのにちょっとコードを書いてみたソースコード)わけですね。白いのが理想的なライン。そのまわりにちらばってる白いのがノイズが入ったセンサーからの値っぽいやつ。結果は見ればわかるですが、加重移動平均と指数加重移動平均ってあーんまし変わらんのね、まー、パラメータの取り方にもよるとおもうけど。どっちかつーと加重移動平均のほうが安定?みたいな。

とりあえず加重移動平均を組み込んでみるかなあ。

ローパスフィルタ系も調べてみたのだけどちーと難しくって放置。またの機会に調べるとしよう。