Author Topic: What 's old is new again!  (Read 36670 times)

0 Members and 1 Guest are viewing this topic.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
What 's old is new again!
« on: July 19, 2009, 09:31:42 pm »
This version:

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

of LaserBoy introduces a reasonably well developed idea into the world of laser vector art display!

PLAIN TEXT!  ;D

We can now save and retrieve palette or 24-bit, 2D or 3D laser vector art in text!

There is still a little bit of clean up work to do. But it now reads what it writes. In the future, it will read "real" numbers for coordinates in addition to "short" and "unit".

You have the option of saving coordinates in their native, signed 16-bit integers or in real numbers that fit inside unit space (-1.0 to +1.0).

You also have the option of saving colors in decimal (0 to 255) triplets (r g b) or as single 24-bit, hexadecimal integers (0xRRGGBB).

You can save frames with integrated color values or save palettes and tables separately.

Most importantly, you can open these formats back into LaserBoy and fully recover your data!

Check it out!

If you don't agree this is the most exciting thing to come along in the laser biz for several years, I'll give you double your money back!  ;D

(But you have to call me, personally!)  ;)

Seriously... Please check this out for errors and see what YOU can do with it! AND TELL ME!

I will probably be releasing daily updates for a while to fix the little glitches.

I really wanted something new and different to show off at SELEM this year and THIS IS IT!  ;D

James.  :)

PS. I think you will like it!
Code: [Select]
frame xy hex unit
    -0.00683615    +0                -1
    -0.00683615    +0.0146794         0xffff00
    +0.0605792     +0.0897549         0xffff00
    -0.00521867    +0.0897549         0xffff00
    -0.00521867    +0.104465          0xffff00
    +0.0829188     +0.104465          0xffff00
    +0.0829188     +0.0897549         0xffff00
    +0.0151372     +0.0146794         0xffff00
    +0.0845363     +0.0146794         0xffff00
    +0.0845363     +0                 0xffff00
    -0.00683615    +0                 0xffff00
    -0.232948      +0                -1
    -0.251656      +0.104465          0xffff00
    -0.234474      +0.104465          0xffff00
    -0.220862      +0.0226447         0xffff00
    -0.220649      +0.0226447         0xffff00
    -0.202429      +0.0946684         0xffff00
    -0.184393      +0.0946684         0xffff00
    -0.167089      +0.019837          0xffff00
    -0.166784      +0.019837          0xffff00
    -0.151677      +0.104465          0xffff00
    -0.137425      +0.104465          0xffff00
    -0.157903      +0                 0xffff00
    -0.176244      +0                 0xffff00
    -0.194311      +0.0778832         0xffff00
    -0.194494      +0.0778832         0xffff00
    -0.214423      +0                 0xffff00
    -0.232948      +0                 0xffff00
    -0.496475      +0                -1
    -0.496475      +0.0146794         0xffff00
    -0.46382       +0.0146794         0xffff00
    -0.46382       +0.10773           0xffff00
    -0.496475      +0.10773           0xffff00
    -0.496475      +0.12241           0xffff00
    -0.411603      +0.12241           0xffff00
    -0.411603      +0.10773           0xffff00
    -0.444227      +0.10773           0xffff00
    -0.444227      +0.0146794         0xffff00
    -0.411603      +0.0146794         0xffff00
    -0.411603      +0                 0xffff00
    -0.496475      +0                 0xffff00
    -0.716788      +0                -1
    -0.716788      +0.0212104         0xffff00
    -0.69393       +0.0212104         0xffff00
    -0.69393       +0                 0xffff00
    -0.716788      +0                 0xffff00
    -0.762474      +0.00320444       -1
    -0.780969      -0.00161748        0xffff00
    -0.798364      -0.00326548        0xffff00
    -0.816675      -0.0013123         0xffff00
    -0.832453      +0.00454726        0xffff00
    -0.845729      +0.0143132         0xffff00
    -0.855678      +0.0272835         0xffff00
    -0.86166       +0.0426954         0xffff00
    -0.863674      +0.0605792         0xffff00
    -0.86169       +0.0787072         0xffff00
    -0.855739      +0.0943937         0xffff00
    -0.84579       +0.107639          0xffff00
    -0.832698      +0.117649          0xffff00
    -0.817133      +0.123661          0xffff00
    -0.799097      +0.125675          0xffff00
    -0.782189      +0.124241          0xffff00
    -0.764122      +0.119907          0xffff00
    -0.764122      +0.102237          0xffff00
    -0.782678      +0.108798          0xffff00
    -0.799951      +0.110965          0xffff00
    -0.817499      +0.107456          0xffff00
    -0.83166       +0.0969573         0xffff00
    -0.840968      +0.0809961         0xffff00
    -0.844081      +0.0611896         0xffff00
    -0.842524      +0.0474868         0xffff00
    -0.837855      +0.0355235         0xffff00
    -0.830042      +0.0253609         0xffff00
    -0.819819      +0.0176397         0xffff00
    -0.807764      +0.0129704         0xffff00
    -0.79397       +0.0114139         0xffff00
    -0.779412      +0.013123          0xffff00
    -0.762474      +0.0183111         0xffff00
    -0.762474      +0.00320444        0xffff00
    -0.715171      +0.0408032        -1
    -0.715171      +0.0434584         0xffff00
    -0.713919      +0.0549944         0xffff00
    -0.710196      +0.0649129         0xffff00
    -0.703574      +0.0740989         0xffff00
    -0.693564      +0.0834681         0xffff00
    -0.686758      +0.0889615         0xffff00
    -0.676229      +0.10007           0xffff00
    -0.67272       +0.111026          0xffff00
    -0.67626       +0.12186           0xffff00
    -0.686941      +0.128391          0xffff00
    -0.704733      +0.130558          0xffff00
    -0.715506      +0.129887          0xffff00
    -0.726585      +0.127842          0xffff00
    -0.726585      +0.112613          0xffff00
    -0.741264      +0.112613          0xffff00
    -0.741264      +0.139775          0xffff00
    -0.721732      +0.143895          0xffff00
    -0.701895      +0.145238          0xffff00
    -0.681082      +0.143254          0xffff00
    -0.665731      +0.137242          0xffff00
    -0.656301      +0.127506          0xffff00
    -0.653127      +0.114231          0xffff00
    -0.657704      +0.0984222         0xffff00
    -0.671468      +0.083224          0xffff00
    -0.680898      +0.0755943         0xffff00
    -0.692343      +0.0627461         0xffff00
    -0.695578      +0.0475478         0xffff00
    -0.695578      +0.0408032         0xffff00
    -0.715171      +0.0408032         0xffff00
    -0.0443739     +0.104465         -1
    -0.0443739     +0                 0xffff00
    -0.0639668     +0                 0xffff00
    -0.0639668     +0.0202643         0xffff00
    -0.0737327     +0.00808741        0xffff00
    -0.0856349     +0.000824          0xffff00
    -0.0996429     -0.00161748        0xffff00
    -0.112583      +0.000549333       0xffff00
    -0.12183       +0.00714133        0xffff00
    -0.127384      +0.018128          0xffff00
    -0.129246      +0.0335093         0xffff00
    -0.129246      +0.104465          0xffff00
    -0.109653      +0.104465          0xffff00
    -0.109653      +0.038728          0xffff00
    -0.10596       +0.021424          0xffff00
    -0.0933866     +0.0163274         0xffff00
    -0.0790124     +0.021424          0xffff00
    -0.0639668     +0.0367138         0xffff00
    -0.0639668     +0.104465          0xffff00
    -0.0443739     +0.104465          0xffff00
    +0.256661      +0                -1
    +0.237953      +0.104465          0xffff00
    +0.255135      +0.104465          0xffff00
    +0.268777      +0.0226447         0xffff00
    +0.26896       +0.0226447         0xffff00
    +0.287179      +0.0946684         0xffff00
    +0.305216      +0.0946684         0xffff00
    +0.32252       +0.019837          0xffff00
    +0.322825      +0.019837          0xffff00
    +0.337931      +0.104465          0xffff00
    +0.352214      +0.104465          0xffff00
    +0.331706      +0                 0xffff00
    +0.313364      +0                 0xffff00
    +0.295297      +0.0778832         0xffff00
    +0.295114      +0.0778832         0xffff00
    +0.275185      +0                 0xffff00
    +0.256661      +0                 0xffff00
    +0.360363      +0                -1
    +0.360363      +0.104465          0xffff00
    +0.379955      +0.104465          0xffff00
    +0.379955      +0.0842616         0xffff00
    +0.390454      +0.0963775         0xffff00
    +0.403119      +0.103641          0xffff00
    +0.418012      +0.106082          0xffff00
    +0.437086      +0.103641          0xffff00
    +0.437086      +0.0734275         0xffff00
    +0.422376      +0.0734275         0xffff00
    +0.422376      +0.0887478         0xffff00
    +0.41496       +0.0897549         0xffff00
    +0.396527      +0.0846889         0xffff00
    +0.388409      +0.0779138         0xffff00
    +0.379955      +0.0675375         0xffff00
    +0.379955      +0                 0xffff00
    +0.360363      +0                 0xffff00
    +0.518662      +0.127293         -1
    +0.518662      +0.150151          0xffff00
    +0.54152       +0.150151          0xffff00
    +0.54152       +0.127293          0xffff00
    +0.518662      +0.127293          0xffff00
    +0.52031       +0                -1
    +0.52031       +0.0897549         0xffff00
    +0.482772      +0.0897549         0xffff00
    +0.482772      +0.104465          0xffff00
    +0.539903      +0.104465          0xffff00
    +0.539903      +0                 0xffff00
    +0.52031       +0                 0xffff00
    +0.698202      +0.000946074      -1
    +0.684317      -0.000976592       0xffff00
    +0.670888      -0.00161748        0xffff00
    +0.65157       +0.000396741       0xffff00
    +0.639576      +0.00650044        0xffff00
    +0.633381      +0.0182501         0xffff00
    +0.631275      +0.0372631         0xffff00
    +0.631275      +0.0864895         0xffff00
    +0.605182      +0.0864895         0xffff00
    +0.605182      +0.101199          0xffff00
    +0.631275      +0.101199          0xffff00
    +0.631275      +0.12241           0xffff00
    +0.650868      +0.12241           0xffff00
    +0.650868      +0.101199          0xffff00
    +0.696554      +0.101199          0xffff00
    +0.696554      +0.0864895         0xffff00
    +0.650868      +0.0864895         0xffff00
    +0.650868      +0.0347911         0xffff00
    +0.651936      +0.0228889         0xffff00
    +0.656606      +0.017243          0xffff00
    +0.675253      +0.0130619         0xffff00
    +0.686758      +0.0137028         0xffff00
    +0.698202      +0.015717          0xffff00
    +0.698202      +0.000946074       0xffff00
    +0.817347      +0.00512711       -1
    +0.798914      +6.1037e-05        0xffff00
    +0.782067      -0.00161748        0xffff00
    +0.765923      -0.000122074       0xffff00
    +0.752434      +0.00442518        0xffff00
    +0.741661      +0.0120243         0xffff00
    +0.733848      +0.0224311         0xffff00
    +0.729148      +0.0354625         0xffff00
    +0.727592      +0.0511185         0xffff00
    +0.729087      +0.0661946         0xffff00
    +0.733634      +0.0793481         0xffff00
    +0.741234      +0.0906095         0xffff00
    +0.751152      +0.0991852         0xffff00
    +0.762719      +0.104343          0xffff00
    +0.775933      +0.106082          0xffff00
    +0.794397      +0.102878          0xffff00
    +0.807276      +0.093234          0xffff00
    +0.81286       +0.0831019         0xffff00
    +0.816218      +0.0697958         0xffff00
    +0.817347      +0.0533158         0xffff00
    +0.817347      +0.0473342         0xffff00
    +0.747154      +0.0473342         0xffff00
    +0.750267      +0.0323496         0xffff00
    +0.75753       +0.0216376         0xffff00
    +0.768944      +0.0151982         0xffff00
    +0.784539      +0.0130619         0xffff00
    +0.800195      +0.0148625         0xffff00
    +0.817347      +0.0203253         0xffff00
    +0.817347      +0.00512711        0xffff00
    +0.849971      +0                -1
    +0.849971      +0.0212104         0xffff00
    +0.872829      +0.0212104         0xffff00
    +0.872829      +0                 0xffff00
    +0.849971      +0                 0xffff00
    +0.747703      +0.0620136        -1
    +0.797754      +0.0620136         0xffff00
    +0.797754      +0.0645772         0xffff00
    +0.79516       +0.0794702         0xffff00
    +0.787378      +0.0883816         0xffff00
    +0.774346      +0.0914029         0xffff00
    +0.764153      +0.0894498         0xffff00
    +0.756066      +0.0836512         0xffff00
    +0.750481      +0.0743736         0xffff00
    +0.747703      +0.0620136         0xffff00
    +0.853999      +0.0408032        -1
    +0.851619      +0.113742          0xffff00
    +0.851619      +0.142003          0xffff00
    +0.871212      +0.142003          0xffff00
    +0.871212      +0.113742          0xffff00
    +0.868709      +0.0408032         0xffff00
    +0.853999      +0.0408032         0xffff00

PSS. I'm pretty sure this is the first laser vector art frame ever pasted into a forum!
« Last Edit: July 25, 2009, 11:59:33 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: What 's old is new again!
« Reply #1 on: July 19, 2009, 11:39:32 pm »
 What's old is new again... A few months back, my mom's TV set took a dump, so we went to the store to pick out
one of them new high-flutin' flatscreen 1080P HDTV jobs- now, mom can clearly count the hairs on top of Dr. Phil's
head... Mom's big complaint was that it takes the new set a little while to start up (maybe 10 or 15 sec)- I remember the day when you turned on the TV (or the radio) and waited a good 45 sec or so for the tubes to warm up. Now, we wait for the CPU to boot up! ;D
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: What 's old is new again!
« Reply #2 on: July 20, 2009, 02:30:59 am »
I'm going to bed now.

I expect full reports from several of you with my first cup of coffee!  ;)

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

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: What 's old is new again!
« Reply #3 on: July 20, 2009, 06:59:06 am »
I'm not sure what to do with it.  Please post a format spec.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: What 's old is new again!
« Reply #4 on: July 20, 2009, 01:45:39 pm »
What?

You want instructions?

Geeeeeeeeeeeezzzzzzzz!

Some people!

OK.

Coffee is brewing...

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

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: What 's old is new again!
« Reply #5 on: July 20, 2009, 02:31:59 pm »
OK. This is all about the new old ASCII text color laser vector art file format.

Since it is text, it relies on delimiting principals of text; i.e.: white space and lines.

# A comment is anything on a line that follows a bletch (#).

There are three different kinds of text information blocks.

frame
palette
table


Each block of text starts with a line with one of these words as the first token. The first word is the only criteria of the block that can not be assumed to be a default value. Tokens that modify the meaning of the first word may follow.

The tokens that modify the word frame are:

frame [xy | xyz]  [rgb | hex | palette | table]  [short | unit | real]

(Importing "real" numbers for coordinates is not done yet.) EDIT: maybe! try the latest version!

The tokens in bold are the assumed values. Tokens may be omitted only from right to left. In other words, if you want to designate a frame to store coordinates in unit values, you must also specify your choice of [xy | xyz]  [rgb | hex | palette | table] before you place the token unit at the end of the line.

So, just placing the word

frame

on a line by itself tells LaserBoy to read the numbers that follow it as though it was

frame xy rgb short

a 2D frame of 16-bit signed short integers with individual byte values (0 - 255) for each red, green and blue; a total of 5 numerical values per vertex (per line).

frame xyz

would be a similar 3D frame.

frame xy hex

would be a 2D frame of 16-bit signed short integers with one 24-bit hexadecimal value for the color.

LaserBoy ASCII text frame blocks can have the color integrated into them or they can rely on palettes or tables.

The relationship between frames palettes and tables is similar to the way it was supposed to work in the ILDA format.

A palette can have a one-to-many relationship with frames. A palette must be defined in the file before it is used by any frame. If a frame definition appears that uses the word palette to describe its color model before any palette is defined, the default palette of 62 colors is assumed.

Since the frame designates that its color is to be one of [rgb | hex | palette | table] LaserBoy knows to use the last palette loaded into the palette array. LaserBoy can also distinguish between a frame that uses a palette or a table (with ILDA format 0 or 1 there is no difference). So it is not necessary to repeat a palette definition after a table + frame combination.

A palette can be stored as rgb or hex, just like the integrated color values of the frame. A palette can also be named. A named palette is any one of the pre-defined palettes that come with the LaserBoy application.

A name is 8 or less characters following the color storage token.

palette [rgb | hex | named] [name]

If you store frames with palettes that are built into LaserBoy, you have the option of just storing the name of the palette and none of its values. LaserBoy looks for the name and if it finds it in the array of predefined palettes it uses that one; if not, it's an error.

Any palette can be giving a name, but only those palettes that are built into LaserBoy can be designated as named.

In other words, a custom palette could be made with the first line like this:

palette rgb happy

This would need to be followed by lines containing r, g, b byte values, one color per line. This palette would load into LaserBoy with the name "happy".

A table is much like the ill-fated ILDA format 3. It is a list of only the color values of a frame in the same exact order as the vertices of the frame that must follow it. It has a one-to-one relationship with the frame. Tables can also be rgb or hex, but they can not have a name.

table [rgb | hex]

Blanking is indicated in either frames or tables by storing the literal number -1. Since a blank vertex has no color, there is no need to store or read anything after that single value. It takes three values to store a color in rgb format, but only one value to designate that it is blank.

The keywords or tokens that are part of the LaserBoy ASCII file format are lower case only! Names for palettes can be up to 8 of any of the visible characters.

When reading a line of numerical values, LaserBoy assumes that all of those values are relative to only one item; a vertex or a palette color value. It also assumes the individual values of each part, x, y, z, r, g, or b to be zero before it is read. If a line terminates before all the values are found, the unfound values remain zero. Extra information after all of the expected values are found is ignored.

Now, take a look at what LaserBoy can make for you when you save as txt. Take a look at the output options you have in menu 'x'.

Code: [Select]

 --> e save txt frames with integrated color
 --> f save txt coordinates in unit (-1.0 ~ +1.0) space
 --> g save txt colors as hex
 --> h save txt named LaserBoy palette data

Does that make more sense?

Based on this description, please try to BUST IT!  :o

And let me know what you find.  %) ;) ;D

James.  :)
« Last Edit: July 26, 2009, 12:13:00 am by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: What 's old is new again!
« Reply #6 on: July 20, 2009, 09:23:08 pm »
That will work.  I'm not sure what purpose it serves but it works.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: What 's old is new again!
« Reply #7 on: July 20, 2009, 10:10:23 pm »
Have you ever worked with MatLab or Maple?

Have you ever written an Excel spread sheet with macro functions?

Knowing what you know about the ILDA file format, you can see that it would be WAY easier for someone to write code that puts out these simple text blocks than it would be to write out formatted binary ILDA!

Besides that, now you can make frames just by typing values in NotePad!

How cool is that?  ;D

James.  :)
« Last Edit: July 21, 2009, 02:11:00 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: What 's old is new again!
« Reply #8 on: July 20, 2009, 10:16:42 pm »
Quote
That will work.  I'm not sure what purpose it serves but it works.
High praise from a Vulcan... ;)
Bletch??? I always thought the # sign was called the pound key (maybe that's only on telephones).
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: What 's old is new again!
« Reply #9 on: July 20, 2009, 11:28:45 pm »
It is a pound sign. It's also a sharp and a tic-tac-toe!

This addition of ASCII text to the world of laser display is "one small step for man; one giant leap for mankind."

And no one seems to have noticed!

(Check the date, today!)

James.  :)
« Last Edit: July 20, 2009, 11:57:55 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: What 's old is new again!
« Reply #10 on: July 21, 2009, 01:13:48 am »
that's cool, I think.  Also since you mentioned it, here's the MATLAB code for ILDA opening, in case someone actually can use it :)

Code: [Select]
function [f,type,endbyte,more]=ildopen(file,startbyte)
%opens ilda file and reads frame starting at startbyte (second parameter 0 indexed)
%returns a matrix [x y colorindex blanked]
%
fid=fopen(file,'r','b');
fseek(fid,7+startbyte,-1);
type=fread(fid,1,'char');
switch type
case {0} %ignore z data for now
    fseek(fid,16,0);
    size=fread(fid,1,'ushort');
    if size ~= 0
        fseek(fid,6,0);
        frameloc=ftell(fid);
        x=fread(fid,size,'short',6);
        fseek(fid,frameloc+2,-1);
        y=fread(fid,size,'short',6);
        fseek(fid,frameloc+6,-1);
        b=fread(fid,size,'uchar',7);
        fseek(fid,frameloc+7,-1);
        c=fread(fid,size,'uchar',7);
        endbyte=ftell(fid)-7;
    else
        x=0;y=0;c=0;b=0;endbyte=0;
    end
case {1} %2D paletted ilda
    fseek(fid,16,0);
    size=fread(fid,1,'ushort');
    if size ~= 0
        fseek(fid,6,0);
        frameloc=ftell(fid);
        x=fread(fid,size,'short',4);
        fseek(fid,frameloc+2,-1);
        y=fread(fid,size,'short',4);
        fseek(fid,frameloc+4,-1);
        b=fread(fid,size,'uchar',5);
        fseek(fid,frameloc+5,-1);
        c=fread(fid,size,'uchar',5);
        endbyte=ftell(fid)-5;
    else
        x=0;y=0;c=0;b=0;endbyte=0;
    end
case {4} %3D 24 bit color ilda
    fseek(fid,16,0);
    size=fread(fid,1,'ushort'); %read in number of points
    if size ~= 0
        fseek(fid,6,0); %skip to frame data
        frameloc=ftell(fid);
        x=fread(fid,size,'short',8);
        fseek(fid,frameloc+2,-1);
        y=fread(fid,size,'short',8);
        fseek(fid,frameloc+6,-1);
        b=fread(fid,size,'uchar',9);
        fseek(fid,frameloc+7,-1);
        c=fread(fid,size,'ubit24',7*8);  %skip is in bits
        endbyte=ftell(fid)-7; %remove final skip
    else
        x=0;y=0;c=0;b=0;endbyte=0;
    end
case {5} %2D 24 bit color ilda
    fseek(fid,16,0);
    size=fread(fid,1,'ushort'); %read in number of points
    if size ~= 0
        fseek(fid,6,0); %skip to frame data
        frameloc=ftell(fid);
        x=fread(fid,size,'short',6);
        fseek(fid,frameloc+2,-1);
        y=fread(fid,size,'short',6);
        fseek(fid,frameloc+4,-1);
        b=fread(fid,size,'uchar',7);
        fseek(fid,frameloc+5,-1);
        c=fread(fid,size,'ubit24',5*8); %skip is in bits
        endbyte=ftell(fid)-5;
    else
        x=0;y=0;c=0;b=0;endbyte=0;
    end
otherwise
    disp('Unknown frame format');
end
more=0;
if ~fseek(fid,33,0)
    more=1;
end
fclose(fid);
f=[x,y,c,bitget(b,7)];

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: What 's old is new again!
« Reply #11 on: July 21, 2009, 02:09:36 am »
What?

You don't read format 0, 3D?

And what about our all-time-favorite format 3 color tables?

You don't read those either!

Oh well. You won't need any of that crap anymore.

Now you can just use plain text blocks!

Cut and paste!

Have fun!

I'd like to know what Steve Roberts wants to do with this.

He's the one who asked for it!

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

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: What 's old is new again!
« Reply #12 on: August 12, 2009, 01:37:07 am »
I see someone (-bart-) used the text import of LaserBoy to make some art out of Brownian Noise.

http://www.photonlexicon.com/forums/showthread.php?p=110252#post110252

Unfortunately, I can not download.

Could one of you PL members get it and post it here?

I'd like to see it. Agent-C told me about Brownian Noise.

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

Offline Lazerjock

  • Full Member
  • ***
  • Posts: 237
  • Milliwatts: 8
  • Gender: Male
  • Laser @ Universal Studios Fl Spiderman ride
    • View Profile
Re: What 's old is new again!
« Reply #13 on: August 12, 2009, 07:42:55 am »
I downloaded it yesterday. I looked at it in Spaghetti. Maybe I'm missing something, but it's just garbage.
I understand it represents Brown noise, but it dodn't do much for me as far as a laser graphic.

Maybe I need to open my mind more to the science behind it.

Any way here it is.

Lazerjock

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: What 's old is new again!
« Reply #14 on: August 12, 2009, 04:54:41 pm »

I understand it represents Brown noise,
Lazerjock

Uh oh the Brown Noise in laser! 
No, brownian motion is random motion of molecules.  This would be cool but each frame is completely different, not a progression of the noise in time.

 

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