Announcement

Collapse
No announcement yet.

Sparse Spatial Grid Plugin by Stormtide Ltd.

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

    #46
    Version 1.2 has been submitted, this fixes a couple of issues:
    • Object Bounds not being updated correctly (resulted in many valid queries being rejected with a small number of objects in the grid)
    • Pre-placed objects being registered even if the grid component is not active.
    I'm working on a revamped version of the plug-in that supports multiple grids at the same time, so object types can be separated etc. This will be more of an update for C++ users than BP users.
    Last edited by TheJamsh; 10-16-2018, 10:12 AM.

    Comment


      #47
      V1.2 is live!

      Version 2.0 is coming soon, which supports multi-layer grids for C++ users. Lot's of extra power and potential!

      Comment


        #48
        Do you have any tutorials? Would be very helpful to a noob like me
        Last edited by mc15601; 11-04-2018, 11:57 PM.

        Comment


          #49
          I'll probably do some when Version 2.0 drops, I've basically reworked the underlying system to be much more flexible for C++ users without compromising the existing functionality of Blueprint - so I'll get on that ASAP.

          Just testing version 2.0 in my own projects to make sure it's stable etc.

          Comment


            #50
            Originally posted by TheJamsh View Post
            I'll probably do some when Version 2.0 drops, I've basically reworked the underlying system to be much more flexible for C++ users without compromising the existing functionality of Blueprint - so I'll get on that ASAP.

            Just testing version 2.0 in my own projects to make sure it's stable etc.
            What new features are going to be in 2.0?

            Comment


              #51
              The main feature is the ability to have more than one grid. The grid data is now a template which makes it more flexible for C++ users. I'm using it to store different objects types in different grids.

              BP functionality is still the same, but given this is a performance/utility-oriented plugin I'm okay with that.

              Comment


                #52
                Is there any eta for the 4.21 version yet?

                Comment


                  #53
                  I'll see if I can get it out today. Sorry, been preoccupied!

                  Comment


                    #54
                    Version 2.0 is ready for approval, but unfortunately the Epic side of things is throwing a hissy fit everytime I try to submit the update. Waiting to hear back from technical support.

                    Comment


                      #55
                      Version 2.0 is now live for Engine Version 4.21!

                      The API has been dramatically improved. Grids are now template types, and the system supports multiple grids per world. You can create and update these however you choose. In this internal project below, I have separate grids for 'Game Objects' 'Radar Scanners' and Radar Jammers'. Each can be queried separately and are able to query each other.

                      This allows you to expose custom queries for your project that prevent the need to do any filtering, offering a speed boost and reduced virtual function calls.

                      This version is suitable for all platforms!

                      Click image for larger version

Name:	Grid.jpg
Views:	2
Size:	175.2 KB
ID:	1563633
                      Last edited by TheJamsh; 12-18-2018, 03:57 PM.

                      Comment


                        #56
                        Excellent, thanks for the all updates.

                        Comment


                          #57
                          I was running the beta launcher. The update was not showing up. On a whim, I opted out of the beta launcher and it shows up.

                          Comment


                            #58
                            Very interesting, a optimized spatial partition design pattern can be very useful in RTSs. Can be used for selection group units, minimap implementation, fog of war, can replace perception in AI implementation to detect possible targets.
                            Could this component hide inactive units in pooling? Have you ever done performance testing with a large number of moving actors (over a thousand, for example)?
                            I really got interested, I'll wait for the tutorial to better understand the possibilities of the system.

                            Comment


                              #59
                              That's pretty much exactly what it was developed for - my own game has RTS roots and it was essential to implement some kind of broad phase partioning. Spatial queries make up a huge chunk of time in RTS like games.

                              I haven't done any discrete performance testing - my only result was that it was considerably faster and more convenient than using physics or actor/object iterators to find objects I need to query often.

                              Comment

                              Working...
                              X