User Tag List

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

Thread: 256 colors and Direct3D

  1. #1
    No Products Registered

    Join Date
    Nov 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    256 colors and Direct3D

    I need some help here: i'm trying to emulate an old school feel limiting the color palette (no more than 20 colors haha). The problem is, the 256 colors mode doesn't work with Direct3D, and I need this mode because some computers have little performance issues with the others. The game will have some fade effects, so I really need to limit the colors. Thanks in advance :*)

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

    Re: 256 colors and Direct3D

    It's impossible. You will have to hardcode it.

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF 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)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: 256 colors and Direct3D

    Or you could use software mode.

    If it's really as old school as you say then HWA mode shouldn't be necessary.

  4. #4
    No Products Registered

    Join Date
    Nov 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 256 colors and Direct3D

    Aw, too bad. Software mode works fine on my old PC but on the new it shows some screen tearing, and if I resize it only gets worse. By the way, someone told me it's dual core incompatibility or something, anyone knows about it? Thanks again :*)

  5. #5
    Clicker Multimedia Fusion 2 Developer

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

    Re: 256 colors and Direct3D

    If you turn v-sync on you will stop the screen tearing, but you could lose some speed.

    Also keep in mind that real 256-colour apps won't work right on Windows 7 if they use the first 32 (IIRC) colours in the palette, as Windows plays with them.

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

    Re: 256 colors and Direct3D

    Dynasoft, could you elaborate on that? I've successfully used a full palette on Windows 7 (random testing, nothing serious, but it worked).

  7. #7
    Clicker Multimedia Fusion 2 Developer

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

    Re: 256 colors and Direct3D

    I'm not sure of the exact repro steps, but all the old non-MMF2 256-colour games I have will show with technicolour madness unless explorer.exe is killed, due to it forcing the first set of colours to primary colours.

    I assumed it was a global issue because it happens to all 256-colour things I've tried. MMF may be immune though...

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

    Re: 256 colors and Direct3D

    Thanks. Seems like it. I actually rotated a custom palette at runtime without any issues.

    EDIT: Actually, I just remembered that some colors were indeed fixed - but not 32 by far! R,G,B,C,M,Y, black and white IIRC...

  9. #9
    Clicker Multimedia Fusion 2 Developer

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

    Re: 256 colors and Direct3D

    I did say "IIRC" (If I Remember Correctly). I guess I didn't.

    Apparently in 256-colour mode Windows reserves 20 colours in the palette, the first and last 10 colours: http://en.wikipedia.org/wiki/List_of_software_palettes#Microsoft_Windows_defaul t_20-color_palette

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

    Re: 256 colors and Direct3D

    Yes, that's definitely them... more than I remembered. Thanks.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Ios Export and Direct3D?
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 25th July 2011, 03:07 PM
  2. & in Direct3D 8
    By Nifflas in forum Hardware Accelerated Runtime
    Replies: 1
    Last Post: 2nd November 2009, 06:25 PM
  3. Can you use both Direct3D and 256 colors?
    By Taofeld in forum Hardware Accelerated Runtime
    Replies: 1
    Last Post: 18th October 2009, 09:11 AM
  4. Toggling Direct3D?
    By konjak in forum Hardware Accelerated Runtime
    Replies: 18
    Last Post: 7th November 2008, 11:43 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
  •