User Tag List

Results 1 to 7 of 7

Thread: Looking to resize a subapp at runtime... or better

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Looking to resize a subapp at runtime... or better

    I've gotten a few questions via PM on DC about related issues to this and some other tangentially HWA concerns, so I figured it would be good to sort it out now.


    I'm working on a project that needs to display only a portion of the rendered frame at a time. This is because the display (a 512x512 frame) has to be rotated, so only a 362x362 square can be visible without revealing the 'edges' as it rotates.


    This was easy enough to accomplish via subapplications- using a 362x362 frame level that loads a 512x512 frame level, and even allows me to dynamically resize the display to preset subapplications at runtime. IE, I have a 1x scale and 2x scale frames that can be traded off.



    My problem comes with trying to make this fullscreen. If I use the built in fullscreen options, the frame is cut back and you see the entire subapplication, rather than just the 362x362 portion resized- even when resizing is active. If I load the frame directly instead of via subapp, you get the full area including the 'edges' that I don't want- and the aspect ratio is quite messed up.


    The easiest way I could think of making fullscreen is to allow the system to resize the subapplication's X/Y dynamically at runtime- change it to fit the fullscreen sizes of the user's computer (which I can retrieve from the window object).

    But from what I can tell- you can't resize subapplications at runtime, can you? Theres no option for it, and I've been tinkering around with the properties and haven't found anything that would let me.

    Is there any way to get fullscreen to this effect? Whether by resizing a subapplication and frame to stretch and crop it, or to directly load the level?

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking to resize a subapp at runtime... or better

    I know it doesn't make sense but to resize sub app you need to have them big enough to resize in the first place. Just tick "Resize to screen size at start" to make the frame big enough. Since a window in Windows cannot be larger than the screen size anyway, this works fine and all you need to do it position and resize objects inside the frame based on the client size and not the frame or window size.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking to resize a subapp at runtime... or better

    Doesn't seem to work, unfortunately. That just resizes the frame of the level that the subapplication is displaying- but keeps the subapplication the same size. So instead of a 512x512 frame area displaying in a 512x512 subapp cropped in a 362x362 frame, I have a 1600x900 frame area displaying in a 512x512 subapp cropped in a 362x362 frame- making it appear very "zoomed out"

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking to resize a subapp at runtime... or better

    Well, of course you have to do the resizing yourself. I was getting you started on it, I didn't mean that that was all you had to do!
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking to resize a subapp at runtime... or better

    Eh, the best idea I've come up with so far is just using the full 512x512 frame stretched to full screen via options, and then applying a pixel shader (same one doing the rotation effect, modified) that will stretch the image to the 362x362 center bit, and have to preserve aspect ratio somehow

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking to resize a subapp at runtime... or better

    I don't know if this is the least bit helpful. I just happened to see "preserve aspect ratio somehow" and thought I'd skim the thread to see if it would be appropriate to post:
    http://rickyrombo.byethost2.com/examples/Scaled%20Fullscreen.php

    If it can offer you any help. Sounds like it, but it's late and I'm probably mistaking.

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking to resize a subapp at runtime... or better

    MMm well thanks for the insight. I've managed to enable fullscreen, though its a bit sketchy on the efficiency. Using a pixel shader to do it seems quite the workaround... but it works!


    So yeah, take a looksy if you want. "Fullscreen" button seems to work:
    https://sites.google.com/site/claniraq/stuff/PlatformerHWA109.zip?attredirects=0&d=1

Similar Threads

  1. Replies: 4
    Last Post: 15th April 2008, 07:14 AM
  2. Frame resize during runtime?
    By twister in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th March 2008, 07:27 AM
  3. how to resize app at runtime, with control fix
    By neat_Kliker2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th June 2007, 02:47 PM
  4. Bug: Subapp and resize/move
    By Sphax in forum File Archive
    Replies: 1
    Last Post: 20th July 2006, 06:46 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
  •