-
Member
How can I get the fog density to gradually increase?
I'm trying to have the end event of my track cue a slow increase in fog, but I'm not sure how to manipulate the fog density setting within an area condition event to increase gradually from say 8 to 15 fog density.
Edit: The CDS method resolved my problem.
-
Member
1. Tie the fog density in the area condition event to a curved data source. Turn the CDS on with a state event. Change the START and END values depending on what you want(8 and 15). Change the curve depending on your preference. Linear would be most logical I guess, but depends on how you want it to look.
OR
2.If you want it to gradually increase/decrease depending on where your rider is on a distance from A to B:
Get 2 distance operators set to type: driving line.
Operator 1: source1= point B
source2= point A
Operator 2: source1=bike/rider
source2= point A
Two-input operator 1: set to divide- operand 1=distance operator 2
operand 2= distance operator 1
Two-input operator 2: set to multiply - operand1= two-input operator 1
operand 2= 100
The second two-input operator will store the value of the percentage of the rider on the dl.(at point A it will be close to zero, at point B it will be close to 100.)
There is only one problem, when the rider gets past point B the value will go above 100, same goes for point A value goes below zero.
The only solution I know of is using two more two-input operators:
Two-input operator 3: set to max - operand 1=two-input operator 2
operand 2= 0
Two-input operator 4: set to min - operand 1= two-input operator 3
operand 2= 100
Now get a variable data source and link it to the two-input operator 4. The value displayed on the vds will now change between 0 and 100(depending on what value you put in for operand 2 in both operator 3 and 4.
I am not sure if adding the VDS is necessary though, because the value in both the VDS and the two-input operator 4 are the same, but I did it anyway.
forgot: To decrease the value get an extra two-input operator 5: subtract operand1=1.00
operand2= two-input operator 1
AND change operand 1 from two-input operator 2 to two-inpout operator 5