[fixed] Animating const = type error (Color0)

[fixed] Animating const = type error (Color0)

Postby Skinnytorus » Monday, 07.October 2013, 20:39

I've got type errors and no animation of certain Const parameters.
Please, have a look. My comments are in the file.
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animating const = type error (Color0)

Postby ikam » Tuesday, 08.October 2013, 09:38

don't use .xyzw or .rgba with colors type in scripts

the correct syntax is :

color0 = [r, g, b, a];
where rgba are float values from 0.0 to 1.0.

so to animate the blue channel you can do something like that :

b:float = sin(time*16);
color0 = [0, 0, b, 0];
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Animating const = type error (Color0)

Postby Skinnytorus » Tuesday, 08.October 2013, 09:51

Hmmm... I see, but imho it doesn't fit the general wz4 scripting convention. Why is that?
Have you checked alpha channel anim? Does it work the way you showed above?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animating const = type error (Color0)

Postby Skinnytorus » Tuesday, 08.October 2013, 17:35

No.. Alpha anim is not working. :(
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animating const = type error (Color0)

Postby ikam » Tuesday, 08.October 2013, 22:53

it is fixed :)
the shader didn't support the alpha channel if const source was set to colors in ModMisc (now ModMtrlEnv).
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Animating const = type error (Color0)

Postby Skinnytorus » Wednesday, 09.October 2013, 04:49

Many thanks. What a relief! :)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46


Return to Bug reports



Who is online

Users browsing this forum: No registered users and 5 guests

cron