murrayk@prism.CS.ORST.EDU (05/09/91)
I am currently trying to write some code that will draw a solid-fill triangle on the VGA 640 x 350 screen (I am using this resolution so I can easily write an EGA version also). What the routine needs to do is to take in as input three points (x, y), a color, and a page number (0 or 1) and then as output the routine will draw a filled triangle with the three given points as the vertices. The routine needs to be really fast. I am having some problems as I have not been coding assemply for a long enough amount of time. If anyone has code to do this or is willing to tell me how to do it I would be very (read that extremely VERY) happy. If I do get this code, I will post the program that it is going to be used in, it will probably be a simple demo just to check things out. Thanks a lot for any help you can give me, Keith. ------------------------------ | CHAOS Software | "If I tell ya what I'm doing | 1360 NW VanBuren | today, will you shut up and | Corvallis, OR 97330 | get out of my way?" ------------------------------ -ANTHRAX- Keith Murray (503) 757-2753 "A little man with a big eraser, murrayk@prism.cs.orst.ed changing history..." -MEGADEATH- ------------------------------ | CHAOS Software | "If I tell ya what I'm doing | 1360 NW VanBuren | today, will you shut up and | Corvallis, OR 97330 | get out of my way?" ------------------------------ -ANTHRAX- Keith Murray (503) 757-2753 "A little man with a big eraser, murrayk@prism.cs.orst.ed changing history..." -MEGADEATH-
will@rins.ryukoku.ac.jp (will) (05/09/91)
Try the Warp Graphics Library by: Tevor Bell. The demo seems to be as fast as it gets and the source is available for $50.00. Trevor Bell P.O. Box 4173 Redondo Beach, CA. 90278 The Source BBS: 213-371-3737. Hope this helps. William Dee Rieken Researcher, Computer Visualization Faculty of Science and Technology Ryukoku University Seta, Otsu 520-21, Japan Tel: 0775-43-7418(direct) Fax: 0775-43-7749 will@rins.ryukoku.ac.jp
joe@proto.com (Joe Huffman) (05/10/91)
murrayk@prism.CS.ORST.EDU writes: >I am currently trying to write some code that will draw a solid-fill >triangle on the VGA 640 x 350 screen You can buy the source for the Zortech graphics library which includes a polygon fill routine for $200.00 minus your educational discount. This may not be the best for you since it handles concave and complex polygons at the expense of speed. You could of course make modifications to speed it up at the loss of generality. Also you might look at Foley, van Dam, Feiner, and Hughes "Computer Graphics Principles and Practice". They have a section on filling polygons. -- joe@proto.com