User Tag List

Results 1 to 7 of 7

Thread: Bit Color and Gameboy Shaders

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC
    Sleepy's Avatar
    Join Date
    Dec 2019
    Posts
    17
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Bit Color and Gameboy Shaders

    Hi everyone ^^ !
    I'm restarting to learn hlsl and i've made two littles shaders, I hope they are good enough to be useful or at least be interesting to watch :)

    The first one allow the user to allocate different number of bits for each component of RGB colors or directly define each step of RGB ( to have something like 0-32-64... or 0-47-94... ) to create custom color spectrum and apply it to the app.

    Here is some result you can get with it :

    Click image for larger version. 

Name:	09.PNG 
Views:	21 
Size:	3.7 KB 
ID:	28783Click image for larger version. 

Name:	08.png 
Views:	31 
Size:	7.0 KB 
ID:	28774
    ( this is a spectrum made in 6-bit ( 2bit R, 2bit G, 2 bit B ) with the different mode i've tried to create )
    the " No round " use directly the color value without conditions, the second one only round the two higher value and the third test each value and make a smoother spectrum

    In game this can give this kind of result :
    Click image for larger version. 

Name:	06.png 
Views:	47 
Size:	7.8 KB 
ID:	28775 ( no round ) Click image for larger version. 

Name:	05.png 
Views:	45 
Size:	8.7 KB 
ID:	28776 ( second method ) Click image for larger version. 

Name:	07.png 
Views:	46 
Size:	10.0 KB 
ID:	28777 ( third method )

    ( base without shader )
    Click image for larger version. 

Name:	03.png 
Views:	40 
Size:	14.4 KB 
ID:	28778

    And here is an exemple with custom RGB steps
    Click image for larger version. 

Name:	11.PNG 
Views:	42 
Size:	21.9 KB 
ID:	28779

    I'm sure this shader can be a lot more optimized but since i'm still learning I'm not sure how to do it, all 3 methods are in the code but are in comment, to use one it has to be decommented first...


    The second one is a lot easier, it's a gameboy style shader with editable color palette,steps for greyscale values and one feature that allow a true black color (basically creating a 5th color which is black ).

    Click image for larger version. 

Name:	02.png 
Views:	46 
Size:	8.0 KB 
ID:	28780Click image for larger version. 

Name:	01.png 
Views:	53 
Size:	10.0 KB 
ID:	28781Click image for larger version. 

Name:	04.PNG 
Views:	34 
Size:	7.2 KB 
ID:	28782
    ( the outline of the character is created using Looki's pixel outline ^^ )

    If you want to test them:
    ShaderTest.zip


    PS : I'm really sorry for my broken english :/ I hope it wasn't too hard to read...

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export ModuleInstall Creator Pro
    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)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    996
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Very cool!

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC
    Sleepy's Avatar
    Join Date
    Dec 2019
    Posts
    17
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thank you ^^

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module
    denisstephane's Avatar
    Join Date
    Jul 2015
    Location
    Alès,France
    Posts
    83
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Cool,thank you.

  5. #5
    Clicker Fusion 2.5Fusion 2.5+ DLC
    Sleepy's Avatar
    Join Date
    Dec 2019
    Posts
    17
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You're welcome ^^

  6. #6
    Clicker

    Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    Posts
    277
    Mentioned
    6 Post(s)
    Tagged
    1 Thread(s)
    How does the gameboy shader work? For me it makes all objects the same color.

  7. #7
    Clicker Fusion 2.5Fusion 2.5+ DLC
    Sleepy's Avatar
    Join Date
    Dec 2019
    Posts
    17
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi ^^ !
    To use the gameboy shader, you have to set it on an object and make this object in front of the zone you want to cover ( like a mask ). If you want to cover the screen you can make the object at the same size of the screen on a layer with no scrolling.

Similar Threads

  1. Gameboy shader!
    By happygreenfrog in forum Shader Development
    Replies: 9
    Last Post: 13th September 2020, 08:17 PM
  2. A new 4$ gameboy gamepack ready to use
    By Fassous in forum Paid Design & Development Requests
    Replies: 2
    Last Post: 1st February 2015, 06:09 AM
  3. Replies: 4
    Last Post: 6th November 2014, 03:44 PM
  4. Flipping(giant, high animated) active objects without shaders(or any better shaders?)
    By DinnerSonic in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th September 2013, 12:57 PM
  5. Gameboy style graphics
    By ConquerStone in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 20th March 2012, 11:56 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
  •