Path: chuka.playstation.co.uk!news From: James Rutherford Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: How do I manipulate Pixels? Date: Tue, 11 Aug 1998 16:02:01 +0100 Organization: The Hex Heroes Lines: 22 Message-ID: <35D05CE9.7B63@writeme.com> References: <6qfcml$ldg12@chuka.playstation.co.uk> NNTP-Posting-Host: atl4-030.publab.ed.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.03 (Win95; I) Chris Searle wrote: > As and example how would I rereate TV static, ie randomly setting each > pixel as black or white ( rand()%2 , on or off). (sorry, no source! ;) ) The best way I can think of is by predefining an area in VRAM (size 128x128?) full of randomly coloured pixels - possibly using a LoadImage method as outlined above, and then setup smaller GsSPRITES (eg 32x32) to cover your screen. You can then alter the sprite u and v co-ordinates semi-randomly (slightly faked so that they never point to the same area on consecutive frames). Should be fast and fairly fluid - you can also have fades and transparency effects. If I were you, I'd steer clear of colour cycling - unless you're really clever about it, it tends to look naff. James (~mrfrosty)