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 についてのいろいろはこちらで。
Comments (19)
速度向上ですが、FPU持ってる場合は、固定小数点化するとかえって遅くなるみたいです。(Javaだと倍遅くなった)
折角移植が終わったところでこんなこと言うと撃ち殺されそうですが、今度公開する2.1に搭載してる計算省略版のコードを使えば、3割くらい速くなると思います。
(NyARToolKitCSのモバイル版用に開発したコードで、誤差と引き換えに計算量を半分以下に減らしたやつです。)
また解析させてしまうのもアレなので、差分だけ抽出して、お知らせします。
どーもどーも。
そーか固定小数点計算ってそうなのねー。
2.1 の件、了解すー、すごいなー、まだ速くできるんだなあ。(撃ち殺したりしないですww)
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?
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...
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.
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?
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?
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?
Limitations of current version of Papervision3D, You must modify line 528 of org.papervision3d.cameras.Camera3D to "protected var _projection : Matrix3D;".
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.
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
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²
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...
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
Do you have a classes package that deals with animation ?
http:www.henkvisser.nl/Assets/AR
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!