User Tag List

Results 1 to 3 of 3

Thread: Slide Shader

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Slide Shader

    Hello, this is Jacob here with his first shader.

    This is designed to offset an image based on two coefficients. It is based on the Horizontal Flip shader.

    http://darkesoft.com/ftp/slide.zip

    This includes the .fx file, .xml file, and an .mfa example showing one possible use of it.

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: Slide Shader

    One issue with a shader like this is that when setting the source pixel to something out of bounds, it will always take the bounded pixel at that edge. Hence an image with part of the image overlapping the edges will have those edges "stretched" for the offset.


    People can work around that by adding a 1 pixel transparent border to images, but a really neat thing to do would be to modify the shader to detect if the source would be out of bounds, and if so set the pixel to a transparent. But thats just an idea for making it really complicated


    Looks very good!

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Slide Shader

    A version of this shader was posted somewhere here in the forums, but I think it didn't support fPixelWidth/Height, and it's a nice for your first shader anyway!

    Of course, Pixelthief's suggestion would be nice, and is very easy to add as well, I think you can pull that off

Similar Threads

  1. Wall-slide?
    By AndyBazooka in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th December 2013, 03:24 PM
  2. Slide Scrolling example
    By RhysD in forum iOS Specific Example Files
    Replies: 12
    Last Post: 29th October 2011, 04:48 AM
  3. Making the player Slide with the PMO?
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 9th December 2009, 08:27 PM
  4. make screen slide
    By dray in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 3rd September 2008, 12:07 AM
  5. Wall Slide Help
    By Zenoff64 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd May 2008, 10:13 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
  •