home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!nigel.msen.com!hela.iti.org!cs.widener.edu!dsinc!bagate!cbmvax!chrisg
- From: chrisg@cbmvax.commodore.com (Chris Green)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: HELP: Fast Polygon filling
- Message-ID: <38703@cbmvax.commodore.com>
- Date: 21 Jan 93 13:03:54 GMT
- References: <C15Jr4.6rG@dcs.ed.ac.uk>
- Reply-To: chrisg@cbmvax.commodore.com (Chris Green)
- Organization: Commodore, West Chester, PA
- Lines: 37
-
- In article <C15Jr4.6rG@dcs.ed.ac.uk> jaxh@dcs.ed.ac.uk (Jon Hanson) writes:
- >Can anyone offer me any advice on how to go about writing a fast polygon filling
- >routine in assembler. I'm not looking for listings, just useful and not
- >too vague ideas.
- >
- >One posting I saw mentioned using the blitter in block mode to fill the
- >largest possible rectangle within the polygon, then using the CPU to fill the
- >remaining portions. But how do you find this block ? The same posting claimed
- >that drawing the outline of the polygon and then using blitter in fill mode is
- >too slow. Is this true ?
- >
- >Are you better off using Bresenham`s for line-drawing rather than the blitter ?
- >The algorithm I'm using is totally slowed down by having to find the screen edge
- >intersection for clipping (if part of the line is off screen). By using
- >Bresenham's I could check for the edge boudary for each pixel - no messy
- >mults and divides.
- >
- >Any email on the topic appreciated...
- >
- >Cheers,
- > .
- > |on Hanson
- > `-' jaxh@dcs.ed.ac.uk
-
- What's your typical polygon size? The tradeoffs and importnat areas for
- optimization are a lot different depending on whether your talking about
- a few large polygons or hundreds of small ones.
-
-
- --
- *-------------------------------------------*---------------------------*
- |Chris Green - Graphics Software Engineer - chrisg@commodore.COM f
- | Commodore-Amiga - uunet!cbmvax!chrisg n
- |My opinions are my own, and do not - icantforgettheimpression o
- |necessarily represent those of my employer.- youmadeyouleftaholeinthe r
- |"A screaming comes across the sky..." - backofmyhead d
- *-------------------------------------------*---------------------------*
-