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

パーティクル

back


つぶづぶをたくさ〜ん出して火花や水のように見せたりする
パーティクルでござる。けっこう楽しい・・・。




■別の空間で試すです

暗い空間で見たほうが分かりやすいんで新しく作りまする。

----------------------------------------
sp2 _ TSpace new.
sp2 color: (Color r: 0.0 g: 0.0 b: 0.5).

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

で、中に入ってウィンドウのほうを振り向きまする。

Uploaded Image: image15.jpg




■パーティクルでする。


----------------------------------------
tparticle _ TParticle new initializeWithSize: 350.
tparticle translationX: 0 y: 5 z:-10.
sp2 addChild: tparticle.
----------------------------------------
Alt + d ( Cmd + d )

Uploaded Image: image16.jpg

削除するときはこれね。
----------------------------------------
tparticle destroy
----------------------------------------
Alt + d ( Cmd + d )


■いろいろ試す。


TeapotMorphのmakeHolidayで使ってるパーティクルを
一つづつ抜き出しただけなんだけどね。
----------------------------------------
tparticle _ TParticle new initializeWithSize: 750.
tparticle translationX: 0 y: 3 z:-10.
tparticle setPositionRangeMin:(-1@-0.1@-1) max: (1@0.1@1).
sp2 addChild: tparticle.
----------------------------------------
Alt + d ( Cmd + d )


----------------------------------------
tparticle _ TParticle new initializeWithSize: 1000.
tparticle translationX: 0 y: 1 z:-10.
tparticle setPositionRangeMin:(-2@-0.1@-2) max: (2@0.1@2).
sp2 addChild: tparticle.
----------------------------------------
Alt + d ( Cmd + d )


----------------------------------------
tparticle _ TParticle new initializeWithSize: 1200.
tparticle translationX: 0 y: -1 z:-10.
tparticle setPositionRangeMin:(-3@-0.1@-3) max: (3@0.1@3).
sp2 addChild: tparticle.
----------------------------------------
Alt + d ( Cmd + d )


----------------------------------------
tparticle _ TParticle new initializeWithSize: 500.
tparticle translationX: 0 y: -2 z:-10.
tparticle setVelocityRangeMin:(-1.2@7@-1.2) max:(1.2@14@1.2).
tparticle material ambientColor: #(0.7 0.6 0.2 1.0) asFloatArray.
tparticle material diffuseColor: #(0.7 0.6 0.2 1.0) asFloatArray.
sp2 addChild: tparticle.
----------------------------------------
Alt + d ( Cmd + d )


----------------------------------------
tparticle _ TParticle new initializeWithSize: 300.
tparticle setVelocityRangeMin:(-1@-1@-1) max:(1@1@1).
tparticle setAccelerationRangeMin:(0@-2@0) max:(0@-1@0).
tparticle material ambientColor: #(1 1 0.7 1.0) asFloatArray.
tparticle material diffuseColor: #(1 1 0.7 1.0) asFloatArray.
tparticle setLifetimeRange: (750 to: 1500).
tparticle translationX: 0 y: 11 z:-10.
sp2 addChild: tparticle.
----------------------------------------
Alt + d ( Cmd + d )


----------------------------------------
tparticle _ TParticle new initializeWithSize: 2000.
tparticle translationX: 0 y: 30 z:0.
tparticle setLifetimeRange: (6000 to: 9000).
tparticle setVelocityRangeMin:(-1.2@0@-1.2) max:(1.2@0@1.2).
tparticle setAccelerationRangeMin:(-0.1@-2@-0.1) max:(0.1@-3@0.1).
tparticle setPositionRangeMin:(-50@-0.1@-50) max: (50@0.1@50).
tparticle material ambientColor: #(1 1 1 1.0) asFloatArray.
tparticle material diffuseColor: #(1 1 1 1.0) asFloatArray.
sp2 addChild: tparticle.
----------------------------------------
Alt + d ( Cmd + d )





下の入力ボックスに書き込んで”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