Environment entities can be used to give more immersion and realism to levels. Things such as Rain, Lightning, Tornadoes, Ripple Generators and others can be used.
- Door Panel / Supply
- Rain Entity
- Rain Particle Effects
Door Panel / Supply
There are currently now 2 optimizations in place for the flash materials used by DoorPanel entity class.
All door panels / supply containers MUST be placed inside their own layers and will automatically free memory when layer is deactivated.
This is mainly used for the case where there are 2 door panels on both sides of a door which perform the same function. You can place the 2 door panels, and then add an Entity Link to the door panel which will share the first panels' screen.
Only thing else that needs to be done is to notify hack complete on the both door panels from the other panel.
Here's directions step by step:
- Select Entity Links area on Entity:
- Select Pick Target and click on Door Panel you want to share the screen to:
- Rename link to ShareScreen:
- Connect Hack Success:
Congratulations, you've just saved half the memory!
See Lightning Arc for more information.
There are two main methods of achieving rain within CRYENGINE. The Rain Entity was introduced in version 3.3 and has been updated with several new features in 3.5. This entity has the advantage of handling object occlusion and applying a wet effect to all affected areas of the world.
Alternatively, if you want more control over the visual look of the rain in the world then it is still possible to add rain to the world using a particle effect with the correct configuration.
The Rain entity is found under the Environment folder in the Entity Rollup Bar.
DEPRECATED - Can be used to create an umbrella around the player/camera shielding them from the rain.
Set the speed at which the rain drops travel.
Set the brightness or backlighting of the rain drops.
Set the amount of rain drops that can be seen in the air.
Set the radius, or coverage area, of the rain effect.
Set the strength and frequency of the puddles generated by the rain (offset PuddlesAmount).
Set the strength of the puddle mask to balance different puddle results.
Set the strength (depth and brightness) of puddles generated by the rain.
DEPRECATED - Set the maximum height at which mist can appear on distant surfaces.
DEPRECATED - Set the amount of mist that appears on surfaces (distant, subtle effect).
Continue to render rain when player is inside a visarea.
DEPRECATED - Set the amount of reflection that is applied to the surfaces in the world.
DEPRECATED - Set the amount of glossiness/wetness that is applied to the surfaces in the world.
Set this to true/false to turn the rain effect on/off.
Don't check if object should be occluded from rain (is under cover).
DEPRECATED - This sets the color of the rain effect.
Set the overall amount of the rain entity's various effects.
|PuddlesMaskAmount = 0||PuddlesMaskAmount = 1|
|PuddlesRippleAmount = 2||PuddlesRippleAmount = 100|
|DisableOcclusion = False||DisableOcclusion = True|
|SplashesAmount = 1.3||SplashesAmount = 1000|
|MistAmount = 3||MistAmount = 1000 (background rocks)|
Rain Particle Effects
Drag and drop the ParticleEffect entity into your level from the Particle tab of the DataBase View: weather.Rain.space_loop
The settings for how the particle functions can be adjusted via its property settings on the Particle tab of the DataBase View.
Adjust the Count, Emitter Life Time, Spawn Delay and other properties to adjust the size and speed of the rain particles.
If you wish to limit rain to certain areas of your level, simply trigger the Particle Effect via Flow Graph and an area trigger so that when the player enters/leaves an area, it enables/disables the particle.
Earthquakes or screen shakes are activated using the Shake entity. Drag and drop the shake entity into your level (the entity itself is visible only in editing mode).
The Shake entity is enabled or disabled via Flow Graph. Simple add the entity to a graph then trigger enable/disable.
|Shake||Specifies the amount of shaking.|
|Radius||Specifies the radius around the entity in which the shake effect should happen.|
|Faction||See AI Entities for more information.|
You can add Tornadoes into your level via the Tornado entity. Simple drag the Tornado entity into the level.
In the Tornado properties panel, you can change the wander speed to make it move faster around.
Specifies the attraction impulse.
Specifies the height of the cloud above the tornado.
Here a particle effect can be specified.
The influence radius of the tornado.
Specifies the spin speed that effects objects that are close to the tornado
Specifies the pushing up speed that effects objects that are close to the tornado.
The tornadoes moving speed can be specified here.
It is also possible to setup a Flow Graph where you can control the path of the tornado using tag points and the MoveEntityTo node.
This entity allows simple control over moving an object depending on how close the player is to it.
This was used in the Crysis 3 Tutorial level to control the hexagon objects raising/lowering, depending on the players location.
|Close - All Objects Raised||Mid - Some Objects Remain Raised||Far - All Objects Lowered|
Maximum range around the entity which will detect the player entering.
Maximum range around the entity which will detect the player leaving.
Disables the area trigger function once the moving of the object is complete. Basically a "use once" option.
Closest distance the player can be from the entity before it will override the move sequence and force it to quickly finish.
Sets the model for the entity.
Speed at which the object will be moved when player leaves the area trigger.
Total distance of which to move the object. A value of 10 will move the object 10m up on the Z axis.
Speed at which the object will be moved when player enters the area trigger.
Use the built-in area trigger. Alternatively, this can be controlled by Flow Graph.
Allows to spawn ripples on water surfaces. It is especially useful for cutscenes when non-physicalized entities are moving through a body of water.
The WaterRipplesGenerator entity can be found in RollupBar -> Entity -> Environment.
Turns the entity on/off.
Size of the ripple effect.
Strength of the ripple effect. Also affects size.
Randomly changes the frequency of the ripple effect. The value specified is the maximum frequency that will occurr.
Randomly spawns ripples at an offset position relative to the entity. This value sets the maximum offset on the X axis (local coordinate system).
Same as RandomOffsetX, but for the Y axis (local coordinate system). Only works if AutoSpawn is enabled.
Randomly sets the scale of the ripple effect. The value specified is the maximum scale that can be set.
Same as RandomScale, but for the Strength value.
If enabled, water ripples will be spawned regularly even if the entity doesn't move.
Sets the interval for AutoSpawn in seconds.
If enabled, ripples will be spawned when the entity moves.
Spawn On Movement
WaterRipplesGenerator entity linked to a character bone, set to use SpawnOnMovement:
Entity animated in a Track View sequence, set to use SpawnOnMovement:
AutoSpawn set to 'true', RandomOffsetX and RandomOffsetY set to '3'.
In this example the WaterRipplesGenerator is used to enhance the sprinkler particle effects in the room:
For comparison: The same room again with only the particles and without the WaterRipplesGenerator entity: