Page 8 of 8 FirstFirst ... 45678
Results 71 to 74 of 74

Thread: Another newbie, question about usb dmx dongle

  1. #71
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    1,235

    Default

    Yes. I loaded all of the LFI rgb tables into LaserBoy and found all of that. The only palette that really matters is the Default, as this is the only one that is not written into an ilda file as a format 2.

    I know Anarchy and LFI don't read format 2, but that's too bad. Most every other laser app does.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOSX and Linux.
    http://laserboy.org/code/LaserBoy_Current.zip
    http://theamerikans.org/LaserBoy

    Ask me about my LaserBoy Correction Amp Kit for sale!

    Either do or do not do. There is no undo!

  2. #72
    Join Date
    Jul 2008
    Posts
    404

    Default

    Quote Originally Posted by james View Post
    This is amusing.

    This is in the header of the source code file from LFI Player that defines the built-in palettes.

    Code:
    // *********************************************************
    // *                                                       *
    // * Copyright 1998-2005, Lazerus Laser Systems            *
    // * Author: Michael G. Svob                               *
    // *                                                       *
    // * File Name: Cheap3DViewPalette.cpp                     *
    // * Description: Contains the supported color palette     *
    // * tables, as well as a "reverse look-up" method to get  *
    // * the closest table entry based on an RGB value. Values *
    // * for the Laser Illusions, Pangolin, and X29 color      *
    // * palettes originally derived from Andrew Kozin's       *
    // * Anarchy Editor ".pal" data files, Copyright 1998,     *
    // * Illegal Systems Corp. and Laser Action Ltd..          *
    // *                                                       *
    // * This code is distributed under the GNU Public License *
    // * which can be found at...                              *
    // *                                                       *
    // * http://www.gnu.org/licenses/gpl.txt                   *
    // *                                                       *
    // *********************************************************
    But, like I said before, the Default palette defined in LFI is exactly the same as what is in LaserBoy and not the same as Anarchy!
    You must have a different copy of LFI source than I have. Whoa wait! LFI skips index #46 altogether and #63 is not black like LaserBoy.

    Are there really that many apps that got fmt2 right?
    Last edited by dchammonds; 12-12-2018 at 18:39.
    Once milk has been poured over corn flakes, the clock starts ticking.

  3. #73
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    1,235

    Default

    Quote Originally Posted by dchammonds View Post
    You must have a different copy of LFI source than I have. Whoa wait! LFI skips index #46 altogether and #63 is not black like LaserBoy.

    Are there really that many apps that got fmt2 right?
    Honestly, since LaserBoy got it right and it was out there free in open source, most of the developers who created apps since then have also figured out how to do it.

    When I was writing the core of LaserBoy, I had only two laser apps to look at; Anarchy and the app that came with the QM-32. Neither of them could read a format 2 palette. I just implemented what was defined in the ilda file spec. So I didn't even know the other apps I was using couldn't read a palette section until I was able to generate files with it and try it.

    All of the palette indexes beyond 62 in LFI are just the same as 62 all the way to the end of a 256 color palette.

    LB is written such that a palette is a dynamic memory object and it can have any number of elements up to 256. As a matter of fact one of the data elements of the LaserBoy_palette class is the last_index. That's why the palette color index marker only goes to the last defined index in a palette and wraps back to the start.

    I'm fine with the way things are right now.

    There is no reason for alarm or having to re-think anything.
    Last edited by james; 12-12-2018 at 21:32.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOSX and Linux.
    http://laserboy.org/code/LaserBoy_Current.zip
    http://theamerikans.org/LaserBoy

    Ask me about my LaserBoy Correction Amp Kit for sale!

    Either do or do not do. There is no undo!

  4. #74
    Join Date
    Jul 2008
    Posts
    404

    Default

    Quote Originally Posted by james View Post
    All of the palette indexes beyond 62 in LFI are just the same as 62 all the way to the end of a 256 color palette.
    63 not 62

    All of the palette indexes beyond 63 in LFI are just the same as 63 all the way to the end of a 256 color palette. LFI just skipped #46
    Once milk has been poured over corn flakes, the clock starts ticking.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •