This is our first UE4 plugin. Plugin can contain bugs. If you found some, please inform. We will be very grateful
This plugin for Unreal Engine 4 enables the simulation of fire and smoke propagation within your scenes.
Follow these steps to integrate the Fire Simulation Plugin into your Unreal Engine project:
-
Place the
FireManagerActor
in your scene. -
Configure the Fire Grid:
- Create a
GridActor
in your scene. - Assign the desired size to this actor to define the Fire Grid. The simulation will only occur within the bounds of this actor.
- Create a
-
You also must to place
ExponentialHeightFog
on scene to make smoke work.
-
Enable Fire Simulation for Actors:
- Add a
FireSimulationComponent
to each actor you want to include in the fire simulation. - Specify the following properties for each actor:
Mass
: The mass of the actor in kilograms.IsWall
: Walls cannot burn.IsBurning
: Iftrue
, the actor is a starting point for the fire to spread. There MUST be only 1 starting point.Selected material
: The name of a material that has a set of combustion parameters such as Linear flame speed, Lowest Heat Of Combustion, Burning Rate, etc. You can explore JSON file inYourProject\Plugins\FireSimulation\Content\Data\materials.json
- Add a
-
Mark Room Boundaries:
- Place
RoomMarker
actors in the scene to define the boundaries of rooms. Smoke will be generated within these boundaries.
- Place
-
Configure Doors:
- Add a
DoorComponent
to every door in the scene. - Configure the component with
ConnectedRoom1
andConnectedRoom2
to specify which rooms the door connects. Please note that smoke will flow fromConnectedRoom1
toConnectedRoom2
. So to make smoke work properly you need correctly setup directions in doors. - Optionally, set
IsOpen
to indicate if the door is open or closed. if the door is closed the smoke will not pass through the door.
- Add a
- Configure and Run the Simulation:
- Navigate to the
FireSimulation
tab in the Unreal Engine window. - In the modal window, set:
Fire Grid element size
. The size of 1 element in grid. Example: 50 means grid will be filled with cubes with size 50x50x50Number of threads
for simulation calculationsMeasure
. The number of Unreal Engine untis that will be equal to 1 meter.Fire distance
. Visualisation parameter. Distance between fire actors. The greater the distance, the fewer Actors will be required to represent the fire zone and fewer resources will be required.- Select a
Fire Particle System
. Visualisation of fire. If you dont have Fire ParticlleSytem you can pick default visualisation located inProject/Plugins/FireSimulation/Content/P_Fire.uasset
- Use
Draw Grid
to visualize your grid in the scene andClear Grid
to clear it. Be CAREFULL. If element size is too low this will crash UE. - Click
Confirm Changes
to confirm and save plugin settings.
- Navigate to the
![image](https://private-user-images.githubusercontent.com/40425017/344383063-06dcb48c-58ff-42b8-92e1-7d9d118ee0e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzE1MTUsIm5iZiI6MTczOTI3MTIxNSwicGF0aCI6Ii80MDQyNTAxNy8zNDQzODMwNjMtMDZkY2I0OGMtNThmZi00MmI4LTkyZTEtN2Q5ZDExOGVlMGU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDEwNTMzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIyYzY3ZThlYTE3MDc3M2NjZTFhNjE4MDQzYzk0NDZkNWYxMDE0ZTk2OWI5MDlkNThiN2UxNTg3ZGU1MjQ2YzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lAarEPVwn5QLcAw0jnj1qcHaIHw5wZZO6Tpxq0yUSGg)