User Tag List

Page 2 of 12 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 117

Thread: Pixel Shaders examples

  1. #11
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    Some of those are really nice and will really add to projects.

    Would an under water effect be possible with a shader ?

    If you had a ripple effect ( like the sin ) that could be changed at runtime and toned blueish, you could add a cool effect to an entire layer to make it look under water.

    Just thinking aloud though as I don't really know the full potential or limitations of shaders.

  2. #12
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    An underwater pixel shader is planned and I know exactly what features to add in it. Basically it will be a mix between blur, sinwave and blue mask.

  3. #13
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    Excellent.

    That's nice to hear

  4. #14
    No Products Registered

    Join Date
    Feb 2007
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    Since you are taking requests, how about a shader that makes a heat distortion, like that wavey shimmer you get off a road on a hot day?

  5. #15
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    Quote Originally Posted by Sphax
    An underwater pixel shader is planned and I know exactly what features to add in it. Basically it will be a mix between blur, sinwave and blue mask.
    This is something I'm looking forward too. Good luck!
    Cranktrain - Currently finishing a new game called The Cat Machine!
    @MattLuard on Twitter.

  6. #16
    No Products Registered

    Join Date
    Jul 2006
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    nice shaders sphax!

  7. #17
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    Quote Originally Posted by MrMan
    Since you are taking requests, how about a shader that makes a heat distortion, like that wavey shimmer you get off a road on a hot day?
    Since I can't get the pixel or the texture under the object, I can't do that...
    But with the underwater shader you'll be able to blur+deform, so you'll probably be able to make this kind of effect.

  8. #18
    No Products Registered

    Join Date
    Jul 2006
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    I have a project that I was trying to write my own pixel shader for, but I haven't been able to get it to work yet. It's pretty simple--it just needs to replace certain colors with other colors.

    Specifically, the game I'm working on recolors the sprites, and each sprite can have up to 3 custom colors. That is accomplished by replacing all of the pure yellow, cyan, and magenta hues. So all the shader needs to do is something like this (this would be the example for replacing the magenta):

    if pixel.red = pixel.blue and pixel.green = 0 then:
    brightness = (pixel.red + pixel.blue) / 2
    (Get RGB Values from specified replacement color for Magenta and place them in MagentaRed, MagentaGreen and MagentaBlue)
    pixel.red = MagentaReplaceRed * brightness
    pixel.green = MagentaReplaceGreen * brightness
    pixel.blue = MagentaReplaceBlue * brightness

  9. #19
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    Maggot, have a look to the example posted. You'll see that I've already done a pixel shader to do exactly what you want.

    More precisely, I've done:
    - Colorize Blue
    - Colorize Cyan
    - Colorize Green
    - Colorize Grey
    - Colorize Magenta
    - Colorize RGB
    - Colorize RGBYCM
    - Colorize WRGB (W=Grey)

    I think there is more than needed to do what you want

  10. #20
    No Products Registered

    Join Date
    Jul 2006
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pixel Shaders examples

    Yay! And d'oh!

    Apparently I only masquerade as a smart person.

    Edit: I don't suppose I could see the source code? I had already tried to make my own but it didn't work. (It's half gibberish to me anyway--I work mostly in highly abstracted languages like Visual Basic and PHP, and I've never programmed a 3D application. I'm only just now starting to read through the HLSL documentation.)

Page 2 of 12 FirstFirst 1 2 3 4 ... LastLast

Similar Threads

  1. Pixel Shaders? HWA? Please someone shed some light...
    By Blacstar in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th February 2012, 07:18 PM
  2. Pixel Shaders 3.0?
    By Algul in forum Hardware Accelerated Runtime
    Replies: 1
    Last Post: 11th January 2012, 12:02 PM
  3. Pixel Shaders Ideas/Requests - HWA
    By Novabrain in forum Hardware Accelerated Runtime
    Replies: 77
    Last Post: 2nd June 2009, 12:45 PM
  4. Pixel Shaders
    By Looki in forum Hardware Accelerated Runtime
    Replies: 9
    Last Post: 24th January 2009, 07:52 AM
  5. Expandable Pixel Shaders (In the future)
    By BrandonC in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 2nd January 2008, 08:01 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
  •