Announcement

Collapse
No announcement yet.

How to enable Chaos in 4.23

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to enable Chaos in 4.23

    Follow these steps to enable Chaos in 4.23 (new documentation)

    NOTE: This will enable Chaos for all of your Blueprint and C++ projects. If you'd like to enable Chaos per project, you will have to add the new target lines to your project's Target.cs file and create a C++ project (it won't work with a Blueprint project).

    Follow these steps to open the Chaos Destruction Demo:

    1. Download the Chaos Destruction Demo from the Learn tab on the Epic Games Launcher.

    2. Download 4.23 from Github (source build is required until Chaos is out of Beta).

    3. After you setup your GitHub build (you don't need to compile it), move the ChaosDestructionDemo folder into the same folder that you unzipped the GitHub build to.

    4. Run GenerateProjectFiles.bat.

    5. Open the created UE4.sln.

    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.

    NOTE: If you want to create your own project, you will have to follow the steps outlined in the "Follow these steps to enable Chaos in 4.23" section.

    7. Once it's done, you can launch the sample from Visual Studio with F5 (or Ctrl+F5, which will launch without debugging attached).

    NOTE: If you don't have the Epic Games launcher installed, this will be the only way you can launch it. Double-clicking the ChaosDestructionDemo.uproject will not work (you'll get an error message).

    8. If you do have the launcher installed you should be able to open it by double-clicking the uproject.

    Break all the things!

    RESOURCES:

    Chaos Documentation





    Feel free to use this thread for discussions related to Chaos. We appreciate your feedback!
    Last edited by VictorLerp; 09-04-2019, 05:11 PM.

    #2
    Originally posted by VictorLerp View Post
    (it won't work with a Blueprint project).
    Will it work with blueprint only projects at the final release ?
    Nilson Lima
    Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
    Join us at Discord: https://discord.gg/uFFSEXY

    UE4 Marketplace: Cloudscape Seasons
    supporting: Community FREE Ocean plugin

    Comment


      #3
      Originally posted by VictorLerp View Post
      Follow these steps to enable Chaos in 4.23 Preview:

      1. Download 4.23 Preview from Github (source build is required, and we recommend you grab the latest preview version)
      2. Add the following in the UE4Editor.Target.cs file:
      Code:
      bCompileChaos = true;
      BuildEnvironment = TargetBuildEnvironment.Unique;
      3. Make sure the following plugins are enabled:

      ChaosEditor
      Planar Cut
      Editable Mesh
      Geometry

      4. Build!

      NOTE: This will enable Chaos for all of your Blueprint and C++ projects. If you'd like to enable Chaos per project, you will have to add the lines under step 2 to your project's Target.cs file and create a C++ project (it won't work with a Blueprint project).

      Feel free to use this thread for discussions related to Chaos. We appreciate your feedback!
      In Step 3, I can't find a plugin called Editable Mesh or Geometry. For ChaosEditor and PlanarCut, everything seems to already be set to true... except for "Installed," which is set to false.
      Alex Coulombe
      Creative Director
      Agile Lens: Immersive Design
      New York City
      www.agilelens.com

      Comment


        #4
        Originally posted by VictorLerp View Post
        Follow these steps to enable Chaos in 4.23 Preview:

        3. Make sure the following plugins are enabled:
        ChaosEditor
        Planar Cut
        Editable Mesh
        Geometry
        ohhh those look fun, I can't wait to try it out!
        Crystal Flux a Snowboarding Shooter:https://twitter.com/GadzGamz
        Pinball Template:http://www.pinterest.com/gadzgamz/pinball-template/
        Hot Springs Air Hockey: Hot Springs
        Latest release: Bonsai Golf Coral

        Comment


          #5
          Is it just me, or fractured geometry collection objects are not getting simulated? They just hang on air...

          Comment


            #6
            Will this change anything regarding PhysX as we are actually turning on Chaos? or just using it as a plugin for fracture and threaded destruction at present.

            Comment


              #7
              Originally posted by VictorLerp View Post

              Code:
              bCompileChaos = true;
              BuildEnvironment = TargetBuildEnvironment.Unique;
              Not having any luck adding this. Would you be able to post what your UE4Editor.Target.cs file looks like?

              Thank you,

              PatS

              Comment


                #8
                Originally posted by pstarace View Post

                Not having any luck adding this. Would you be able to post what your UE4Editor.Target.cs file looks like?

                Thank you,

                PatS
                Originally posted by VictorLerp View Post
                Follow these steps to enable Chaos in 4.23 Preview:

                1. Download 4.23 Preview from Github (source build is required, and we recommend you grab the latest preview version)
                2. Add the following in the UE4Editor.Target.cs file:
                Code:
                bCompileChaos = true;
                BuildEnvironment = TargetBuildEnvironment.Unique;
                3. Make sure the following plugins are enabled:

                ChaosEditor
                Planar Cut
                Editable Mesh
                Geometry

                4. Build!

                NOTE: This will enable Chaos for all of your Blueprint and C++ projects. If you'd like to enable Chaos per project, you will have to add the lines under step 2 to your project's Target.cs file and create a C++ project (it won't work with a Blueprint project).

                Feel free to use this thread for discussions related to Chaos. We appreciate your feedback!
                same for me.

                Comment


                  #9
                  I've tried to generate Geometry Collection asset but immediately editor crashed.
                  Here is UE4Editor.Target.cs code I've changed.
                  Code:
                  using UnrealBuildTool;
                  using System.Collections.Generic;
                  
                  public class UE4EditorTarget : TargetRules
                  {
                      public UE4EditorTarget( TargetInfo Target ) : base(Target)
                      {
                          Type = TargetType.Editor;
                          bCompileChaos = true;
                          BuildEnvironment = TargetBuildEnvironment.Unique;
                          ExtraModuleNames.Add("UE4Game");
                      }
                  }
                  }
                  Last edited by tekktekk128; 07-13-2019, 09:02 AM.

                  Comment


                    #10
                    VictorLerp do the three plugins, that you have listed as requirement (Planar Cut, Editable Mesh and Geometry), have anything to do with the new advanced programmatic mesh features that we can see on trello?

                    Comment


                      #11
                      Originally posted by VictorLerp View Post
                      Follow these steps to enable Chaos in 4.23 Preview:

                      1. Download 4.23 Preview from Github (source build is required, and we recommend you grab the latest preview version)
                      2. Add the following in the UE4Editor.Target.cs file:
                      Code:
                      bCompileChaos = true;
                      BuildEnvironment = TargetBuildEnvironment.Unique;
                      3. Make sure the following plugins are enabled:

                      ChaosEditor
                      Planar Cut
                      Editable Mesh
                      Geometry

                      4. Build!

                      NOTE: This will enable Chaos for all of your Blueprint and C++ projects. If you'd like to enable Chaos per project, you will have to add the lines under step 2 to your project's Target.cs file and create a C++ project (it won't work with a Blueprint project).

                      Feel free to use this thread for discussions related to Chaos. We appreciate your feedback!

                      I built you with Chaos enabled as described, but it crashes when I start the engine.
                      It looks like the shaders are not loaded, but do you need anything else?

                      Click image for larger version

Name:	20190714_14h42_01.png
Views:	1158
Size:	145.4 KB
ID:	1642134 ​​​​​​​

                      Comment


                        #12
                        > I built you with Chaos enabled as described, but it crashes when I start the engine.
                        > It looks like the shaders are not loaded, but do you need anything else?

                        This issue will be raised by loading WindowsMixedRealityPlugin at PostEngineInit phase. Normally it will be loaded at PostConfigInit.
                        You can set EnableByDefault true in WindowsMixedRealityPlugin.uplugin to fix it temporarily.

                        Comment


                          #13
                          I am trying to use Chaos witn 4.23.1. Installed from the launcher. Will Chaos work with the 4.23.1 from the launcher? When I create geometry collection and then click on it Unreal crashes.

                          Comment


                            #14
                            Originally posted by theProfessor View Post
                            I am trying to use Chaos witn 4.23.1. Installed from the launcher. Will Chaos work with the 4.23.1 from the launcher? When I create geometry collection and then click on it Unreal crashes.
                            It won't work from the version at launcher. You need to build the engine by source as the steps on the 1st post, and if you are not familiar with source build I recommend for you to wait when 4.23 releases.
                            Nilson Lima
                            Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
                            Join us at Discord: https://discord.gg/uFFSEXY

                            UE4 Marketplace: Cloudscape Seasons
                            supporting: Community FREE Ocean plugin

                            Comment


                              #15
                              I just loaded into Github. Where is 4.23 source? I did compile 4.10. And it worked. It was a while ago.

                              Comment

                              Working...
                              X