展示物コーナー展示作品リスト建築

アニメーションカーテン Sea Breeze(Atami Merlin)

■作品名:アニメーションカーテン Sea Breeze
■作者名:Atami Merlin
■カテゴリ:建築


■作品の説明
スカルプトテクスチャの切換えをすることでカーテンの立体アニメーションを実現します。

■工夫した点
家具として機能させるためには、窓側端面の位置が固定されるのが理想ですが、オブジェクトの位置設定は中心基準なので、切換え時にサイズを可変させると同時にオブジェクト位置を移動
スクリプト的にはサイズ×1/2で単純計算したいところなのですが、スカルプトのベイク時に常にバウンディングボックス一杯にマップできなかったことで、位置調整用テーブルを使用しまし?
(テーブル記述は、表示サイズを記録するためにも使用します。Blenderの物理シミュレーションを利用して作成したスカルプトですが、フレームごとのバウンディングボックスサイズを記録す?

また、llSetPrimitivParamsでは遅延が0.2秒あり、一回ごとにスカルプトテクスチャを呼び出すと、キャッシュされずに切り替わってしまってスカルプトが成形表示されません。
アニメーションが実現しない為、プリロードモジュールとしてプリム面に透明化したスカルプトテクスチャを事前に貼り付けています



■主要な機能として使っているLSL関数など
llSetLinkPrimitiveParams, llGetPrimitiveParams, llGetInventoryName, llPassTouches


■自己紹介など
Atami's Life creation gadgets というお店をやってます。
http://slurl.com/secondlife/Lie/105/106/28
インワールドで "暮らす" という奇妙な感覚にこだわって、"生活"に欠けていると感じるものを作っています。

(制作の派生物を家具制作キット(フリービ)として公開しています)
https://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=110009

ブログ : http://atami.slmame.com/ (あまり書きません)



展示場所: HERE


*Product Name: Animated curtain - Sea Breeze
*Creator: Atami Merlin

*Description
Realize real 3d moving curtain with sculpt texture animation.

As real furniture curtain, the object should fixed on outer edge side. But as you may know, Second Life object located with center axis position. So I have to adjust these position at each frame texture and prim size.

You may say it is easy to calculate center of each object, just divide width by 2. I use blender's physics simulation to make sculpt texture.
But I couldn't make them at full stretch in each primitive bounding box size. So I use location table for each frame to fix them.

As llSetPrimitivParams does have 0.2 sec delay, if you just call them one by one, sculpt shape may not cached nor rezzed as animation.
To prevent it, I use invisible sculpted texture set on prim face as "preload module" to load them before using on curtain.

*LSL Functions used in this item
llSetLinkPrimitiveParams, llGetPrimitiveParams, llGetInventoryName, llPassTouches

*Creator Profile
Stick on the feelings that "living in virtual world", I create what needed for "real life in VW".

Shop : Atami's Life creation gadgets ( http://slurl.com/secondlife/Lie/105/106/28 )
Also providing free furniture making kit scripts as offshoot of making.
https://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=110009


exhibit location : HERE