Announcement

Collapse
No announcement yet.

Can you save 'objects' that are made from multiple meshes?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can you save 'objects' that are made from multiple meshes?

    From an asset and memory standpoint, it's always good to be re-using meshes and assets. Let's say I have a wall asset and I make a 4 walled room out of it in Unreal. Is there a way to then group and save those 4 walls in that configuration so I can drag and drop it into my scene whenever I want a basic 4 walled room?

    What's the proper way to think about this?
    Trevor Lee

    #2
    Hi Hyperloop -

    UE4 does have the ability to group assets in the level editor, simply click the static meshes and CTRL-G (Group). You can then duplicate the group in the level as necessary.

    Hope that helps -

    Eric Ketchum

    Comment


      #3
      Eric, awesome, thank you for the reply. Is it possible to save that group into the asset browser? Or possibly even use it in a construction script?
      Trevor Lee

      Comment


        #4
        One way to think about it is how to make things modular using a single element that can be instanced, modified, and combined as part of the whole.

        Lets say we want a wooden window frame. Thinking about it the frame is made up of 4 elements that at its root is a single 2x4 so by copy instancing the frames footprint is and will always be equal to the single 2x4 no matter how many you make.

        Instance copying is a rather import part of maintaining an efficient environment in UE so your original premise of re-using mesh and assets, including materials, is the right direction.
        Clarke's third law: Any sufficiently advanced technology is indistinguishable from magic.
        Custom Map Maker Discord
        https://discord.gg/t48GHkA
        Urban Terror https://www.urbanterror.info/home/

        Comment


          #5
          Originally posted by FrankieV View Post
          One way to think about it is how to make things modular using a single element that can be instanced, modified, and combined as part of the whole.

          Lets say we want a wooden window frame. Thinking about it the frame is made up of 4 elements that at its root is a single 2x4 so by copy instancing the frames footprint is and will always be equal to the single 2x4 no matter how many you make.

          Instance copying is a rather import part of maintaining an efficient environment in UE so your original premise of re-using mesh and assets, including materials, is the right direction.
          Thanks for confirming that! It looks like groups and grouping is pretty instrumental for organizing all that. Do you happen to know if there's a method of saving groups in the asset browser?
          Trevor Lee

          Comment


            #6
            Hey Hyperloop -

            OK so a better way to do this grouping is to build your room in the level and then make sure all of the pieces of the room are selected then in the Details panel (while they are ALL selected) scroll down under Blueprint and click on Replace with Composite Blueprint, this will save the arrangement of actors into a blueprint which is savable in the content browser.

            Comment


              #7
              Originally posted by Hyperloop View Post
              Thanks for confirming that! It looks like groups and grouping is pretty instrumental for organizing all that. Do you happen to know if there's a method of saving groups in the asset browser?
              Welllllll at the moment asset management, source control, and cross project sharing is not as good as it should or can be but I think this lack of key features was an intentional decision on the part of Epic to figure out how it should be done once UE4 was release to the general public.

              In my opinion source control and asset management is a huge requirement be it a small or large project and having a source control that does not take into consideration Internet based projects would turn into a huge disaster rather quickly so it's somewhat of a chicken versus the egg problem at the moment.

              As for saving content in the asset browser once it's in it's in so I'm assuming you are referring to migration of a fixed asset from one project to another which for now you can use the “Migrate” feature under file.
              Clarke's third law: Any sufficiently advanced technology is indistinguishable from magic.
              Custom Map Maker Discord
              https://discord.gg/t48GHkA
              Urban Terror https://www.urbanterror.info/home/

              Comment


                #8
                Hi FrankieV,

                I guess I don't quite follow your comment about asset management. The approach that Eric posted will work fine with source control: create a Blueprint with the placed meshes and check that BP in, then anyone else on the team can use it as well.

                Cheers,
                Michael Noland

                Comment


                  #9
                  Originally posted by Michael Noland View Post
                  Hi FrankieV,

                  I guess I don't quite follow your comment about asset management. The approach that Eric posted will work fine with source control: create a Blueprint with the placed meshes and check that BP in, then anyone else on the team can use it as well.

                  Cheers,
                  Michael Noland
                  Understandable as the problems we are having are related more towards our unique needs as to asset sharing that I'm a bit uncomfortable about going into to much detail over, NDA and all that stuff wink wink, but as an Internet based development team with members all around the world adhoc sharing can become a serious problem.
                  Clarke's third law: Any sufficiently advanced technology is indistinguishable from magic.
                  Custom Map Maker Discord
                  https://discord.gg/t48GHkA
                  Urban Terror https://www.urbanterror.info/home/

                  Comment


                    #10
                    Originally posted by Hyperloop View Post
                    Eric, awesome, thank you for the reply. Is it possible to save that group into the asset browser? Or possibly even use it in a construction script?
                    Do not bother with saving as one asset, instead make construction script and randomize each element as instanced static mesh.
                    Watch hourences movies about him making that new survival game, lots of great ideas, they literally save hundreds of work hours in developing game.

                    Comment


                      #11
                      Hi, one question related to grouping meshes. I read this post from Housenses (http://www.hourences.com/tutorials-mesh-rendering/ ) and have a question. If i have fifteen bottles, and i group it, they are saving memory/cpu grouped ? or i need make one single mesh and import it to save performance. Thanks for the answer, sorry my english

                      Comment


                        #12
                        I think I understand the scenario, what you want to do is:

                        1) Select all the meshes you wish to save as one object.
                        2) Right click on one of the selected meshes.
                        3) Click on "Convert Actors to Static Mesh"
                        4) Select a location to save the new object.
                        Attached Files

                        Comment


                          #13
                          I have a similar question. I have a mesh, chair, comprised of multiple parts for moveable animations, e.g levers, tilt, etc.
                          the idea is to also be able to swap out material type, e.g. cloth, vinyl, mesh via blueprint variables.
                          Will I be able to do this?

                          Comment

                          Working...
                          X