Author Topic: It's about freakin' time !!!  (Read 56004 times)

0 Members and 1 Guest are viewing this topic.

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: It's about freakin' time !!!
« Reply #15 on: June 27, 2009, 12:13:01 pm »
thats not a bug, its a feature :)

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #16 on: June 27, 2009, 04:00:29 pm »
Yup.

When I close the file like this:

LaserBoy_bmp.cpp line 1746
Code: [Select]
//###########################################################
int bmp_save_as(struct LaserBoy_bmp* bmp, char* file_name)
{
    bmp_open_for_write    (bmp, file_name);
    bmp_write_file_header (bmp           );
    bmp_write_palette     (bmp           );
    bmp_write_image       (bmp           );
    close                 (bmp->fd       );
    return 1;
}

You can open the bitmap right after it is rendered.

I've got some more stuff to figure out, but I will be releasing it again soon.

James.  :)
« Last Edit: June 27, 2009, 11:37:07 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: It's about freakin' time !!!
« Reply #17 on: June 27, 2009, 10:02:40 pm »
Don't forget to beef up wave reading code!
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #18 on: June 30, 2009, 07:04:05 pm »
OK!

The next version to come out will have some nice new features!

I had a conversation with the great and all knowing OSR and he asked me to add a feature to LaserBoy. Quite honestly, I had thought about it much earlier and wanted to add it. But since he reminded me, he kind-of gave me just the right nudge to actually do it.

The next release of LaserBoy will have a good start on being able to read and write ASCII tables. It will be as simplified as possible to be somewhat storage conscience and easy for human reading and writing.

I've got all of the writing bits just about done. And I've worked the new stuff into the menu system. This new addition to the ins and outs of LaserBoy will replace its current ability to read and write ASCII palettes.

The format is sideways compatible with ILDA.

You'll see.

Right now I am busy in the garage. I dragged a piece of junk computer desk off of the curb and I am making a pair of guitar speakers. Many years ago I dragged a blown up Gibson tube amp off the curb and it had 2 perfectly good 8 ohm 10 inch speakers in it.

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

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #19 on: July 03, 2009, 03:35:59 pm »
Here is a new version with some changes to the menu system and part of the new ASCII text format stuff done.

It now writes frame sets (and palettes if necessary) to ASCII text tables that can be imported into other applications like math CAD programs and spread sheets.

Next thing to do is write the code that can read this format back in!

http://akrobiz.com/laserboy/code/LaserBoy_2009_07_03.zip

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

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: It's about freakin' time !!!
« Reply #20 on: July 04, 2009, 10:16:59 pm »
  .WTF huh??? That could sell! BTW, you forgot to add the txt subdirectory...
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #21 on: July 06, 2009, 01:12:41 am »
Check it out:

http://akrobiz.com/laserboy/code/LaserBoy_2009_07_05.zip

I fixed a few bugs and added some 420 to the dxf output. (It now saves 24 bit color dxf!)

I also fixed up the menu system to be able to handle dots more effectively. A "dot" is a single point of light with no dimmension; quite useful in beam shows.

I still have to work out the ASCII txt reader and then I think I want to replace all the literal text with a string table so that LaserBoy can be translated into languages other than English; maybe even Australian or Canadian!

James.  :)
« Last Edit: July 06, 2009, 01:14:43 am by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: It's about freakin' time !!!
« Reply #22 on: July 06, 2009, 10:25:26 pm »
  "I fixed a few bugs and added some 420 to the dxf output." You mean that you've only added about 420 bugs to LB? Gee thanks!
Since you dumped the PAL directory, I can no longer import a JASC (Paint Shop Pro) .pal file. I never thought to even try it until you
took the feature away... ;D
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #23 on: July 07, 2009, 12:03:43 am »
There's just no pleasing some people!  %)

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

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: It's about freakin' time !!!
« Reply #24 on: July 07, 2009, 04:11:02 pm »
hows this look?
its the contents of a geogebra file that containes a unity circle
look at the elements at the bottom

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="3.2">
<gui>
<show algebraView="true" spreadsheetView="true" auxiliaryObjects="false" algebraInput="true" cmdList="true"/>
<splitDivider loc="650" locVertical="400" loc2="250" locVertical2="300" horizontal="true"/>
<font  size="12"/>
<consProtColumns  col0="true" col1="true" col2="true" col3="false" col4="true" col5="false"/>
<consProtocol useColors="true" showOnlyBreakpoints="false"/>
</gui>
<euclidianView>
<size  width="393" height="631"/>
<coordSystem xZero="215.0" yZero="315.0" scale="50.0" yscale="50.0"/>
<evSettings axes="true" grid="true" gridIsBold="false" pointCapturing="3" pointStyle="0" rightAngleStyle="1" checkboxSize="13" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="10"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<spreadsheetView>
<size  width="624" height="634"/>
</spreadsheetView>
<kernel>
<continuous val="false"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<coordStyle val="0"/>
</kernel>
<construction title="" author="" date="">
<command name="Intersect">
<input a0="xAxis" a1="yAxis"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="true" label="true"/>
<objColor r="64" g="64" b="64" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-0.0" y="-0.0" z="1.0"/>
<pointSize val="3"/>
</element>
<element type="point" label="B">
<show object="true" label="true"/>
<objColor r="0" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1.0" type="0" playing="false"/>
<coords x="0.68" y="-0.72" z="1.0"/>
<pointSize val="3"/>
</element>
<command name="Circle">
<input a0="A" a1="B"/>
<output a0="c"/>
</command>
<element type="conic" label="c">
<lineStyle thickness="2" type="0"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="2" type="0"/>
<eigenvectors  x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="-0.9808000000000001" A3="0.0" A4="0.0" A5="0.0"/>
<eqnStyle style="specific"/>
</element>
</construction>
</geogebra>
« Last Edit: July 07, 2009, 04:13:53 pm by BlinkenLights »

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #25 on: July 07, 2009, 04:30:35 pm »
Nope.

My plan is to represent the data; the whole data; and nothing but the data.

I'm not even using commas.

I'm thinking about only reading the first letter of the words

frame
palette
table


to know what must come next on that same line and how to interpret the numerical values that will follow it.

a frame can be 2D or 3D; rgb, table or palette; short, unit or real.

a palette or a table is currently stored in rgb; which is the token for three separate unsigned char. Since there is no "blanking bit" in this format, the literal -1 is stored when a point is blank.

In the future I want to add the hex format that would store colors as 0xRRGGBB; a single, 24 bit hexadecimal number. Again, I would use the literal -1 to designate a blank vertex.

A palette can also have a name; this would be the last token on the line. Only 8 characters will be read. This will be matched with the named palette set loaded in LaserBoy.

LaserBoy will be able to read more text variation that it will write. It can write short and unit. It will also read real; the universe at any size.

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

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: It's about freakin' time !!!
« Reply #26 on: July 07, 2009, 04:40:30 pm »
ya i get that.. but this is a very cool way to do it as xml..

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #27 on: July 07, 2009, 05:16:18 pm »
Here!

http://akrobiz.com/laserboy/code/LaserBoy_2009_07_07.zip

Now it doesn't crash when you try to read text!

A few other bugs fixed too!

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

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: It's about freakin' time !!!
« Reply #28 on: July 07, 2009, 05:16:55 pm »

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: It's about freakin' time !!!
« Reply #29 on: July 08, 2009, 03:58:25 pm »
  I generated a plot in LW with the Z as coordinate option set to get 3D 24 bit frames into LB.
Storage & retrieval of palette DXF seemed OK, but with 24 DXF, 99% of the plot was not visible
until I changed the LB background color and found all the missing lines were in black.
"Patience is for the dead."

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal