Announcement

Collapse
No announcement yet.

access foliage instances during runtime?

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

    access foliage instances during runtime?

    Is it possible to access instances of foliage and grass during runtime? An example usage could be changing scale etc
    Last edited by OverHertz; 11-07-2016, 08:19 AM.
    Developer of the Ziron Programming Language and Assembler

    #2
    This is possible if you use something like a trace and hit the foliage actor you can get the actor and the hit foliage index then you get the instance from the actor with that index and you can edit that instances variables.

    Comment


      #3
      Check this: http://blueprintue.com/blueprint/347jlkf6/
      on Get all actors of class, select "Instanced Foliage Actor"

      Comment


        #4
        Thanks DjSt3rios, but it seems to always fail.

        Edit, sorry I see it is working for regular foliage but not grass, thanks I will have a fiddle around with this much appreciated for quick response and help.
        Last edited by OverHertz; 11-07-2016, 10:45 AM.
        Developer of the Ziron Programming Language and Assembler

        Comment


          #5
          After some fiddling, everything works, but still no grass, any suggestions on getting grass foliage

          Developer of the Ziron Programming Language and Assembler

          Comment


            #6
            Originally posted by OverHertz View Post
            After some fiddling, everything works, but still no grass, any suggestions on getting grass foliage

            on "Get Child Component", change the index from 0 to 1, or 2, what I did was to read all of the children to find the correct IDs

            Comment


              #7
              Originally posted by DjSt3rios View Post
              on "Get Child Component", change the index from 0 to 1, or 2, what I did was to read all of the children to find the correct IDs
              This only works for painted foliage, but I am also trying to get it to work with the material landscape grass node without success. The type seems to be "FoliageType_InstancedStaticMesh, but since it is not considered an actor class, it can't be selected.
              Developer of the Ziron Programming Language and Assembler

              Comment


                #8
                I am a bit confused with what you are trying to achieve. How do you place the grass in the world?

                Comment


                  #9
                  I am using the LandscapeGrassOutput node inside my material, in reality what I would like to do is occasionally grab the grass instances, update colour and scale based on the age of the grass.
                  Developer of the Ziron Programming Language and Assembler

                  Comment


                    #10
                    Aaron's system does exactly this, i use it to change my grass color and scale throughout the year, it works with the LandscapeGrassOutput
                    https://forums.unrealengine.com/show...Sprite-foliage
                    CEO of Prydetech

                    https://www.artstation.com/ixicalibur

                    Originally posted by ixicalibur
                    Here you go, this is a link to every tutorial you could ever need plus instructions to access all the collective knowledge of mankind: [Super massive awesome link that every amazing game developer uses to instantly learn to be super awesome at making stuff]

                    Comment


                      #11
                      Thanks ixicalibur, I will check out his blueprints.
                      Developer of the Ziron Programming Language and Assembler

                      Comment

                      Working...
                      X