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

フォグとコースティクス

back


空間に霧を発生させる「fog」っていうのと
水中の感じを出す「TCausticSpace」ってのを試してみるです。



■「夜霧よ今夜もありがとう」って古っ!

fogを使うと空間に霧を発生させることが出来まする。
怪しい雰囲気にしたいときにいかが?
----------------------------------------
sp2 _ TSpace new.

lt _ TLight new.
lt rotationAroundZ: 120.
lt translationX: 0 y: 1 z: 0.
sp2 addChild: lt.

sp2 color:(Color r: 0.7 g: 0.6 b: 0.4).

sp2 fogOn: true.
sp2 fogDensity: 0.05.
sp2 fogStart: 40.0.
sp2 fogEnd: 200.0.

flr _ teapot makeFloor: sp2 fileName: 'floor.bmp'.
flr disableCaching.
flr translationX: 0 y: -4.0 z: -3.0.
sp2 addChild: flr.

p1 _ TPortal new.
win _ TWindow new.
win contents: p1.
space addChild: win.

p2 _ TPortal new.
win _ TWindow new.
win contents: p2.
sp2 addChild: win.
p1 linkPortal: p2.
win contents: p2.
sp2 addChild: win.
p1 linkPortal: p2.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image14.jpg

中に入るとこんな風に目の前に霧がかかって見えるっす。
霧っていうよりガスだな、これ。(黄色いし)

Uploaded Image: image15.jpg




■ゆらゆら海底散歩ってか

TSace」のかわりに「TCausticSpace」を使うと気分は海底散歩。
もちろん「fog」も使えるよん。
----------------------------------------
sp2 _ TCausticSpace new.

lt _ TLight new.
lt rotationAroundZ: 120.
lt translationX: 0 y: 1 z: 0.
sp2 addChild: lt.

sp2 color:(Color r: 0.5 g: 0.5 b: 0.9).

flr _ teapot makeFloor: sp2 fileName: 'floor.bmp'.
flr disableCaching.
flr translationX: 0 y: -4.0 z: -3.0.
sp2 addChild: flr.

p1 _ TPortal new.
win _ TWindow new.
win contents: p1.
space addChild: win.

p2 _ TPortal new.
win _ TWindow new.
win contents: p2.
sp2 addChild: win.
p1 linkPortal: p2.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image16.jpg

中に入ると波がゆらゆらしてるっすよ。

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