Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-28 09:09:40



Reply to topic  [ 3 posts ] 
strange behavior in advanced material animations (ALM) 
Author Message

Joined: 2014-03-22 03:17:49
Posts: 46
Reply with quote
Hi Henri,

Just found a quirky behavior in ALM, it seems that the diffuse layer animates correctly, but at least in my experiment the normal and shine layers kind of did there own thing. it looks like the scaling and possibly mapping are not what they should be. I have seen moire patterns and unusual directions of flow for the normal and shine layers.

Here is a little script you can drop into a prim and hopefully duplicate what i am seeing, it should provide a scrolling rippled surface effect. You can compare the result visually to the LL viewer.

Thank you once again!
~Lycia


Code:
default
{
    state_entry()
    {
        llSetLinkPrimitiveParamsFast( LINK_THIS, [
            PRIM_TEXTURE,    ALL_SIDES, "05ae8f6c-0b23-dd83-5bb3-8286b8acc409", <1.0, 1.0, 1.0>, <0.0, 0.0, 0.0> , 0.0,
            PRIM_NORMAL,     ALL_SIDES, "55ce387b-0b66-84bf-cfdc-80ddc2ba8768", <1.0, 1.0, 1.0>, <0.0, 0.0, 0.0> , 0.0,
            PRIM_SPECULAR,   ALL_SIDES, "0b6ae159-cad8-9709-2055-5813b7ce1551", <1.0, 1.0, 1.0>, <0.0, 0.0, 0.0> , 0.0, <1.0, 1.0, 1.0>, 255, 200,
            PRIM_COLOR,      ALL_SIDES, <1.0, 1.0, 1.0>, 1.0,
            PRIM_ALPHA_MODE, ALL_SIDES, PRIM_ALPHA_MODE_BLEND, 0 
        ]);
   
        llSetLinkTextureAnim(LINK_THIS, ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 1.0, 1.0, 0.03);
    }
   
    on_rez(integer arg)
    {
        llResetScript();
    }
   
    touch_start(integer arg)
    {
        llResetScript();
    }
}


2018-06-12 23:43:35
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
The bug also shows without the texture animation (simpler repro).

It's a problem in the texture batching and draw info generation code, that got broken in v1.26.20.46 (3 months ago !... It tells a lot about materials and ALM popularity, lol !).

Bug fixed for next release.


2018-06-13 17:44:46
Profile WWW

Joined: 2014-03-22 03:17:49
Posts: 46
Reply with quote
Ah ha! Yes i see it as soon as i turn on transparency! Much simpler repo there. I bet that's one of the reasons it has gone unnoticed, most people don't have transparent sofas :P I was doing a tutorial for ALM water when i ran into the issue, you can find it here: https://www.youtube.com/watch?v=5KXERLIUa18. I made those images above, so if they are useful, feel free to use them wherever you want, or to if curious to just try out the tutorials effect without spending a couple hours messing around in gimp!

Thank you again Henri! Looking forward your weekend post!

~Lycia


2018-06-15 05:56:02
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.