Quote:
Originally Posted by Toni Wilen
I think the reason was first or last pixel of line that messes up filling without extra code. Fortunately there is very simple trick: point D-channel to scratch region, C-channel to real bitplane. Result: first pixel goes to "scratch" area, the rest is written normally.
|
Quote:
Originally Posted by pmc
So that means that with a very small change I might even be able to get my line draw routine to work for filled vectors in the future too?
|
As a follow up to this earlier discussion I thought I'd try those small changes on my 3D cube routine to see if I would get a filled cube.
Unfortunately the blitter area fill didn't work properly.
In my line routine I did this:
bltcpth --> screen bitplane
bltdpth --> dummy screen biplane scratch area
set line mode and sing bit (one pixel / scanline line mode) bits in bltcon1
Then I did a blitter area fill but got the blitter fill turning off and on at the wrong places which is the problem you're supposed to get when trying to use blitter area fill for vector graphics polygons instead of a software Bresenham's line draw algorithm.
Any ideas people (Toni...?)? Did I still miss out doing something in my line routine?