Author Topic: New version issue  (Read 2524 times)

0 Members and 1 Guest are viewing this topic.

Offline The trick

  • Newbie
  • *
  • Posts: 14
  • Milliwatts: 0
  • Gender: Male
    • View Profile
    • The trick - 8 bit
New version issue
« on: April 28, 2017, 05:49:34 am »
Hello everyone! I use LaserBoy to convert DXF to ILD.
I not there are two errors:
  • Invalid colors, when i open DXF frames set;
  • If an animation contains empty frame (the freame without any point) it produce error and crashes.
The main issue for me is invalid palette. How can i fix that?
Thank.
Hello World!!! 47 errors,31 warnings...

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New version issue
« Reply #1 on: May 03, 2017, 11:27:49 pm »
Can you please send me an example of what you are working with?

Thanks!

James.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline The trick

  • Newbie
  • *
  • Posts: 14
  • Milliwatts: 0
  • Gender: Male
    • View Profile
    • The trick - 8 bit
Re: New version issue
« Reply #2 on: May 13, 2017, 03:19:49 pm »
Hello, sorry for delay.
First - invalid colors, should be:


in laserboy:

When i enable all options 7, 8, 9, 0 and c then trying to export to ilda it crashes:

Thank in advance.

« Last Edit: May 13, 2017, 03:25:26 pm by thetrik »
Hello World!!! 47 errors,31 warnings...

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New version issue
« Reply #3 on: May 13, 2017, 08:01:45 pm »
WOW!

Nice animation.

You really have me stumped on this one.

When I try to open your DXF files in Windows, I get the same weird colors as you.

But when I open them on my Linux machine it comes out like it should!

What are you using to create these files?

I looked at the DXF in a text editor and it looks like you are using standard palette color definitions.

So it doesn't look like there is anything wrong with the files.

OK. This is weird! I just tried it on an old Windows machine with an older version of LaserBoy (07-21-2015) and it works fine!

Well, I can tell you that there is a fix for this.

Since you are only using two colors, it is pretty easy to redefine the colors to the correct values.

Open your DXF directory in LaserBoy.

Go into menu p (palettes)

Promote the whole frame set to 24-bit color by hitting Capital J.

Now do a best reduce all frames to one palette by hitting k.

Now hit the dot key . to set the target palette to the current frame palette.

Now you can edit the individual colors of the target palette.

Use the p key to index through the colors.

Use the r key to set the RGB values of the selected color in the target palette.

If you change the color in the palette it will change all of the colors in all of the frames simultaneously.

To make the color yellow; enter 255 for red, 255 for green and 0 for blue.

To make the color red; enter 255 for red, 0 for green, and 0 for blue.

Once you get the colors the way you want them, you should probably do a best match to the default color palette.

Up arrow to the Default_ palette as the target palette.

Then hit Capital B to do a best match of all frames to that palette.

Now you can save this frame set as a standard ILDA format 1 (2D).

You should also probably optimize the frame set before you save it!

Let me know if this works for you and if you have any questions.

In the mean time, I'm going to try to figure out why the colors come out weird!
« Last Edit: May 13, 2017, 08:34:50 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline The trick

  • Newbie
  • *
  • Posts: 14
  • Milliwatts: 0
  • Gender: Male
    • View Profile
    • The trick - 8 bit
Re: New version issue
« Reply #4 on: May 14, 2017, 03:04:28 am »
Thank for response.
Quote
Nice animation.

Thank.

Quote
What are you using to create these files?
Windows 7 x64
Quote
OK. This is weird! I just tried it on an old Windows machine with an older version of LaserBoy (07-21-2015) and it works fine!

Yes, in old versions it looks fine and exports fine as well.

Quote
Since you are only using two colors, it is pretty easy to redefine the colors to the correct values.

Yes, but actually i use many animations with many different colors. Im still using
LaserBoy_2012_05_03 for animations those colors is essential.
Quote
Let me know if this works for you and if you have any questions.

Colors work fine, thank, but saving crashes again.

I've enabled that options: 7, 8, 9, 0, c
Regarding,
Кривоус Анатолий.
« Last Edit: May 14, 2017, 03:08:16 am by thetrik »
Hello World!!! 47 errors,31 warnings...

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New version issue
« Reply #5 on: May 15, 2017, 03:34:15 pm »
Well, I'm still looking into these issues, but it appears that the last version of LaserBoy that gets the DXF colors right is

http://laserboy.org/code/LaserBoy_2016_02_11.zip

The crash issue I think has to do with the fact that the first 2 frames of your animation have no vertices.

If you go into menu h and use option Capital K to minimize all frames in the set, that will add blank vertices to the 2 empty frames. This prevents a crash.

I will try to fix all of this.

Thank you for pointing these issue out to me and making LaserBoy better!  :)

James.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New version issue
« Reply #6 on: May 16, 2017, 06:42:26 pm »
HEY! I just figured out the DXF color problem and I fixed it!

I added a new palette called Dft_TTL_ to the palette set and when I compiled the code I forgot to clean up the old object files.

So the code was linking with old objects.

I cleaned up the object files and re-compiled and now the new executable works.

I have attached a Windows Executable of the 2016_03_15 code build.

It still crashes when you do an automatic minimization of your example.

Still working on that!  :P

James.
« Last Edit: May 16, 2017, 06:47:48 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline The trick

  • Newbie
  • *
  • Posts: 14
  • Milliwatts: 0
  • Gender: Male
    • View Profile
    • The trick - 8 bit
Re: New version issue
« Reply #7 on: May 17, 2017, 01:55:15 pm »
HEY! I just figured out the DXF color problem and I fixed it!

I added a new palette called Dft_TTL_ to the palette set and when I compiled the code I forgot to clean up the old object files.

So the code was linking with old objects.

I cleaned up the object files and re-compiled and now the new executable works.

I have attached a Windows Executable of the 2016_03_15 code build.

It still crashes when you do an automatic minimization of your example.

Still working on that!  :P

James.
Many thanks! I'll test it later.
Hello World!!! 47 errors,31 warnings...

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New version issue
« Reply #8 on: May 18, 2017, 02:09:59 pm »
What application are you using to make your DXF animations?

Can you share another one that has many more colors?

James.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New version issue
« Reply #9 on: May 20, 2017, 08:22:56 pm »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

 

SMF spam blocked by CleanTalk