User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: Request pixel shader "Convex polygon"

  1. #1
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Request pixel shader "Convex polygon"

    Requesting a pixel shader which allows 3(or more) 2D vertex's as parameters and draws a filled polygon between them.

    For example:


    This would be a result of the vertex's; (0,0),(0,1),(1,1)

  2. #2
    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: Request pixel shader "Convex polygon"

    I'll see what I can do. Do you need separate colors for each vertex?

  3. #3
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request pixel shader "Convex polygon"

    Not really, but it might be a cool feature

  4. #4
    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: Request pixel shader "Convex polygon"

    Okay. I'm not sure if I'm capable of doing that. That's why I asked.

  5. #5
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request pixel shader "Convex polygon"

    Thanks looki; im sure if anyone can do it, it's you.

  6. #6
    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: Request pixel shader "Convex polygon"

    What? Not really. I wasn't even sure how, I had to look at some algorithms. I suppose Dynasoft for example could code this shader without looking up. :P

    By the way, it works. It doesn't have anti-aliasing though :/
    Sharp edges.

  7. #7
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request pixel shader "Convex polygon"

    Wow, that was fast... Can't wait to see the result!

  8. #8
    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: Request pixel shader "Convex polygon"

    Oh. You don't need anti-aliasing? If so, I could give it to you right now... :P

    EDIT: Actually, wait. There are some rounding errors.
    EDIT2: Fixed.

  9. #9
    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: Request pixel shader "Convex polygon"

    Here it is. http://looki.lo.funpic.de/Triangle.zip
    I hope it's what you need, and I'm sorry it doesn't have smoothing/anti-aliasing (It checks if the texture coordinate is inside of the triangle, so smoothing is not so easy to add).

  10. #10
    Clicker Multimedia Fusion 2 Developer

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

    Re: Request pixel shader "Convex polygon"

    Sounds interesting, guess I should have a go, see if I can antialias it

    Though I'm not sure why you'd want a poly drawn by a pixel shader...

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. Shader: "Under Water" dosen't works ...
    By flechenoir in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 27th May 2013, 12:36 AM
  2. Tilemap Pixel Shader (aka "texture atlas" shader)
    By MuddyMole in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 10th May 2013, 08:21 PM
  3. "Rendertarget ping/pong" and "Pixel shaders" Can TGF2 do this?
    By CloudExSolider in forum The Games Factory 2 - Technical Support
    Replies: 13
    Last Post: 7th April 2013, 08:21 PM
  4. Request] "Polygon extension" PAID
    By Don_Pedro in forum Extension Development
    Replies: 8
    Last Post: 13th August 2008, 11:26 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
  •