Path: utzoo!attcan!uunet!super!udel!gatech!uflorida!haven!sylvester.umd.edu!brett From: brett@sylvester.umd.edu (Brett S Bourbin) Newsgroups: comp.sys.amiga.tech Subject: HAM and Sprites... Message-ID: <3046@haven.umd.edu> Date: 16 Dec 88 17:25:51 GMT Sender: news@haven.umd.edu Reply-To: brett@sylvester.umd.edu.UMD.EDU (Brett S Bourbin) Organization: University of Maryland, College Park Lines: 37 Oh boy! After spending a full five days trying to track down a item I concidered to be a "bug" in my code, I found out it really wasn't. I have been trying to build a custom View HAM screen, which would also have sprites on it. So like every good programmer (i.e. NOT HACKER. 8^)), I followed the RKM and initialized everything, including V_SPRITES!V_HAM in the View and ViewPort structures. This should tell the MakeVPort function that I want HAM in the bplcon0 register (for the hardware hackers), and that I want the sprite color registers loaded in the Copper list. Well, to make a long story short, (I know, TO LATE) this was not the case. What I got was a screen with sprites, but the colors of the sprites were all wrong. They all were shades of grey (i.e. the default palette). So I tried to change them AFTER the View was built and loaded (LoadView) with the SetRGB4 call on all the sprite registers with still no result. Now I have to think that I am doing something wrong. After about 20 more edits of the subs.asm file (the one that builds the View), I decided to test one more thing -- removing the V_HAM from the View and ViewPort. Know what, I got the sprite colors that I wanted! So tell me CATS, why if I specifiy a HAM screen are the sprite color registers not loaded in the Copper list? I looked at the Copper list and found it was actually loading the grey colors, after I told it twice, (once in the LoadRGB4 and then SetRGB4) to change them? Is this a bug with the system software, or does something else have to be specified that is not in the manuals. The one solution I might have to fall back on is creating a user copper list to change the colors, but that seems like cheating. 8^) --Brett S Bourbin __ __ _ __ _ Instructional Computing Programs -- Univ of Maryland | || | / || || \ | || || || || | INTERNET: brett@SYLVESTER.UMD.EDU | || || || || | bbourbin@UMD5.UMD.EDU \_||_/ |__||__||__| BIX: brettb College Park BITNET: bbourbin@UMDD