Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB6 & Direct 3D

0 views
Skip to first unread message

丫樂

unread,
Dec 4, 2000, 3:00:00 AM12/4/00
to

大家好…請問大家…我有一個動畫的模型(用3D studio MAX),物件的關聯也設好了
那要用conv3ds的什麼參數把它轉成*.x的檔案呢?還有…怎樣用VB來呼叫Direct 3D的lib
來驅動*.x的動畫呢?

--
[m [1;34m※ 來源:‧蛋捲廣場 bbs.tku.edu.tw‧[FROM: 140.129.76.90] [m

男人的另一面是男孩

unread,
Dec 6, 2000, 3:00:00 AM12/6/00
to
※ 引述《yangya...@bbs.tku.edu.tw (丫樂)》之銘言:

> 大家好…請問大家…我有一個動畫的模型(用3D studio MAX),物件的關聯也設好了
> 那要用conv3ds的什麼參數把它轉成*.x的檔案呢?還有…怎樣用VB來呼叫Direct 3D的lib
> 來驅動*.x的動畫呢?

有動畫的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

0 new messages