home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1869 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: EU.net!sun4nl!xs4all!marketgraph!rvg
  2. From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Assembly Interlace problem!
  5. Message-ID: <102doax60.alamito@marketgraph.xs4all.nl>
  6. Date: Wed, 24 Jan 96 14:45:16 CET
  7. References: <3104F66D.74@gih.no>
  8. Reply-To: rvg@marketgraph.xs4all.nl
  9. X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
  10.  
  11. In <3104F66D.74@gih.no> ARNLEIF MYDLAND <arn_mydl@gih.no> wrote:
  12.  
  13. >I am trying to display a 1280*512*8 image using an assembler, but
  14. >I can't get the screen to do the 512 interlaced.
  15. >
  16. > I've dumped the original view and made my own copper and set the bpl
  17. >pointers, colors, mode to 8 bitplanes SHRES and the lace bit, and
  18. >the FMODE to 8 byte.
  19. > My screen goes 1280*256*8 and it starts flickering. So, I must have
  20. >missed something important here! 
  21.  
  22. First, the problem is that the 2nd field is never shown. You need 2 
  23. copperlists, the 2nd differing in the 1st line in what starting line it shows 
  24. of the planes. Didn't you notice something like this when you thought about 
  25. the modulo's?
  26. You could let the copperlist poke it's own location to the 2nd cprlist at the 
  27. end, and let the 2nd cprlist poke cop1lc or cop2lc to the 1st (or use a VTB 
  28. server which pokes it for you; not recommended). Note however, that the 
  29. system has a VTB server that pokes COP2LC for you if you set the lace bit in 
  30. GfxBase->Modes (4). You will notice this, perhaps, when setting your shell 
  31. display to lace, and running your code.
  32. You could then use GfxBase->LOFlist and GfxBase->SHFlist to let the system 
  33. handle your copperlists for you. LOFlist=1st field, SHFlist=2nd. These are 
  34. cop2lc locations; cop1lc is only poked now & then by GfxBase, and you can set 
  35. it yourself; custom.cop1lc=<mycprlist1>. Please Forbid() or get an 
  36. eventhandler which dumps all events (return 0 or something).
  37.  
  38. Note that this information is nice for your current Amiga, but it will 
  39. probably fail on the new generation (read: oncoming AT machines). It's 
  40. hardware poking, but I'm using it with 50% of my programs, stocked away in a 
  41. module, because I can do better overscan with my own copperlists (at the top 
  42. of the screen; views begin too low for television true overscan).
  43. Not recommended.
  44.  
  45. --
  46. Ruud van Gaal
  47. MarketGraph Visual Automation
  48. E-Mail                : rvg@marketgraph.xs4all.nl
  49. DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
  50. "...Works fascinates me. I could sit and watch it for hours..."
  51.  
  52.