User Tag List

Results 1 to 4 of 4

Thread: Sprite boundaries

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sprite boundaries

    Since I'm making and intensive use of pixel shaders, I'm facing the sprite boundaries limitations: shaders only affect what's inside the sprite rectangle, and for example a skew shader (I'm using it for a shadow effect) distorts the image bending it until it's truncated because it extends out of the "box". If I want the complete effect I must expand the sprite boundaries with a lot of blank space, maybe 100, 200 blank pixels of additional width on the right and on the left.
    I suppose there's no way in the world I can expand the blank space in runtime in the events, since sprites are treated as bitmaps, right?
    So I should manually reposition the sprites inside a wider blank space, ok. Then, will this operation make the game heavier? In terms of memory, how much I'm going to lose with sprites five times bigger than before (given the fact the majority of their space is blank space)?
    When the whole thing will be zipped the blank space will shrink to almost nothing, but in runtime great amounts of blank pixels count as full bitmap pixels?

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Sprite boundaries

    With HWa it should not make a differnce.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sprite boundaries

    So a cropped bitmap character, say, 80*220 is the same (in terms of performance) of the same sprite but in a 320*220 box with wide blank space? Wow! That's good news.
    And in terms of .mfa filesize?

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Sprite boundaries

    Yes, the file size will be larger.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. platform movement object boundaries?
    By LIQUIDSEBBEY in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th August 2011, 05:59 PM
  2. iso object boundaries
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 1st May 2011, 03:22 PM
  3. Camera Movement & Boundaries
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th March 2010, 12:00 AM
  4. How do you all do your boundaries/collisions?
    By mussashimits in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 6th July 2008, 02:28 PM

Posting Permissions

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