User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Rotate entire screen without image trailing

  1. #1
    Clicker Fusion 2.5HTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2009
    Posts
    108
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Rotate entire screen without image trailing

    Hi guys--

    I'm wondering if someone can edit the existing rotation pixel shaders (there are a couple out there) or devise a new one that will eliminate the image trailing that occurs when you rotate the entire frame in runtime.

    Is it possible for the shader to draw from information that lies outside of the window, so that when the frame is rotated, previously out-of-range data comes in to fill the current gaps? I've attached an example of the problem, and if fixed it would simply look like the "camera" were being rotated around.

    Thanks!

    Example

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: Rotate entire screen without image trailing

    Its not possible to draw information from outside the frame. Everything not shown on your frame is a black abyss that isn't rendered. So that is why rotating causes the corners to appear black.

    What you *can* do is have your frame be larger than your window, and then rotate the frame while showing only the portion in the window. You will need a window of size 0.707 * frame size. For example, a 512x512 frame would be shown in a 362x362 window.

    Another alternative is to use a pixel shader to simply stretch the image on the frame to these same proportions. This would show the same area, but stretch the image.


    I have pixel shader examples of both of these you can feel free to use. The modified pixel shader you'd want you can find in this zip:
    https://sites.google.com/site/claniraq/stuff/PT_RotateFullScreen.zip?attredirects=0&d=1

    You can see it in use here:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=203073&page=1

  3. #3
    Clicker Fusion 2.5HTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2009
    Posts
    108
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate entire screen without image trailing

    Thanks Pixelthief-- that's what I was afraid of. The modified shader you supplied should work pretty well, as I would need to rotate the screen only for select modes in the game. A slight zoom-in wouldn't detract from the gameplay.

    Your game looks pretty cool, btw!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    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)
    Crian's Avatar
    Join Date
    Oct 2009
    Posts
    411
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate entire screen without image trailing

    Pixelthief, there is some way to rotate a 16:9 screen without deform the image?

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate entire screen without image trailing

    Only by using tricks to actually draw a 16:16 screen and only show 16:9 of it.

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: Rotate entire screen without image trailing

    Quote Originally Posted by Dynasoft
    Only by using tricks to actually draw a 16:16 screen and only show 16:9 of it.
    Yep. Its just logical. If you rotate a 16:9 image, it will be 9:16.

  7. #7
    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: Rotate entire screen without image trailing

    Wouldn't it be neat anyway to have the window self-resize (easy), or to have the window itself rotate? (I've done this but Looki removed the feature from his extension that allowed it)
    Working as fast as I can on Fusion 3

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    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)
    Crian's Avatar
    Join Date
    Oct 2009
    Posts
    411
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate entire screen without image trailing

    Quote Originally Posted by LB
    Wouldn't it be neat anyway to have the window self-resize (easy), or to have the window itself rotate? (I've done this but Looki removed the feature from his extension that allowed it)
    Oh, interesting.
    Why he removed it?
    Do you still have the one that you modified?
    Can you post it? or there is an old post where it's possible to download it?

  9. #9
    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: Rotate entire screen without image trailing

    Sorry, no. I hadn't finished it before he removed the feature.
    Working as fast as I can on Fusion 3

  10. #10
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    728
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate entire screen without image trailing

    SOLVED: i just found the 0.7 zoom factor and put it to 0.9. nice! love it even more now (the fx)
    thx!!!
    Jot
    _____________
    This is my favorite shader at the moment! I love it Pixel! Is there any whay (maybe inside the code) to NOT zoom in 0.7* in the beginning? I got pretty tough stair effects at my graphic files. I mean the shader works great but i would love the full resolution or maybe a 0.9 times zoom in.

    thx!
    Jot

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Picture editor - rotate image without losing transparency
    By loglady in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th August 2013, 02:40 AM
  2. Surface 1.5 - Performance boost when overlaying entire screen?
    By GreenOnion in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th April 2013, 04:09 PM
  3. rotate screen?
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th January 2009, 12:43 PM
  4. Screen Rotate
    By wizkidweb in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th November 2008, 02:40 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
  •