Browse Search Popular Register Upload Rules User list Login:
Search:
(I can't write English. So, I use the Google translation.)

Introduction to another scene

Use variables to pass information to their own scene object color

1. please do your own definition of a variable background of the scene Copy and paste the following eight lines for introduced.

Scene.my.myColor0: = [0.5, 0.5, 0.5, 0.5];
Scene.my.myColor1: = [0.5, 0.5, 0.5, 0.5];
Scene.my.myColor2: = [0.5, 0.5, 0.5, 0.5];
Scene.my.myColor3: = [0.5, 0.5, 0.5, 0.5];
Scene.my.myColor4: = [0.5, 0.5, 0.5, 0.5];
Scene.my.myColor5: = [0.5, 0.5, 0.5, 0.5];
Scene.my.myColor6: = [0.5, 0.5, 0.5, 0.5];
Scene.my.myColor7: = [0.5, 0.5, 0.5, 0.5];

2.please take them to the scene to introduce the equipment
(save / load as Phunlet, or copy and paste)


3.please set a variable to the item you want to change the color of the object color

Open the Script Menu
color = [xx, xx, xx, xx]
color = {Scene.my.myColorX} (X= 0-7) and rewriting, and then press Enter

4. Make a set of parameters for color change

Set the color to "part of the square" in each channel.

From the color menu to specify the "color" for the primary color.
From the color menu to specify the "text color" for the secondary color.

Set the change parameters on "blue circle" for each channel.
Select the blue circle and open the Script menu.
The parameters set to textureMatrix.

The first parameter is the color change mode (0-4)
0 = sine wave
1 = square wave
2 = Triangle wave
3 = Sawtooth wave
4 = At only one-time on start

The second parameter is the frequency of change
Set frequency of change cycle at [Hz].

The third parameter is the phase at the start
If use the sine wave specified 0.0 ~ 6.28(2*pi)
In other cases specified in 0.0-1.0

The fourth parameter is the pulse width (duty cycle)
Used only when the square wave
The ratio of time to display the Color 1
The ratio for the entire period. (1 color 2 colors at the same time if set 0.5)
About a year ago, I was taught in the forum Phun.jp. (Written in Japanese)