Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Can cityengine be dynamic?
Can cityengine be dynamic?
Hello, dynamic water production

Make dynamic water by modifying the name of the layer (feature)

The following strings can trigger the display of dynamic water effects in the Web viewer:

1.& lt something & gt_ _ water & lt something & gt (default water wave parameter, velocity: 10, difference between wave high point and low point: 7)

2.& lt Something & gt_ _ waterquiet & lt Something & gt (slow: 5, wavelet: 2)

3.& lt Something & gt_ _ waterstormy & lt Something & gt (faster speed: 30, bigger wave: 15)

Description: This part refers to the effect that when the name of a layer or shape (feature) meets "*__water*", it will be rendered as dynamic water when exported to WebSecene. When the name of a layer conforms to this form, all objects under the layer will be rendered as dynamic water effects. When the name of a shape (element) conforms to this form, only that shape will present a dynamic water effect on the web side. The connector is a double dash in English.

Make dynamic water according to rules (adjustable flow/wave)

In the case of default flow, the operation is relatively simple, and we only need to change the name of the layer or feature to trigger the display effect of dynamic water. If you need to customize the speed of water flow and the size of waves, you need to write rules. Directly by defining the name of the material, the form is as follows:

Set(material.name, < something & gt _ _ waterparams _ _ & ltwave size & gt _ _< wave velocity & gt)

Parameter description:

1.& lt Something & gt _ _ waterparams _ _ & ltwave size & gt _ _< wave speed & gt is a string;

2.& lt Something & gt is any character,

3. The connector in the middle is the double dash "_ _" in English.

The sample code is as follows:

Water wave 2->

set(material.name," water__waterparams_30_50 ")

X.