User Tag List

Results 1 to 10 of 10

Thread: New feature request: Low resolution collision test flag

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb New feature request: Low resolution collision test flag

    I wonder if it would be possible to add a new flag to MMF specifically for iOS, Android etc called 'Low resolution collisions' along with a resolution factor setting?

    In my game I tried placing in a rotating active object that was a specific shape that the player had to avoid. This works fine in Windows but on iOS, including iPad2/iTouch 4th Gen devices, the frame rate dropped to around 30FPS when the player and the rotated object were in proximity of each other. The rotating object is quite large, 256x256 but even making it smaller or breaking up into several active objects didn't help. I also tried after the recent optimisations but it was more or less the same.

    I understand why performance takes this hit and I now have lots of smaller active objects that don't rotate themselves, but move in a rotating path around the centre point to make the same shapes I wanted. This method is nice and quick and achieves what I want but at the expense of how it looks.

    I was wondering if some performance can be clawed back at the expense of accuracy by offering a low resolution collision option?

    My thinking is if you choose to tick this option on an active object, any collision tests that involve this object would be done with a smaller collision mask resolution. For example, if I have a 256x256 object that is rotating, MMF by default has to create a mask in memory that is a minimum of 256x256 in size but most of the time will be bigger as the object rotates before testing if a collision has occurred. With the flag on and the resolution set to 1/2, the size comes down to upwards from 128x128 and the collision accuracy is still good. Even if the resolution factor is set to 1/4 the collision accuracy would still be pretty good but the size of the object for collision testing goes down to around the 64x64 size. It would mean that all objects that are affected by the low resolution test would need to be scaled down do the performance boost could be significant with an acceptable trade off on accuracy.

    This would of course be an optional setting if it could be implemented.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Great idea. I'll second this.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export Module
    colej_uk's Avatar
    Join Date
    Nov 2006
    Location
    UK
    Posts
    739
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Good idea, I've noticed that the collision masks can take up a lot of performance. I'm using the 'fine collision detection' disabled option in my more complex projects to compensate, but this would be a great middle option.

    Even better, a customisable collision mask would be really cool. As in the ability to edit the collision mask in the same way as an alpha channel for example. At the moment, if you want an element in your game to only collide with a portion of an active object, you have to create multiple active objects- and then making multiple instances behave as one can be a bit of a nightmare. A customisable collision mask would help a lot with this. Maybe a mmf3 feature? I imagine this would be really useful in all runtimes.

  4. #4
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    The custom collision mask is in the wishlist for MMF3. Let's hope that it will be implemented.

  5. #5
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I am working on a further improvement to the collision system that should take far less CPU than now.
    I don't think it will be in the next release, but it should hopefully be in the next

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Great stuff Andos, exactly what we need!

  7. #7
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export Module
    colej_uk's Avatar
    Join Date
    Nov 2006
    Location
    UK
    Posts
    739
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Great news

  8. #8
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Great stuff.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Diablohead's Avatar
    Join Date
    Jun 2006
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    faster collisions is always a good thing, thanks

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks Andos!

Similar Threads

  1. appairage automatique et test de collision
    By Cyberclic in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th May 2013, 11:07 AM
  2. Collision Test for Roseweave
    By Brandon in forum File Archive
    Replies: 0
    Last Post: 17th June 2008, 04:31 PM
  3. Request - Changing Multiline "Flag" in ASB
    By LIJI in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th July 2007, 06:43 PM
  4. [feature request] Point of collision
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th November 2006, 03:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •