View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

モデリングデータ

back


モデリング・データを読み込んで空間に配置するってのをやるです。
データ・フォーマットは「mdl」と「ase」らしいです。



■Aliceのデータをネットから読み込む(mdl)

ネット上にあるAliceのデータを読み込み込んで表示するです。
----------------------------------------
filePath _ #('Content' 'Alice' 'Animals' 'snowman.mdl').
tobj _ CroquetData loadAliceFile: filePath.
tobj translationX: 0 y: 0 z: 0.
space addChild: tobj.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image19.jpg



■自分のHDからデータを読み込む(mdl)

自分のHDからモデリング・データを読み込んで表示するです。
適当なデータがないのでAliceのデータをダウンロードしたもので
試してみたです。
----------------------------------------
filePath _ 'O:?AliceObjects?Animals?PurpleDinosaur.mdl'.
mdl _ TLoadMDL new.
frame _ mdl parseFileNamed: filePath.
space addChild: frame.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image20.jpg






下の入力ボックスに書き込んで”add to the page”ボタンで登録出来ます。
修正したい場合はページ左のアイコンの”edit”で出てくる画面で編集可能です。
ページ左のアイコンの”uploads”で画像(JPEG,GIF,PNG)のアップロードもできます。


Sunday, 31 October 2004, 4:38:33 pm

3DSMax(.ase)ファイルの読み込みはこんな感じ。--thoru
----------------------------------------
tframe := (TLoad3DSMax new initializeWithFileName: 
	(FileDirectory pathFrom:
	{'O:?Croquet_0.1_Windows'. 'Content'. 'maxData'. 'test.ase'}) 
	scale: 0.1) frame.
tframe translationX: 0 y: 0 z: 0.
tframe rotationAroundX: 0.
tframe boundsDepth: 3.
tframe initBounds.
space  addChild: tframe.
 ----------------------------------------

Link to this Page

  • Enjoy CROQUET last edited on 5 November 2022 at 11:40:11 am by localhost