home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / programming / assembly / plasm.lha / plasma.doc < prev   
Encoding:
Text File  |  1991-12-09  |  2.1 KB  |  54 lines

  1. First of all,try other value's on fvert,qhor,qvert,fhor. different plasma !!
  2. You can see,that the horizontal distance between two colors is eight pixels. 
  3. As you may know,that's the minimum distance between two copper-colors. But 
  4. how can you move all the colors 56 horizontal pixels ?? -> solution:
  5.  
  6. - You need 4 bitplane's.
  7.  
  8. plasmaline(this line is important):
  9.  dc.l $00ff00ff,$ff00ff00,$00ff00ff,$ff00ff00
  10.  
  11. bitpl1: plasmaline
  12. bitpl2: plasmaline+2 + shifted 8 pixels to the right
  13. bitpl3: plasmaline+2
  14. bitpl4: plasmaline+4 + shifted 8 pixels to the right
  15.  
  16. So,
  17. bpl1: dc.l $00ff00ffff00ff0000 ff00ffff00ff0000 ff00ffff00ff0000
  18. bpl2: dc.l $--00ffff00ff0000ff 00ffff00ff0000ff 00ffff00ff0000
  19. bpl3: dc.l $00ffff00ff0000ff00 ffff00ff0000ff00 ffff00ff0000
  20. bpl4: dc.l $--ff00ff0000ff00ff ff00ff0000ff00ff ff00ff0000
  21.             | | | | | | | | |  | | | | | | | |
  22. color-      --  06  05  09  10   06  05  09  10
  23. register.     13  11  02  04   13  11  02  04
  24.  
  25. You put the registervalue's(example: 13=$198) into the copperlist under the 
  26. bitplane.
  27.           (1)  56 pixels 
  28. bitplane:  X <----------->
  29.  
  30. copper:    X , , , , , , X
  31.           (2)           (3)
  32.  
  33. (1)= bitplane combination for color13.
  34. (2)= copper instruction that defines color13.
  35. (3)= also copper instr.that def.color13,but 64 pixels away from (2).
  36.  
  37. Now,you can shift the bitplane 56 pixels,and the colors wont't change.
  38. Are you shifting more than 56 pixels then the bitplane combination will
  39. take(ofcourse) the color of the new defined color13 (3),and the color 
  40. changes.
  41.  
  42. Ofcourse I shifted the lines with the blitter. I also used the blitter for 
  43. putting the colors into the copperlist. load the green-bar into A,red in B
  44. ,and blue in C. Put them together into D with all the minterms on,except the
  45. one where all the bits are zero.
  46.  
  47. By the way:you can easily make a much nicer plasma,if you make the sinus much
  48. bigger,but it still must go from 0 to 56. And you can put diffent value's 
  49. into the fvertx(sinus frequenty) and qvertx(speed of sinus).
  50. The vertical sinus has got no limitations,so you can make a sinus for it
  51. that goes further than 56 pixels.
  52.  
  53. Greets: Rene Olsthoorn.
  54.