Announcement
Collapse
No announcement yet.
How to enable Chaos
Collapse
This is a sticky topic.
X
X
-
GollumZz repliedI still has problems to run ChaosDestructionDemo, does that have a way to work?
my steps are
1, download the unreal engine from github, branch 4.25.0-release
2, follow the guide, modify UE4Editor.Target.cs and build UE4 with Chaos, https://docs.unrealengine.com/en-US/...iew/index.html
3, download ChaosDestructionDemo project and generate sln file with 4.25 engine
4, build and run, the problem happened with below
Code:LogInit: Display: Running incorrect executable for target. Launching Unreal Projects/ChaosDestructionDemo/Binaries/Win64/ChaosDestructionDemoEditor.exe... LogCore: Engine exit requested (reason: EngineExit() was called) LogExit: Preparing to exit.
Code:public UE4EditorTarget( TargetInfo Target ) : base(Target) { Type = TargetType.Editor; BuildEnvironment = TargetBuildEnvironment.Unique; bBuildAllModules = true; ExtraModuleNames.Add("UE4Game"); bCompileChaos = true; bUseChaos = true; bOverrideBuildEnvironment = true; }
Last edited by GollumZz; 05-31-2020, 06:27 AM.
Leave a comment:
-
Rainoxer repliedOriginally posted by RoboticHuman View PostVictorLerp, Can you please help with enabling Chaos in 4.25? It seems a lot of people are facing issues but no one is responding from Epic's side
The problem is the demo.
Leave a comment:
-
RoboticHuman repliedVictorLerp, Can you please help with enabling Chaos in 4.25? It seems a lot of people are facing issues but no one is responding from Epic's side
Leave a comment:
-
Rainoxer repliedOriginally posted by RoboticHuman View Post
Seems like the only possible way through my experiments is to use the variable bOverrideBuildEnvironment in your project EditorTarget cs file.
Code:bCompileChaos = true; bUseChaos = true; bOverrideBuildEnvironment = true;
My 4.25 demo runs if I follow the documentation's steps. However, if I want to launch it from the UE4Editor.exe I generated, it tells me "this project was built with a different engine, rebuilt now?" and then the rebuild fails.
My ChaosDestructionDemoEditor.Target.cs file contains this :
Code:Type = TargetType.Editor; ExtraModuleNames.AddRange( new string[] { "ChaosDestructionDemo" } ); bCompileChaos = true; bUseChaos = true; bCompilePhysX = true; bCompileAPEX = true; bCompileNvCloth = true; bCustomSceneQueryStructure = true; BuildEnvironment = TargetBuildEnvironment.Unique;
Code:bUseChaos = true;
Code:BuildEnvironment = TargetBuildEnvironment.Unique;
Code:bOverrideBuildEnvironment = true;
Code:bUseChaos = true;
To resume, I can work with the demo by following the documentation's steps, but it requires to keep a dedicated engine only for it because there is a problem with this step from the documentation :
"6. Build the ChaosDestructionDemo for Development Editor (should be the default Visual Studio configuration). This will build the whole engine, with Chaos, since it's already setup in the project's Target file." -> this does not generate an UE4Editor.exe
So I have a 2nd engine I built the "classic" way, with Chaos working great and a generated .exe, but I cannot open the Demo with this one... Really weird.Last edited by Rainoxer; 05-27-2020, 07:47 PM.
Leave a comment:
-
RoboticHuman repliedOriginally posted by X Grigry X View Post
Did you get your explanation? Because I can't make it work here... Could you show the different steps please?
Code:bCompileChaos = true; bUseChaos = true; bOverrideBuildEnvironment = true;
- 1 like
Leave a comment:
-
X Grigry X repliedOriginally posted by theProfessor View PostI have compiled the source for 4.25. And created the project for Chaos for 4.25. I need an explicit explanation on getting Chaos to work with 4.25. Thanks.
Leave a comment:
-
catalejo repliedHello. I was able to compile 4.25 with the template demo following the instructions but when i run the default map, it starts fine but it crashes once it starts simulating (after pressing a button in the map), any pointers?
Leave a comment:
-
Rainoxer repliedOriginally posted by POTWD View PostGeneral perf question for everyone. There seems to be a perf gap since the 4.23 release of chaos, at least within the test levels. On the order of 10-12ms increase for the same content. And in some instances what had been running smoothly in 4.23 (the scripted destruction of the building in the "Geometry_Collections" level) can dip way down into the red, teens and single digits in 4.24 and 4.25.
I'm assuming this is true for everyone else and not something specific to my build(s). Is that correct?
Leave a comment:
-
Rainoxer repliedOriginally posted by POTWD View Post
I'm still new to the system but would adjusting the "max cluster level" on the geometry cache get you what you want? I believe its intent is to help stop meshes from breaking to the smallest pieces that have been fractured/clustered. It isn't exactly the technique you are asking about but might provide the control you are after?
No, this is not the control I am looking for.
I WANT to fracture very small pieces, however because of their small size they have cannot hurt players when hitting them, or provide cover. These small pieces are literally useless once removed from their original spot, which is why I want to delete them instantly.
You just have to spawn some dust FX to hide this trick.
This trick is described here : https://www.gdcvault.com/play/102330...Destruction-in
and here : https://www.gdcvault.com/play/102300...Destruction-in
Leave a comment:
-
POTWD repliedGeneral perf question for everyone. There seems to be a perf gap since the 4.23 release of chaos, at least within the test levels. On the order of 10-12ms increase for the same content. And in some instances what had been running smoothly in 4.23 (the scripted destruction of the building in the "Geometry_Collections" level) can dip way down into the red, teens and single digits in 4.24 and 4.25.
I'm assuming this is true for everyone else and not something specific to my build(s). Is that correct?
- 1 like
Leave a comment:
-
POTWD repliedOriginally posted by Rainoxer View PostDoes someone know if it is possible to filter chunks based on their volume/weight, and delete them instead of spawning them when applying strain on a destructible mesh?
I don't want to have 100 small chunks spawning, rolling around and reducing performances when I can simply replace them with Niagara and only keep the large ones...
Leave a comment:
-
Rainoxer repliedDoes someone know if it is possible to filter chunks based on their volume/weight, and delete them instead of spawning them when applying strain on a destructible mesh?
I don't want to have 100 small chunks spawning, rolling around and reducing performances when I can simply replace them with Niagara and only keep the large ones...Last edited by Rainoxer; 05-22-2020, 08:28 AM.
Leave a comment:
-
theProfessor repliedOriginally posted by Dealman View PostI haven't tried yet but I'm guessing maybe the ChaosDestructionDemo is necessary for it to compile properly? I tried to compile UE 4.25 but without the demo as I figured I just wanted to play around myself.
That's the only thing I can think of since, built UE4 from source before just fine so it's certainly something with Chaos. :/
Leave a comment:
-
Dealman repliedI haven't tried yet but I'm guessing maybe the ChaosDestructionDemo is necessary for it to compile properly? I tried to compile UE 4.25 but without the demo as I figured I just wanted to play around myself.
That's the only thing I can think of since, built UE4 from source before just fine so it's certainly something with Chaos. :/
Leave a comment:
Leave a comment: