Signup Issues have been resolved (hopefully). If you have previously had issues signing up for the forum, please try again.
0 Members and 2 Guests are viewing this topic.
## LaserBoy color rescale file# This is a comment# This example is linear012825638451264076889610241152128014081536166417921920204821762304243225602688281629443072320033283456358437123840396840964224435244804608473648644992512052485376550456325760588860166144627264006528665667846912704071687296742475527680780879368064819283208448857687048832896090889216934494729600972898569984101121024010368104961062410752108801100811136112641139211520116481177611904120321216012288124161254412672128001292813056131841331213440135681369613824139521408014208143361446414592147201484814976151041523215360154881561615744158721600016128162561638416512166401676816896170241715217280174081753617664177921792018048181761830418432185601868818816189441907219200193281945619584197121984019968200962022420352204802060820736208642099221120212482137621504216322176021888220162214422272224002252822656227842291223040231682329623424235522368023808239362406424192243202444824576247042483224960250882521625344254722560025728258562598426112262402636826496266242675226880270082713627264273922752027648277762790428032281602828828416285442867228800289282905629184293122944029568296962982429952300803020830336304643059230720308483097631104312323136031488316163174431872320003212832256323843251232640
So, even if you use color rescales to optimize your systems color linearity, you can share your waves with others and they can open them in LaserBoy, strip out the compensation for your system and put in their own, if they choose.
Since the rescale tables are stored in the header of the wave and they are both one-to-one and onto functional relationships, they can be undone.
#define LASERBOY_WAVE_NEGATIVE 0 // bit position#define LASERBOY_WAVE_POSITIVE 1 // 0#define LASERBOY_WAVE_END_OF_FRAME 2 // 1#define LASERBOY_WAVE_UNIQUE_FRAME 4 // 2#define LASERBOY_WAVE_UNIQUE_VERTEX 8 // 3#define LASERBOY_WAVE_OFFSETS 16 // 4#define LASERBOY_WAVE_OPTIMIZED 32 // 5#define LASERBOY_WAVE_SIGNAL_MATRIX 64 // 6#define LASERBOY_SIGNAL_BIT_RESOLUTION 128 // 7#define LASERBOY_WAVE_NUM_FRAMES 256 // 8#define LASERBOY_COLOR_RESCALE_R 512 // 9#define LASERBOY_COLOR_RESCALE_G 1024 // 10#define LASERBOY_COLOR_RESCALE_B 2048 // 11#define LASERBOY_COLOR_RESCALE_I 4096 // 12
sub_chunk_1_size += ( 16 // sizeof "LaserBoymmddCCYY" + sizeof(int) // sizeof (int)LaserBoy_wave_mode + ( (LaserBoy_wave_mode & LASERBOY_WAVE_OFFSETS) ? (num_channels * sizeof(int)) : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_WAVE_OPTIMIZED) ? (7 * sizeof(int)) // seven 32bit numbers : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_WAVE_SIGNAL_MATRIX) ? (num_channels * 2 * sizeof(short)) : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_SIGNAL_BIT_RESOLUTION) ? (num_channels * sizeof(u_char)) : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_WAVE_NUM_FRAMES) ? (sizeof(int)) : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_COLOR_RESCALE_R) ? (256 * sizeof(short)) : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_COLOR_RESCALE_G) ? (256 * sizeof(short)) : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_COLOR_RESCALE_B) ? (256 * sizeof(short)) : (0) ) + ( (LaserBoy_wave_mode & LASERBOY_COLOR_RESCALE_I) ? (256 * sizeof(short)) : (0) ) );