Automated Terrain Collisions

MantoManto Member Posts: 796
edited September 2014 in Working with GS (Mac)

Here's a video of terrain collisions I've been working on:

Website link:

http://mantuapps.com/gs/ce/



Link to the project file:

https://www.dropbox.com/s/j0jxqw5jsbwo83z/GS Terrain v4.gameproj.zip?dl=0

How to use:

1. Upload an image to the website http://mantuapps.com/gs/ce/

2. The image is analysed and a .csv file is created

3. Import the .csv file to the table in GS Terrain project

4. Choose a value for game.modifier. The value defines the precision of the terrain. The lower the more actors and the better collisions, but also increased RAM & CPU usage.



Let me know what you think. Is it useful for you? Do you think something should be done differently?

«1

Comments

  • BBEnkBBEnk Member Posts: 1,764

    Awesome! nice work.

  • saif_shammarisaif_shammari Member Posts: 128

    Amazing job
    Absolutely useful

  • ArmellineArmelline Member, PRO Posts: 5,419

    That is absolutely awesome. I would completely love to have a play around with this.

  • JSprojectJSproject Member Posts: 730

    @Manto1 super cool stuff!

  • LovejoyLovejoy Member Posts: 2,078

    Really nice!

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    This is beyond words -- it's fabulous. It's so amazing, in fact, that awarded you a very nice badge. : )

    Thanks for sharing, and I would love to tinker with it, too!

  • -Timo--Timo- Member Posts: 2,313
    edited September 2014

    ......... That is .... AWESOME!
    Realy cool!
    Definitely useful! Cant wait to play around with it.

  • SocksSocks London, UK.Member Posts: 12,822
    edited September 2014

    Typical off-the-scale genius from Mantou !! Like his other stuff not just clever but genuinely useful, I still think the kinds of tools that Mantou creates (game creation tools) are what GS should have been working on for years rather than tweet sheets and more ad networks.

  • ArmellineArmelline Member, PRO Posts: 5,419

    @Socks is absolutely right. What @Manto1 does is take GameSalad and extend it to overcome its limitations, and always with impressive results :D Great stuff!

  • beefy_clyrobeefy_clyro Member Posts: 5,394

    Love this!

  • MantoManto Member Posts: 796
    edited September 2014

    Wow. Didn't expect so many people to find it useful. Thanks for letting me know!

    I've now added the links.

    @Braydon_SFX said:
    This is beyond words -- it's fabulous. It's so amazing, in fact, that awarded you a very nice badge. : )

    Thanks for the badge! :blush:

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Wow, that is really impressive!

  • RondoRocketRondoRocket Member Posts: 411

    Great stuff! Thanks for sharing!

  • AlchimiaStudiosAlchimiaStudios Member Posts: 1,069

    Nice, seems pretty useful.

  • SocksSocks London, UK.Member Posts: 12,822

    I can't get the online CSV generator to work, I've uploaded an image (I even stuck to the default PND included in the project) but after I've selected my image, and hit 'choose' nothing happens, I just return to the main page, with my selected image title now on right of the 'choose file' button . . . . ?

    Am I being stupid ? :)

  • gamestudentgamestudent Member Posts: 504

    Wow. the things you've made possible... Could I upload a triangle shape and would it work? Thanks dude.

  • TheGabfatherTheGabfather Member Posts: 633

    OMG

  • vikingviking Member, PRO Posts: 322

    I had the same problem uploading a file... But I can see how this stuff will be amazing! Great job! Hope it works soon so we can test it :) Now, you mentioned that it can be expensive so I have one question: Does it differentiate between curved surfaces and straight ones? For example, if I have an image with lots of undulations on the left half and a straight horizontal line on the right half, do I get fewer collision points from the right hand side of the image? If no, is it difficult to add?

  • BBEnkBBEnk Member Posts: 1,764

    @Socks said:
    I can't get the online CSV generator to work, I've uploaded an image (I even stuck to the default PND included in the project) but after I've selected my image, and hit 'choose' nothing happens, I just return to the main page, with my selected image title now on right of the 'choose file' button . . . . ?

    Am I being stupid ? :)

    I noticed this did not work for me in Safari had to use Google Chrome.

  • MantoManto Member Posts: 796
    edited September 2014

    Thanks all. Would be nice to see what you can do with it. Maybe post here when you have something to show?

    @Socks said:
    I can't get the online CSV generator to work

    @Socks Are you using Safari? It seems that it doesn't work on it like BBEnk said. I'll try to find a way to fix it, but for now you'll have to use Chrome.

    @gamestudent said:
    Wow. the things you've made possible... Could I upload a triangle shape and would it work? Thanks dude.

    Thank you! Only the upper part of the triangle would have collisions. I could try adding collisions all around the image, but that's much more difficult.

    @viking said:
    Does it differentiate between curved surfaces and straight ones? For example, if I have an image with lots of undulations on the left half and a straight horizontal line on the right half, do I get fewer collision points from the right hand side of the image? If no, is it difficult to add?

    At the moment no. What the game.modifier does is it tells every how many pixels it adds a collision line actor. So if it's 10, it adds a new actor every 10 pixels. But yes, it could be a feature in the future.

  • vikingviking Member, PRO Posts: 322

    Thanks for the answer. This feature would be amazing for my project! I have some areas that need lots of collision points and very large areas that are completely flat. With this tool I could make the collision really accurate. If you make the tool read flat areas as one collision actor then this could be really efficient as well :)

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    I downloaded the csv and imported it into GameSalad - however, the collisions are way off to the image I uploaded - it was the orange landscape image that came in your file, @Manto1‌ - Any suggestions?

  • -Timo--Timo- Member Posts: 2,313
    edited September 2014

    @Braydon_SFX said:
    I downloaded the csv and imported it into GameSalad - however, the collisions are way off to the image I uploaded - it was the orange landscape image that came in your file, Manto1‌ - Any suggestions?

    Change game.modifier to 10?

    If you press 5 it should show the actors for collision. 5 didnt work for me so changed the rule to space. Then you also have to move the image so it fits inside the collision actors.

    It works great for me @manto1 thanks for sharing!! :)

  • MantoManto Member Posts: 796
    edited September 2014

    @viking said:
    Thanks for the answer. This feature would be amazing for my project! I have some areas that need lots of collision points and very large areas that are completely flat. With this tool I could make the collision really accurate. If you make the tool read flat areas as one collision actor then this could be really efficient as well :)

    Hmm, I think I have an idea for it. I'll try it later.

    Another solution might be using a "streamed collision line system". I use it myself in a Hill Climb Racing style project. The lines are moved when the player goes past them. So there's only 54 collision line actors, even though the scene is over 12000 pixels wide.

    @Braydon_SFX said:
    I downloaded the csv and imported it into GameSalad - however, the collisions are way off to the image I uploaded - it was the orange landscape image that came in your file, Manto1‌ - Any suggestions?

    Are the collision lines looking similar to the terrain? Can you send a screenshot?

    You can press 'S' to show the lines.

  • Ed_PerkinEd_Perkin Midlands,UKMember Posts: 346

    Mate ,that is insane use of Gamesalad :)

  • MantoManto Member Posts: 796
    edited September 2014

    I updated the site. It should now be easier to use. The modifier is set on the website instead of the project. You can now see how the collision lines will be spawned right on the website.

    You'll need to use a new project with it, you can download it here: https://www.dropbox.com/s/h5f6ux6uucgmil4/GS Terrain v5 Release.zip?dl=0

    It's still not working on safari.

    @Ed - Turret Games said:
    Mate ,that is insane use of Gamesalad :)

    Thanks :)

  • robertkdalerobertkdale USAMember Posts: 912

    Thank you for sharing ☺️

  • colandercolander Member Posts: 1,610

    Very impressive and thank you for sharing it.

  • MantoManto Member Posts: 796

    I see only a few people have used the website. Would you prefer to have a standalone application?

  • SocksSocks London, UK.Member Posts: 12,822

    @Manto1 said:
    I see only a few people have used the website. Would you prefer to have a standalone application?

    Yeah ! The website thing never worked for me : (

Sign In or Register to comment.