NNTP-Posting-Date: Tue, 01 Nov 2011 19:25:09 -0500 From: "Ste (news)" Subject: Re: Sprite Loading / Plotting SWIs and lotting in any colour depth Newsgroups: comp.sys.acorn.programmer Date: Wed, 02 Nov 2011 00:25:07 +0000 (GMT) Message-ID: <522b90d6d3steve@revi11.plus.com> References: <23903224.727.1317553440459.JavaMail.geo-discussion-forums@yqcr11> <6868509.667.1317554148688.JavaMail.geo-discussion-forums@yqbr29> <18723939.3923.1317668986907.JavaMail.geo-discussion-forums@yqlb4> <4e8a1091$0$290$14726298@news.sunsite.dk> <4e8b354b$0$30777$ba4acef3@reader.news.orange.fr> User-Agent: Pluto/3.04d (RISC-OS/5.17) NewsHound/v1.50-32 Organization: None Lines: 39 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-UgMH7twY/ROMFy32XaIjsmZRKBmVURwOwUjydhBoRqrnXugBDWL3oly99PWQsR9vyEXI32RrNHOSaYi!Pigf8W9LWCsP6To4/LijHTmRm7GrKYzbNA2oe+KkWEqzwIJILgVO2ncpZDHgUBtpCdV/yk834jP5!0A== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2731 Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:980 In article <4e8b354b$0$30777$ba4acef3@reader.news.orange.fr>, Rick Murray wrote: > On 04/10/2011 12:36, Martin Wuerthner wrote: > > It is a mystery to me why there is no "plot this sprite to the screen" > > SWI call in RISC OS. Seconded. > But, that said, it isn't that hard to built a ColourTrans table and plot > to screen. No, it is not that simple. First of all, just getting your head around those concepts is hard initially. Secondly, the documentation is spread over various parts of the PRMs. Thirdly, you will still get the wrong answer, because you've not created your transformation matrix to cope with differing eigen values of different screen modes. This is a whole extra can of worms. So a true, mode-independent sprite plotting routine actually takes quite a bit of crafting, testing and more than two SWI calls. And of course if you're writing a Wimp application, you then need to be watching for mode changes and re-calculating various things to cope with changes to the characteristics of the mode. It all ends up quite complicated. It can take _days_ (especially if you're fairly new to programming on RISC OS) of reading all sorts of bits of the PRMs, head-scratching, trying to comprehend arcane terminology and experimentation simply to plot a f*ing sprite on the screen. Utter, utter madness. Thanks, Steve -- Steve Revill @ Home Note: All opinions expressed herein are my own.