HOME | DD

AddestorionVayanis — ARToolKit_MMD tutorial by

Published: 2011-04-03 01:56:55 +0000 UTC; Views: 57390; Favourites: 300; Downloads: 271
Redirect to original
Description Too many posts on demonstrations and work in progress on videos of ARToolkit_MMD (Augmented Reality Toolkit MikuMikuDance), but no instruction manual on how to use it.

demonstration videos, because if a picture is a thousand words, then a video must be a novel
just miku singing secret garden www.youtube.com/watch?v=yLaPU1…
she now has friends - www.youtube.com/watch?v=6BERaG…

VMDSpectrum - addestorionvayanis.deviantart.… MMDAgent - addestorionvayanis.deviantart.…

Description:
ARToolkit is a program used to display models or images on a webcam video by detecting a marker (similar technology: facial recognition). By calculating how the marker image is deformed, the program will know how the marker is oriented in real life. Using that information, it inserts a 3D model with the right orientation into the video using the marker as the center point.
Since MikuMikuDance is a free and powerful 3D modeling software, it can be used to insert a 3d model, motion data, and wave file data stored in the usual .pmm files in augmented reality.


TUTORIAL
1. download MikuMikuDance (mine is directx9 version) from www.geocities.jp/higuchuu4/ind… [note: it will work up until v803, but not with the new v9 MMD pmm files, find a backdated version if required]

2. to download ARToolkit_MMD, first go to com.nicovideo.jp/community/co3…

3. go to this link www1.axfc.net/uploader/Sc/so/1… . Click the obvious button, then on the next screen, click the one that says in english 'download now'

4. extract the files.

5. open the ARToolkit/Data folder, then print out the .pdf named pattSample1 on a piece of paper. for best results, you want to attach it to a hard surface.

6. Back on your computer, open the ARToolkit folder, open up the .ini file named setting.

7. change the #MMDDataFolderName to where you extracted your MikuMikuDance Data folder.

8. change the PMMFileName to the path where the .pmm file you want to use is located

9. you can change the scale to get a larger or smaller scaled model.

10. save and exit the .ini file.

11. run ARToolkit_MMD.exe

12. if you have a 64 bit computer, it should be screwing up saying : msvcp71 is missing. If so, copy and paste the msvcp71 and msvcr71 .dll files in the ARToolkit folder into Windows SysWOW64 folder (not system 32). run ARToolkit_MMD.exe to confirm that its fixed.

13. a windows blackscreen appears with a window named 'Property Sheet Properties.

14. Frame rate should be as high as you can, check the flip horizontal if youre using a laptop webcam, uncheck if you somehow have your webcam attached to your head. color space, i dont really care. Output size... 640 x 480 have not been giving me problems. larger than that tends to lagg. The default 640 x 400 somehow messes some stuff up a bit

15. if you run into an error, it means some models arent loading up or you didnt change the path earlier properly. if so, open MikuMikuDance, open up that .pmm file and just delete the models it cant load.

16. if you can run it, a webcam output now appears.

17. bring your printed pattern into full view of the webcam window. The whole pattern should be visible.

18. the program detects a transformation of the pattern 'matrix' to calculate a viewing orientation.

19. the files in the .pmm file should appear, but not move just yet.

20. these buttons on your keyboard have specific functions: a - toggles opacity of the AR model. s - begins/pauses the dance routine. r - resets the dance routine

21. feel free to move the marker to different orientations to get different views of the whole thing.

22. if your .pmm file has a .wav sound file loaded, this version will play the .wav file as well, provided that its title is in a simple form (no jap, no special characters. A pure english title works best.

23. to play other .pmm files, you need to open the .ini file and change the path to where the new .pmm file you want to load is loaded.

extra info - 10/4/2011
if the webcam has trouble sensing the marker because the marker is not appearing very 'black', then open up the setting.ini file, and search for something named MarkerGrayScaleThreshold. Setting it to a high value (255 maximum number) will make your marker detectable even when its not appearing as 'black' as it should be.
if the surroundings are too black, then setting the number to a lower value will help detect the marker in lower light conditions.
Its default setting is 128.

This dance routine is modified from the pre-existing Sample(Allstar).pmm already included in MikuMikuDance. I deleted the two Dummy bone models and the entire stage.

Credits where credits are due
Animasa, m2, crypton future media - the dance routine and all .pmd models used
Project Diva Miku performing the Secret Garden
ARToolkit_MMD's creators at the abovementioned website

some random youtube vids using the same tech
Go my way miku, neru, haku - www.youtube.com/watch?v=wD6NgW…
caramelldansen - www.youtube.com/watch?v=nQxzum…
Interstellar flight with some um.... 'cool features' which i dont know how to do in MMD - www.youtube.com/watch?v=W-gBRb…

ARToolkit has been known to either NOT work or malfunction with this Rin Append XS mqdl model
mqdl.jpn.org/public/rinApXSb.z…

this LAT Rin Append model will work somewhat, but the ribbon IK bones will start going crazy once a dance routine begins. I suspect a physics problem (download via cococity's link)
cococity.deviantart.com/art/Pr…

full credits and tested models deviation: addestorionvayanis.deviantart.…


update 3/6/2011 I have edited the deviation to show something which will make your augmented reality life a lot easier.
I printed a smaller marker logo and pasted it onto a magnetic bookmark. Now its possible for me to go hands free.
top left: magnetic bookmark attached to shoulder epaulet strap.
middle left, handheld
bottom left, magnetic bookmark attached to sleeve
bottom right, handheld
Also, this works on other surfaces, such as gloves, or drawn on your hand with a permanent marker of sorts. It still needs to be drawn using the proper dimensions and ratios, and must still be straight enough for a proper detection.


update 24/7/2011 Dummy bone will load in ARToolkit_MMD, but some attachments and effects may not load or cause the program to crash. If so, deleting the faulty attachments may work.
update 20/8/2011 Mikumikueffects wont work in ARToolkit.
Also, did a video, and edited the deviation to include one cutscreen from the video. The cutscreen is from the part near the end.
www.youtube.com/watch?v=yLaPU1…

TROUBLESHOOTER updated 9th May 2014
---------------------------------------------------------------------------------------------
If you are unable to select the checkbox which allows you to flip the image (so that the image looks like a mirrored image of you), you can force the horizontal flip by opening
ARToolkitFolder>Data>WDM_camera_flipV.xml
using notepad.
You will be greeted with some lines of text blablablablabla.

Find and change the following line:

to

and then click save.

this will force all future webcam outputs from artoolkit_mmd to be horizontally flipped.  If you want it back, then just play around with the settings "true" and "false".


TROUBLESHOOTER updated 5th February 2014
-----------------------------------------------------------
The following is a list of errors which can appear, and the google translate of what they mean.
This should be able to give you a hint of what kind of problem you have.

From ARWrapper.cpp ------------------------------------------------------------------
If it stops after "Load Setting File : %sn"
"設定ファイル(setting.ini)が開けませんでした"
"設定ファイル(setting.ini)のMarkerDetectModeの値が不正です。0 or 1の値を指定してください"
"設定ファイル(setting.ini)のMarkerGrayScaleThresholdの値が不正です。0 ~ 255の値を指定してください"
"ARtoolKit : カメラデバイスファイル(*.xml)の読み込みに失敗したか、または、カメラデバイスの初期化に失敗しました"
"ARtoolKit : カメラの解像度の取得の取得に失敗しました"
"ARtoolKit : カメラパラメータファイル(*.dat)の読み込みに失敗しました"
"ARtoolKit : マーカパターンファイル(patt.*)が正常に読み込めませんでした"

"(Setting.ini) did not open configuration file"
"The value of MarkerDetectMode configuration file (setting.ini) is invalid. Please specify a value of 0 or 1"
"The value of MarkerGrayScaleThreshold configuration file (setting.ini) is invalid. Please specify a value of 0-255"
"ARtoolKit:, or failed to read camera device files (. * Xml), but failed to initialize the camera device"
": I failed to get the acquisition of resolution of camera ARtoolKit"
": I failed to read the camera parameter file (* dat.) ARtoolKit"
": (Patt. *) could not be read correctly marker pattern file ARtoolKit"

From Parameter.cpp--------------------------------------------------------------------
If it fails upon setup,
"Scene : 設定ファイル(setting.ini)が開けませんでした"

after "- AntiAliasingtt"
"Scene : 設定ファイル(setting.ini)のAntiAliasingの値が不正です。0~2の値を指定してください"
"Scene:. AntiAliasing the value of the configuration file (setting.ini) is invalid Please specify a value of 0-2"

after "- SelfShadowtt"
"Scene : 設定ファイル(setting.ini)のSelfShadowOnの値が不正です。0か1の値を指定してください"
"Scene:. SelfShadowOn the value of the configuration file (setting.ini) is invalid Please specify a value of 0 or 1"

after "- FloorShadowtt"
"Scene : 設定ファイル(setting.ini)のFloorShadowOnの値が不正です。0か1の値を指定してください"
"Scene:. FloorShadowOn the value of the configuration file (setting.ini) is invalid Please specify a value of 0 or 1"

after "- ShadowMapResolutiont"
"Scene : 設定ファイル(setting.ini)のShadowMapResolutionの値が不正です。0~2の値を指定してください"
"Scene:. ShadowMapResolution the value of the configuration file (setting.ini) is invalid Please specify a value of 0-2"

after "- ShadowMapPrecisiont"
"Scene : 設定ファイル(setting.ini)のShadowMapPrecisionの値が不正です。32か16か8を指定してください"
"Scene:. ShadowMapPrecision the value of the configuration file (setting.ini) is invalid Please specify the 8 or 16 or 32"

after "- ShadowMapRegiont"
"Scene : 設定ファイル(setting.ini)のShadowMapRegionの値が不正です。0か1の値を指定してください"
"Scene:. ShadowMapRegion the value of the configuration file (setting.ini) is invalid Please specify a value of 0 or 1"

after "- PhysicsOntt"
"Scene : 設定ファイル(setting.ini)のPhysicsOnの値が不正です。0か1の値を指定してください"
"Scene:. PhysicsOn the value of the configuration file (setting.ini) is invalid Please specify a value of 0 or 1"

after "- BulletModett"
"Scene : 設定ファイル(setting.ini)のBulletModeの値が不正です。1~3の値を指定してください"
"Scene:. BulletMode the value of the configuration file (setting.ini) is invalid Please specify a value of 1-3"

after "- HWSkinningOntt"
"Scene : 設定ファイル(setting.ini)のHWSkinningOnの値が不正です。0~2の値を指定してください"
"Scene:. HWSkinningOn the value of the configuration file (setting.ini) is invalid Please specify a value of 0-2"

after "- ARToolKittt"
"Scene : 設定ファイル(setting.ini)のARToolKitの値が不正です。0か1の値を指定してください"
"Scene:. Value of ARToolKit configuration file (setting.ini) is invalid Please specify a value of 0 or 1"

after "- WindowSize tt"
"Scene : 設定ファイル(setting.ini)のWindowSizeの値が不正です。1~4の値を指定してください"
"Scene:. WindowSize the value of the configuration file (setting.ini) is invalid Please specify a value of 1-4"

after "- ARscreentt"
"Scene : 設定ファイル(setting.ini)のARscreenの値が不正です。0か1の値を指定してください"
"Scene:. ARscreen the value of the configuration file (setting.ini) is invalid Please specify a value of 0 or 1"


From windows.cpp ------------------------------------------------------------------
If it stops after "デバッグモードで起動します。n"
"Window : ウィンドウクラスの登録に失敗しました"
": I failed to register the window class Window"

If it stops after "Load PMM File."
" : ERROR : PMM file : %sn", parameter.m_pmmFileName
" : ERROR : PMM file.n"
"ファイルの読み込みに失敗しました。n何かキーを押してください。n"
"音楽ファイルが再生できません。n - %sn", pmm->m_wavFileName
"音楽再生OFFで起動します。n"
"Renderer : レンダラーの初期化に失敗しました"
": ERROR: PMM file:% s n", parameter.m_pmmFileName
": ERROR:. PMM file n"
". N Please Press. N any key failed to read the file"
"You can not play music file n -.% S n", pmm-> m_wavFileName
"Start the music playback OFF. N"
": I failed to initialize renderer Renderer"

From Scene_create.cpp --------------------------------------------------------------

If it stops after "Create Scene...n"
"Scene : Direct3Dデバイスの取得に失敗しました"
" --- シェーダバージョンが2.0未満の為、セルフシャドウOffで起動します。n" -
" --- シェーダバージョンが3.0未満の為、HWスキニングOffで起動します。n"
" --- デバイスがマルチレンダリングターゲット未対応の為、HWスキニングモード1で起動します。n"
"Scene : PMDデータ取り込みで失敗しました"
"Scene : フレームデータ取り込みで失敗しました"
": I failed to get the Direct3D device Scene"
". Because of less than 2.0, --- shader version will start in self-shadowing Off n" -
"For less than 3.0, --- shader version will launch in HW skinning Off. N"
"For multi render target is not supported, --- device starts in HW skinning mode 1. N"
": I failed with PMD data acquisition Scene"
": I failed with frame data acquisition Scene"

If it stops after load accessory
"Scene : アクセサリデータ読み込みで失敗しました"
": I failed with accessory data read Scene"

If it stops after frame data...
"Scene : フレームデータ取り込みで失敗しました"
": I failed with frame data acquisition Scene"

If it stops after Create textures...
"Scene : 背景画像格納用テクスチャの作成に失敗しました"
"Scene : 3Dモデル描画用テクスチャの作成に失敗しました"
"Scene : 3Dモデル描画用テクスチャからのサーフェス取得に失敗しました"
"Scene : 3Dモデル描画用テクスチャの深度バッファの作成に失敗しました"
"Scene : シャドウマップ用フローティングバッファ(8bit)の作成に失敗しました"
"Scene : シャドウマップ用フローティングバッファ(16bit)の作成に失敗しました"
"Scene : シャドウマップ用フローティングバッファ(32bit)の作成に失敗しました"
": I failed to create a background image for storing texture Scene"
": I failed to create a 3D model drawing texture Scene"
": I failed to get surface from the 3D model drawing texture Scene"
": I failed to create a buffer depth of 3D model drawing texture Scene"
": I failed to create shadow map for floating buffer (8bit) Scene"
": I failed to create shadow map for floating buffer (16bit) Scene"
": I failed to create shadow map for floating buffer (32bit) Scene"

If it stops after "Create Shadow Map : D3DFMT_A32B32G32R32Fn"
"Scene : シャドウマップ用テクスチャからのサーフェス取得に失敗しました"
"Scene : シャドウマップ用テクスチャの深度バッファの作成に失敗しました"
"Scene : シャドウマップ用フローティングバッファ(8bit)の作成に失敗しました"
"Scene : シャドウマップ用フローティングバッファ(16bit)の作成に失敗しました"
"Scene : シャドウマップ用フローティングバッファ(32bit)の作成に失敗しました"
": I failed to get surface from the shadow map texture for Scene"
": I failed to create a depth buffer of the shadow map texture for Scene"
": I failed to create shadow map for floating buffer (8bit) Scene"
": I failed to create shadow map for floating buffer (16bit) Scene"
": I failed to create shadow map for floating buffer (32bit) Scene"

If it stops after "Create Shadow Map : D3DFMT_A32B32G32R32Fn"
"Scene : シャドウマップ用テクスチャからのサーフェス取得に失敗しました"
"Scene : 背景スクリーン表示用テクスチャの作成に失敗しました"
"Scene : 背景スクリーン表示用テクスチャからのサーフェス取得に失敗しました"
"Scene : 背景スクリーン表示用テクスチャの深度バッファの作成に失敗しました"
": I failed to get surface from the shadow map texture for Scene"
": I failed to create a background screen display for texture Scene"
": I failed to get surface from the background screen display texture Scene"
": I failed to create a depth buffer of the background screen display for texture Scene"

If it stops after "- Create Vertex Buffers... "
"Scene : コピー用頂点バッファ(座標)の作成に失敗しました"
"Scene : コピー用頂点バッファ(テクスチャ座標)の作成に失敗しました"
"Scene : コピー用頂点バッファ(テクスチャ座標)の作成に失敗しました"
"Scene : 背景画像コピー用頂点バッファ(テクスチャ座標)の作成に失敗しました"
": I Failed to create copy for vertex buffer (coordinate) Scene"
": I Failed to create copy for vertex buffer (texture coordinates) Scene"
": I Failed to create copy for vertex buffer (texture coordinates) Scene"
": I failed to create a background image copy the vertex buffer (texture coordinates) Scene"

From Shader.cpp ----------------------------------------------------------------------

If it stops after "- load & compile shader programs.n"
"Scene : シェーダプログラム( copy.fx ) の読み込みかコンパイルに失敗しました"
"Scene : シェーダプログラム( PMD.fx ) の読み込みかコンパイルに失敗しました"
"Scene : シェーダプログラム( PMD_simple.fx ) の読み込みかコンパイルに失敗しました"
"Scene : シェーダプログラム( FloorShadow.fx ) の読み込みかコンパイルに失敗しました"
"Scene : シェーダプログラム( Skinning.fx ) の読み込みかコンパイルに失敗しました"
"Scene : シェーダプログラム( Accessory.fx ) の読み込みかコンパイルに失敗しました"
"Scene : シェーダプログラム( Accessory_simple.fx ) の読み込みかコンパイルに失敗しました"

": I failed to compile or read shader programs (copy.fx) Scene"
": I failed to compile or read shader programs (PMD.fx) Scene"
": I failed to compile or read shader programs (PMD_simple.fx) Scene"
": I failed to compile or read shader programs (FloorShadow.fx) Scene"
": I failed to compile or read shader programs (Skinning.fx) Scene"
": I failed to compile or read shader programs (Accessory.fx) Scene"
": I failed to compile or read shader programs (Accessory_simple.fx) Scene"

From MusicPlayer.cpp ---------------------------------------------------------------
"ERROR - Could not initialize COM library"
"ERROR - Could not create the Filter Graph Manager."

From Renderer.cpp -------------------------------------------------------------------
"Renderer : Direct3D9オブジェクトの作成に失敗しました")
"Renderer : ディスプレイモードの取得に失敗しました"
" -- デバイスがHWアンチエイリアスに未対応なため、モード1で起動します。n"
"Renderer : ディスプレイデバイスの生成に失敗しました"

": I failed to create a Direct3D9 object Renderer")
": I failed to get the display mode Renderer"
"-. Because the device is not support HW anti-aliasing, it will be started in mode 1 n"
": I failed to generate a display device Renderer"
Related content
Comments: 549

KeijiKarasuma In reply to ??? [2012-07-03 03:19:48 +0000 UTC]

Hi There..

I have this problem on both pc and my notebook "ARToolkit_MMD.exe has Stopped Working " ..
[link]

👍: 0 ⏩: 1

AddestorionVayanis In reply to KeijiKarasuma [2012-07-03 04:35:02 +0000 UTC]

allstars.pmm is known to cause this crash.

i suggest you try with a fresh .pmm file using a basic model and motion.

i suspect that the laser effect on the lights is causing the problem.

👍: 0 ⏩: 1

KeijiKarasuma In reply to AddestorionVayanis [2012-07-03 07:08:07 +0000 UTC]

I just made a new fresh pmm file, but the problem persisted
I have no idea what to do anymore to fix this problem...
[link]
[link]

👍: 0 ⏩: 1

AddestorionVayanis In reply to KeijiKarasuma [2012-07-03 08:11:06 +0000 UTC]

got it.
the thing that follows copy.fx is shadowmap.

this probably means your computer cant handle the shadow map resolution or shadow map precision specified. So change the shadowmapresolution and shadowmapprecision settings.

Try combinations of all the extremes. one of them should work at least
resolution - precision
2 - 32 bit
0 - 32 bit
2 - 8 bit
0 - 8 bit

mine is currently using 2 - 32 bit

👍: 0 ⏩: 1

KeijiKarasuma In reply to AddestorionVayanis [2012-07-03 08:34:36 +0000 UTC]

hmm seems not working too..
still get the same error message...

this is my pc spec..

my pc spec is
windows 7 ultimate SP1 64bit
AMD Athlon II X4
ATI Radeon HD4670
6 GB Ram

👍: 0 ⏩: 1

AddestorionVayanis In reply to KeijiKarasuma [2012-07-03 12:01:03 +0000 UTC]

it should work...

your webcam is your laptop's webcam or is it an external type?

👍: 0 ⏩: 1

KeijiKarasuma In reply to AddestorionVayanis [2012-07-03 15:11:03 +0000 UTC]

it's ok thanks for helping...

after re-installing windows and get the another ARToolkit not working

finally i got it working... The culprit is DirectX huh..
I just updated DirectX(DirectX End-User Runtimes (February 2010)) from [link] after installing the DirectX no problem at all...

👍: 0 ⏩: 1

AddestorionVayanis In reply to KeijiKarasuma [2012-07-03 18:34:57 +0000 UTC]

ahhh... i see.

Never encountered the problem thus yet though. lol. youre the first.

👍: 0 ⏩: 0

AyumuAikawa In reply to ??? [2012-07-02 15:42:15 +0000 UTC]

Hi there, on main laptop(64bit win7) when i open ARToolkit_MMD for the first time it looks fine until the property sheet and i didnt execute anything and i close it.. after a fresh restart i try to reopen the program it pops out the program had stopped.

I tried the program on my another laptop runs on 32bit win7, it runs fine till it stopped at "create texture" and pops out error 553 (scene_create.cpp).

So any idea solving them ?

👍: 0 ⏩: 1

AddestorionVayanis In reply to AyumuAikawa [2012-07-03 04:48:02 +0000 UTC]

so, what motion and model are you using, and the settings you used?

i usually recommend using a fresh .pmm file and a simple model and motion. Allstars.pmm has something which messes everything up, so try not to use that to test artoolkit_mmd.

usually its a setting.ini issue, where the shadowmapresolution and shadowmapprecision do affect the loading of the model, as well as compatible camera resolution (some resolutions work fine, some have a displacement problem, others just crash it)

still, i recommend you try a fresh pmm file and tell me how it goes later.

👍: 0 ⏩: 1

AyumuAikawa In reply to AddestorionVayanis [2012-07-04 03:14:14 +0000 UTC]

Thanks for the reply.
I will try it out how it will works when i reach home.

👍: 0 ⏩: 1

AddestorionVayanis In reply to AyumuAikawa [2012-07-04 08:29:00 +0000 UTC]

sure sure lol.

i hope you didnt join deviantart just to ask me. lol....

👍: 0 ⏩: 0

kibosh999 In reply to ??? [2012-06-28 14:52:16 +0000 UTC]

every time i try to open the program it says that i dont have a file it needs

👍: 0 ⏩: 1

AddestorionVayanis In reply to kibosh999 [2012-06-28 15:03:19 +0000 UTC]

did it mention anything specific like PMM or PMD or something?

👍: 0 ⏩: 1

kibosh999 In reply to AddestorionVayanis [2012-06-29 14:14:51 +0000 UTC]

no an ii somethins

👍: 0 ⏩: 1

AddestorionVayanis In reply to kibosh999 [2012-06-29 15:48:12 +0000 UTC]

so there are a few stages where this error message can appear, help me identify when:
1 - directly after you doubleclick artoolkit_MMD.exe (but nothing else loads)
2 - a windows command prompt window shows up
3 - a windows command prompt window and another window named 'property sheet properties' loads up
4 - after you press OK on 'property sheet properties'
5 - the command prompt starts loading up loads of lines
6 - a new webcam window shows up.

👍: 0 ⏩: 1

kibosh999 In reply to AddestorionVayanis [2012-06-29 16:18:00 +0000 UTC]

yah none of that happens 4 me

👍: 0 ⏩: 1

AddestorionVayanis In reply to kibosh999 [2012-06-30 05:07:49 +0000 UTC]

then you may have to check step 12. It needs extra .dll files to work

👍: 0 ⏩: 1

kibosh999 In reply to AddestorionVayanis [2012-07-01 16:37:44 +0000 UTC]

thx

👍: 0 ⏩: 0

Miyoko-Nyaan In reply to ??? [2012-06-20 00:59:39 +0000 UTC]

Definitely going to try this out when I get back from work, thanks for the tutorial!

👍: 0 ⏩: 1

AddestorionVayanis In reply to Miyoko-Nyaan [2012-06-20 03:22:25 +0000 UTC]

sure sure. Still, this is known to encounter more problems than MMDAgent. Though MMDAgent makes your laptop heat up a lot faster.

👍: 0 ⏩: 1

Miyoko-Nyaan In reply to AddestorionVayanis [2012-06-20 11:55:10 +0000 UTC]

Well, every program has it's pros and cons. Thanks for the warning.

👍: 0 ⏩: 0

HikariYamamoto47 In reply to ??? [2012-05-30 04:19:07 +0000 UTC]

Hi~! Remember me~? The girl with the crashing problem when it came to the ShadowMap? Yes, that~

Anyway, I'm just to let you know that it finally worked~ After a bit of messing around here and there and also, re-reading you helpful suggestions, it finally worked~!

I don't know what I've done because I didn't really thought it through (because I thought that sometimes, when you don't think about it seriously, it'll work its way out~).

Thank you very much for the tutorial and a million times thank you very much for your help~~!!

👍: 0 ⏩: 1

AddestorionVayanis In reply to HikariYamamoto47 [2012-05-30 11:06:22 +0000 UTC]

glad to help the community. Still learning new stuff about the program. But its difficult to keep up with all the projects at the same time. My attention is being split between ARToolkit_MMD, MMDAgent, and my engineering thesis.

i do suggest you try MMDAgent tho. lol

👍: 0 ⏩: 0

katieleesa In reply to ??? [2012-05-30 02:07:33 +0000 UTC]

ERROR CAN'T FIND PMM FILE. O_O
This is what the setting file looks like...
"# テスト用設定ファイル ver.20100322
#   変数名と値の間はタブで区切ること

## MMD関連の設定
# PMMファイル名
PMMFileName C:\Downloads\MikuMikuDance_v739dot\UserFile\.Pmm files\KasaneTetoWorldisMine.pmm

# MMDの"Data"フォルダへのパス
# (MMD標準のトゥーンファイルを差し替えたい場合のみ、セットしてください。)
#C:\Downloads\MikuMikuDance_v739dot\Data

# PMDオブジェクトの拡大・縮小率 (5.0)
Scale 5.0

# 表示する高さ
Height 0.0

# ライトの色(r,g,b) [0 ~ 255]
LightColor_RGB 154,154,154

# ライトの方向(x,y,z) [-1.0 ~ 1.0]
LightDirection_XYZ -0.5,-1.0,0.5

# 物理演算のセッティング (1 or 2 or 3)
BulletMode 1

# GPU側でスキニング処理を行う ( 0ff / 1n(モード1) / 2n(モード2) )
HWSkinningOn 0


## 描画関連の設定
# アンチエイリアシング (0ff, 1n, 2n(HW) )
AntiAliasing 1

# シャドウマップの範囲 (0MDのみ, 1MD+アクセサリ)
ShadowMapRegion 0

# シャドウマップの解像度 (2:2048x2048, 1:1024x1024, 0:512x512)
ShadowMapResolution 1

# シャドウマップの精度 ( 32bit, 16bit, 8bit )
ShadowMapPrecision 32

# 拡大スクリーンモード ( 0ff, 1n )
ARscreen 0

# 拡大スクリーンモード時の視野角 ( ズームイン:5.0 ~ 10.0 ~ 20.0:ズームアウト )
ARperspective 10.0


## ARToolKit関連の設定
# ARToolKitのOn/Off (0ff, 1n)
ARToolKit 1

# ARToolKit Off時の画面サイズ (1:640x480, 2:960x720, 3:1280x960, 4:FullScreen)
WindowSize 2

# マーカパターンファイル
MarkerPatternFileName .\Data\patt.sample1

# カメラ設定ファイル
CameraConfigFileName .\Data\WDM_camera_flipV.xml

# カメラパラメタファイル
CameraParamFileName .\Data\camera_para.dat

# マーカ検出モード (0:等倍(精度優先), 1:縮小(速度優先))
MarkerDetectMode 0

# 白黒化の閾値 ( 0 ~ 255 )
MarkerGrayScaleThreshold 128

EOF"

Where did I go wrong?
I made a folder for .PMM files in the User Folder; it's convenient for me.
And... UHGHGJSDHJKSDGHSD

👍: 0 ⏩: 2

AddestorionVayanis In reply to katieleesa [2012-05-30 02:22:22 +0000 UTC]

wait. try to delete the 'dot' in front of the folder for pmm files. I think its trying to register the folder as a pmm file.

C:\Downloads\MikuMikuDance_v739dot\UserFile\.Pmm [it stops here]
[instead of continuing onto] files\KasaneTetoWorldisMine.pmm
i suggest remaking it as

C:\Downloads\MikuMikuDance_v739dot\UserFile\PMMs\KasaneTetoWorldisMine.pmm

👍: 0 ⏩: 1

katieleesa In reply to AddestorionVayanis [2012-05-30 02:28:50 +0000 UTC]

.. O w O
..It still can't find the file *is about to go insane o3o*

👍: 0 ⏩: 1

AddestorionVayanis In reply to katieleesa [2012-05-30 02:32:23 +0000 UTC]

you have already renamed your actual folders so that the mikumikudance folder wont mistake a folder name for the actual pmm file right?

both the actual folders and the folder path you key into settings.ini must match exactly

👍: 0 ⏩: 1

katieleesa In reply to AddestorionVayanis [2012-05-30 02:39:16 +0000 UTC]

I just noticed what I forgot!
after C:, I had to put my name I put on my computer!

..Then...

It happened again ; A ;

👍: 0 ⏩: 1

AddestorionVayanis In reply to katieleesa [2012-05-30 02:42:36 +0000 UTC]

so, what is the filepath now?

surest way to go is just to left click the address bar in windows explorer and right click to copy it. This way, you avoid any possible problems.

👍: 0 ⏩: 1

katieleesa In reply to AddestorionVayanis [2012-05-30 02:46:55 +0000 UTC]

..I did that.
No freaking luck ;3;
This is harder than it seems...

👍: 0 ⏩: 1

AddestorionVayanis In reply to katieleesa [2012-05-30 02:49:41 +0000 UTC]

i got it.
Delete the spacebar between PMMFilename and C:\WHATEVER

replace it with a single hit of the tab key.

so it will be
PMMFileName C:\whatever
instead of
PMMFileName C:\whatever

👍: 0 ⏩: 1

katieleesa In reply to AddestorionVayanis [2012-05-30 02:53:18 +0000 UTC]

..Now it says it can't open the model.
"--Can't open PMD file
:ERROR: PMM file.
blahblahblahjapanese"

👍: 0 ⏩: 1

AddestorionVayanis In reply to katieleesa [2012-05-30 03:52:16 +0000 UTC]

you may want to reopen the pmd file. because if you changed the folder name where the model you used was located, the pmm file also will not be able to find the model. Just open the pmm file in Mikumikudance, and you will be prompted to reselect the model. thats all.

👍: 0 ⏩: 0

AddestorionVayanis In reply to katieleesa [2012-05-30 02:20:00 +0000 UTC]

is the \UserFile\.Pmm files\KasaneTetoWorldisMine.pmm thin a whole new line?

its supposed to be one long single line before it can be found

PMMFileName C:\Downloads\MikuMikuDance_v739dot\UserFile\.Pmmfiles\KasaneTetoWorldisMine.pmm

maybe you may want to turn word wrap off if it was on.

👍: 0 ⏩: 2

katieleesa In reply to AddestorionVayanis [2012-05-30 03:57:13 +0000 UTC]

Okay, nevermind that; it's just the webcam. It's default is YouCam, when YouCam only comes up as a blank screen saying, "YouCam Please start YouCam"
...I honestly don't understand my computer anymore...

👍: 0 ⏩: 1

AddestorionVayanis In reply to katieleesa [2012-05-30 04:13:17 +0000 UTC]

oookay... so i've reached the point where i cant really help you anymore.

Still, you did point out something i didnt notice before: that space was separated by a TAB and not a SPACEBAR. So, you did give me some new info regarding this program.

as to how to discipline your webcam, i guess you need to ask someone more specialized like google i suppose. i dont want to try fixing something i dont understand. yet.

👍: 0 ⏩: 1

katieleesa In reply to AddestorionVayanis [2012-05-30 04:16:53 +0000 UTC]

I think I just have to re-install the webcam, so it's no biggie ^-^
Either that or go to the computer settings and change the default webcam.

Thank you VERY VERY much for the help!! :'D

👍: 0 ⏩: 1

AddestorionVayanis In reply to katieleesa [2012-05-30 11:06:59 +0000 UTC]

well, you can try MMDAgent. It needs a microphone and speakers. So, if you cant get augmented reality, maybe voice interaction will work

👍: 0 ⏩: 0

katieleesa In reply to AddestorionVayanis [2012-05-30 02:25:19 +0000 UTC]

It still doesn't seem to be working....

👍: 0 ⏩: 0

LilAnaV-P In reply to ??? [2012-05-26 09:28:24 +0000 UTC]

mine cant open the PMD file

👍: 0 ⏩: 1

AddestorionVayanis In reply to LilAnaV-P [2012-05-27 01:42:34 +0000 UTC]

so whats the line that the blackscreen said before it crashed?

👍: 0 ⏩: 0

TetoKasanerocks In reply to ??? [2012-05-22 20:39:49 +0000 UTC]

I'm having trouble understanding part 8.

👍: 0 ⏩: 1

AddestorionVayanis In reply to TetoKasanerocks [2012-05-22 23:54:22 +0000 UTC]

open the Settings.ini file with notepad. You need to copy the path of the .pmm file you want to play right after the PMMFileName line in the settings.ini file

Mine will be AoiTori.pmm, stored in the UserFile folder of MikuMikuDance_v729 under Programs under D drive. So:

## MMD関連の設定
# PMMファイル名
PMMFileName D:\Programs\MikuMikuDanceE_v729\UserFile\AoiTori.pmm

👍: 0 ⏩: 0

LilAnaV-P In reply to ??? [2012-05-22 03:15:49 +0000 UTC]

I dont get the change the #MMDDataFolderName to where you extracted your MikuMikuDance Data folder part and the change the PMMFileName to the path where the .pmm file you want to use is located?

👍: 0 ⏩: 1

AddestorionVayanis In reply to LilAnaV-P [2012-05-22 09:14:10 +0000 UTC]

the first one, i found is unnecessary, but as for change the PMMFileName:

the settings.ini file will try to find the .pmm file which it should be playing.

So, you need to make your own .pmm file with music, models, motion (try not to use the Allstars.pmm included)
Then, find out where you saved it (its usually in the Userfile folder of MikuMikudance)
then copy the full link like: D:\Programs\MikuMikuDanceE_v729\UserFile\AoiTori.pmm (you can right click the address bar and copy the path)

and paste it after the PMMFilename like this:

## MMD関連の設定
# PMMファイル名
PMMFileName D:\Programs\MikuMikuDanceE_v729\UserFile\AoiTori.pmm

then it should play the file if there are no problems when you run ARToolkit_mmd

👍: 0 ⏩: 0

CristianBalan In reply to ??? [2012-05-21 04:04:11 +0000 UTC]

When the cmd have finished the program get close why????

👍: 0 ⏩: 1

AddestorionVayanis In reply to CristianBalan [2012-05-21 05:06:13 +0000 UTC]

the cmd loaded all the way until START SEQUENCE, then it may be because your webcam cant support the resolution you specify. For example, mine supports 640x480 and its multiples properly, has a displacement of the model if its 640 x 400 and its multiples, and crashes if i use the 1600x1200 default setting.

i recommend you test these settings. Theyre usually a webcam thing.

If instead the program crashes while the cmd is running, tell me the last line you saw before it hanged

👍: 0 ⏩: 0

KirschSalvator In reply to ??? [2012-05-12 01:42:54 +0000 UTC]

Well, it won't let me click to flip horizontal, and it loads everything but crashes before it opens up the camera. However, if I already have my camera in use there's an error message but the program finishes loading but never opens a video for itself.

👍: 0 ⏩: 1

AddestorionVayanis In reply to KirschSalvator [2012-05-12 04:44:52 +0000 UTC]

it might be a resolution problem possibly. Some combinations of resolutions are known to be incompatible with some webcams. generally, a resolution setting higher than what your webcam can provide will automatically cause it to crash at that particular point in time (window opens, turns white, crashes)

I recommend you test it on lower resolutions first. 640x400 and 640x480 are the best resolutions to start at.

👍: 0 ⏩: 0


<= Prev | | Next =>