论坛: 公开讨论 (Thread #30038)

What is new in NyARToolkitAndroid_v3.0? (2011-08-05 23:43 by cecilia909 #58943)

Hey guys,

I have been working on a project using NyARToolkitAndroid-2.5.2 for a couple of months. Then I got to know that a new version got released... Now I really have to make decision about whether I should switch. I basically hacked in the code and tore it up, then draw my own scene with OpenGL ES... I need to know whether there is big improvement in the detection and tracking part. Anyone can tell me this? Thank you very much!

-Cecilia

RE: What is new in NyARToolkitAndroid_v3.0? (2011-08-09 14:49 by rokubou #59051)

Hello,

NyARToolKit for Android v3.0 is an adjusting version as for NyARToolKit v3.0.
Tracking is improved a little.
Besides, it came to be able to display the md2 model by using min3d.

best,
rokubou
回复到 #58943

RE: What is new in NyARToolkitAndroid_v3.0? (2011-09-23 20:47 by ngocnv371 #59730)

since we using min3d, mean it can display 3ds model, right? but I worked around and just could make it do that right thing.
any little help for it?
I'd put my model in res\raw and textures in res\drawable, then call for parser = Parser.createParser(Parser.Type.MAX_3DS, getResources(), ..); but it didn't draw it as it should do.
回复到 #59051

RE: What is new in NyARToolkitAndroid_v3.0? (2011-09-27 18:55 by rokubou #59790)

In the present version, only md2 model is carrying out the check of operation.

We also tried 3ds model. However, model data was not displayed.
However, since md2 model was enough for us, we gave up the display of 3ds model.

If you challenge the display of 3ds, please still check first that your model data is displayed with the sample of min3d.
回复到 #59730

RE: What is new in NyARToolkitAndroid_v3.0? (2011-09-30 10:43 by atsuoigarashi #59839)

Hi,

Sorry for late.
How about this?
e.g. use monster_high.3ds in min3d instead of miku01.

diff --git src/jp/androidgroup/nyartoolkit/NyARToolkitAndroidActivity.java src/jp/androidgroup/nyartoolkit/NyARToolkitAndroidActivity.java
index 1affdfb..c1e57b2 100644
--- src/jp/androidgroup/nyartoolkit/NyARToolkitAndroidActivity.java
+++ src/jp/androidgroup/nyartoolkit/NyARToolkitAndroidActivity.java
@@ -762,10 +762,10 @@
container.addChild(animationObject3d);
animationObject3d.setFps(90);

- // miku01
+ // monster_high
Object3dContainer object3dContainer = null;
- parser = Parser.createParser(Parser.Type.OBJ,
- getResources(), "jp.androidgroup.nyartoolkit:raw/miku01_obj", true);
+ parser = Parser.createParser(Parser.Type.MAX_3DS,
+ getResources(), "jp.androidgroup.nyartoolkit:raw/monster_high", true);
parser.parse();

object3dContainer = parser.getParsedObject();
@@ -804,18 +804,6 @@
container.scale().y = 1;
container.scale().z = 1;
}
- }
-
- // miku01
- o = scene.getChildAt(2);
- container = (Object3dContainer)o;
- Object3d right_arm = container.getChildByName("right_arm");
- Object3d negi = container.getChildByName("negi");
- right_arm.rotation().x += 2.5;
- negi.rotation().x += 2.5;
- if (right_arm.rotation().x >= 100) {
- right_arm.rotation().x = 90;
- negi.rotation().x = 90;
}
}

回复到 #59790