Signup Issues have been resolved (hopefully). If you have previously had issues signing up for the forum, please try again.
0 Members and 1 Guest are viewing this topic.
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
--> 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
That will work. I'm not sure what purpose it serves but it works.
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 typecase {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; endcase {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; endcase {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; endcase {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; endotherwise disp('Unknown frame format');endmore=0;if ~fseek(fid,33,0) more=1;endfclose(fid);f=[x,y,c,bitget(b,7)];
I understand it represents Brown noise, Lazerjock