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

カラー&テクスチャ

back


立体オブジェクトに色とかマッピングとかしてみるです。



■色を付ける

色を赤くしてみるでするよ。
----------------------------------------
mat _ TMaterial new.
mat color: Color red.
tobj material: mat.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image16.jpg

TMaterialのことはまた今度やるですが
とりあえずこんなのがありまする。

ambientColor: 環境光
diffuseColor: 拡散反射光
emissiveColor: これなんだっけ?<調べろよ、おいら。
specularColor: 鏡面反射光
shininess: 光沢?
transparency: 透明度




■マッピングしてみる

マッピングはこんな感じかな。
----------------------------------------
txt _ TTexture
	new initializeWithFileName: 'RChecker.bmp'
	mipmap: true
	shrinkFit: false.
txt uvScale: 8.0@8.0.
tobj texture: txt.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image17.jpg








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


Link to this Page

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