Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 12/04/26 19:03
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,027 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Two effects in one action? #316124
03/21/10 16:41
03/21/10 16:41
Joined: Feb 2010
Posts: 40
Germany
G
Grandma Offline OP
Newbie
Grandma  Offline OP
Newbie
G

Joined: Feb 2010
Posts: 40
Germany
Hi all,
Is it possible to use two „shader-made“-effects in one action?
In this example the second material erase the first one:


Code:
action Grasbewegung()   
{     
       my.material = mat_alphatest; // Shader für Sortierung
       ent_mtlset (my,mtl_animTree, 1); //Shader für Bewegung      
       var gras_angles;
       var gras_speed;
       set (my, PASSABLE);
      // my.scale_x = 0.7 + random(2) / 3; // set different scales for the gras models
       //my.scale_y = my.scale_x;
       //my.scale_z = my.scale_x;
       gras_speed = 3 + random(5);
       while (1)
       {
               gras_angles += gras_speed * time_step; // allow the gras to weave
               my.roll += 0.02 * sin(gras_angles);
               wait (1);
       }
}



Re: Two effects in one action? [Re: Grandma] #316127
03/21/10 16:46
03/21/10 16:46
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
O.o I already answered your question in your "Sortiercode" thread...


Moderated by  Blink, Hummel, Superku 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1