大家好…請問大家…我有一個動畫的模型(用3D studio MAX),物件的關聯也設好了
那要用conv3ds的什麼參數把它轉成*.x的檔案呢?還有…怎樣用VB來呼叫Direct 3D的lib
來驅動*.x的動畫呢?
--
[m [1;34m※ 來源:‧蛋捲廣場 bbs.tku.edu.tw‧[FROM: 140.129.76.90] [m
有動畫的3ds 檔
conv3ds -A -f xxxx.3ds
vb裡.
dim frame as Direct3DRMFrame3
dim animationset as Direct3DRMAnimationSet2
//suppose we have rm object created.
set frame = rm.CreateFrame(rootframe)
set animationset=rm.CreateAnimationSet
animationset.loadfromfile "xxxx.x", 0,0,nothing,nothing, frame
接下來用animationset.settime 即可設定目前播的是哪一格動畫
用個timer或loop一直更新settime裡的time參數即可產生動畫效果
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: 154.c34.ethome.net.tw