Path: chuka.playstation.co.uk!news From: "Andrew Partington" Newsgroups: scee.yaroze.beginners Subject: Re: CLUT lookup help! Date: Thu, 9 Sep 1999 06:02:49 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 24 Message-ID: <7r8b32$mac2@chuka.playstation.co.uk> References: <7r7386$23b11@chuka.playstation.co.uk> NNTP-Posting-Host: modem-88.risperdal.dialup.pol.co.uk X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Hi all Heh, well i've sussed out what was wrong with my code, the CLUT colour retrieval was working properly, but I hadn't copied the right area of VRAM to my buffer, doh! I should have been copying from where my game graphics start, instead it was copying a 16*8 block from the top left hand corner of VRAM. And to make matters worse, I forgot to allow for the size of the pixels in VRAM for 8-bit sprites - 8 bytes in VRAM in 256 colour mode represents 16 pixels!! So when i've coded the routine and buzzed off it a bit, i'll knock together another tutorial and put it on my site! Cheers Andy a.partington@yaroze41.freeserve.co.uk http://www.netyaroze-europe.com/~partinga