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

ポータル

back


ウィンドウを「どこでもドア」ならぬ
「どこでもウィンドウ」にしてしまいまする。



■別の世界をつくる

別の世界を作ってウィンドウを入り口にするです。
な〜にもない世界です。(ウィンドウ以外はね)
----------------------------------------
sp2 _ TSpace new.

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: image15.jpg

もっと簡単に作れたりして・・・。
これは床、ライトとか一応あるですね。
----------------------------------------
teapot makeNewSpace
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image16.jpg




■空間をひとっとび

一つの世界に2つの出入り口を作って、それをつなぐです。
----------------------------------------
p1 _ TPortal new.
win _ TWindow new.
win translationX: -20 y: 0.0 z: -1.0.
win rotationAroundY: 90.
win contents: p1.
space addChild: win.

p2 _ TPortal new.
win _ TWindow new.
win translationX:20 y: 0.0 z: -1.0.
win rotationAroundY: -90.
win contents: p2.
space addChild: win.
p1 linkPortal: p2.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image17.jpg






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


Sunday, 31 October 2004, 7:08:36 am
TPotalSphereってのもおもろいよね。--thoru

----------------------------------------
mat _ TMaterial new.

p1 _ TPortalSphere new.
p1 material: mat.
p1 translationX: 12 y: 0.0 z: -1.0.
space addChild: p1.

lt _ TLight new.

sp2 _ TSpace new.
sp2 addChild: lt.
p2 _ TPortalSphere new.
p2 translationX: -5 y: -32 z: -78.
sp2 addChild: p2.

p1 linkPortal: p2.

tframe _ TSkyBox new initializeWithFileName: 'CA'.
sp2 addChild: tframe.
----------------------------------------

TPortalSphereってTSphereにポータルをくっつけてるんだと思うけど、
Billbordで向きをカメラに向けてるんだろうね。<よくわかんないけど。
Billbordは是非とゲットしたいね。

obje billbard: camera

ってやればカメラを向かせるってとこまでは分かったんだけどね。

Link to this Page

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