User Tag List

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

Thread: Sub-Pixel Positioning Pixel Shader

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sub-Pixel Positioning Pixel Shader

    I've made a sub-pixel positioning pixel shader for you all.

    It includes an example file.

    For those of you who don't know what sub-pixel positioning is: Sub-pixel positioning is a way to make the motion of slow moving, low res objects appear smoother. What it does is it effectively makes it so you can position an object at decimal coordinates (13.5,16.7 for example), and to visually display that, what it does is it sort of bleeds into the adjacent pixels. Just check out the example file, it visually explains it much better than words can.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    Awesome! Completely awesome! Thanks a whole lot for sharing!

  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
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    NOOOOOOOOO!!!!
    WHY I DIDN'T SHARE MINE??
    Great work, glad there are more people who SHARE their shaders, unlike me -.-
    Just a bit angry cause I've already made a subpx shader some weeks ago. =P

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    Upload yours now then! I can't wait to try out more custom ones!

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    It's probably exactly the same code as mine. The GPU does all the math work for us, unlike the next PS I'm working on, a rotational blur.

  6. #6
    Clicker Multimedia Fusion 2
    BrandonC's Avatar
    Join Date
    Jun 2006
    Location
    PA, USA
    Posts
    931
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    That my friend is awesome, now if only we could pile multiple pixel shaders onto each other. Like this with Add or Subtract. This is great though, I love it. Thumbs up!

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    This pixel shader should be inbuild in all of MMF2's active objects.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    That would be a strange workaround. There's no problem about displaying an object at a sub-pixel position (and to do it the most effective way, a pixel shader should not be used). The problem is that positions are stored in integers, as Yves said, changing that is a very extensive process. Using a 'sub pixel shader' will not make that easier.

  9. #9
    Clicker Multimedia Fusion 2
    BrandonC's Avatar
    Join Date
    Jun 2006
    Location
    PA, USA
    Posts
    931
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    Or it might just be easier to make it so that we could pile on multiple pixel shaders.

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sub-Pixel Positioning Pixel Shader

    Quote Originally Posted by Nifflas
    That would be a strange workaround. There's no problem about displaying an object at a sub-pixel position (and to do it the most effective way, a pixel shader should not be used). The problem is that positions are stored in integers, as Yves said, changing that is a very extensive process. Using a 'sub pixel shader' will not make that easier.
    Well yes I completely agree. I only made this so we can get this sort of functionality until that day comes.

    If you want to pile on multiple pixel shaders, if the situation is just right, you might be able to apply one to the object, and another to the layer it's on. But that's probably REALLY inefficient.

    The hard way is to just copy and paste code from pixel shaders into one big super shader. If we don't get built in sub pixel positioning soon, that's exactly what I'm going to have to do.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Can any one get the pixel shader to wok?
    By SEELE in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th August 2008, 02:28 PM
  2. Pixel shader request.
    By Nifflas in forum Hardware Accelerated Runtime
    Replies: 5
    Last Post: 8th May 2008, 12:50 PM
  3. Fish Eye Pixel Shader
    By LazyCoder in forum Hardware Accelerated Runtime
    Replies: 8
    Last Post: 16th February 2008, 06:35 PM
  4. Pixel Shader Help
    By LazyCoder in forum Hardware Accelerated Runtime
    Replies: 15
    Last Post: 11th January 2008, 07:21 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
  •