# Scan Conversion

This topic is 4892 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Many articles I read on scan conversion suggest that the polygon to be scan converted should be broken down into a top and bottom half. Are there any other methods that do not require this step? Are they unbearably inefficient? Thanks.

##### Share on other sites
Quote:
 Original post by HexedAre there any other methods that do not require this step?

not that im aware of. the outline of a triangle simply is a piecewise function. nothing to be done about it. you may be able to include this fact into your code in some other way, but taking such considerations out of the innermost loop by splitting the triangle beforehand sounds like a good idea to me.
Quote:
 Are they unbearably inefficient?

i think the question you should be asking is: is splitting it in two halves unbearably inefficient?

##### Share on other sites
Quote:
 i think the question you should be asking is: is splitting it in two halves unbearably inefficient?

Maybe so. The equation to calculate the "dividing" point consists of one addition, two subtractions, one multiply, and one divide. Most (80%?) polys passed to this functions are probably going to be general (not flat topped or bottomed), and in a complex scene that would add up pretty quickly.

1. 1
Rutin
36
2. 2
3. 3
4. 4
5. 5

• 11
• 10
• 13
• 98
• 11
• ### Forum Statistics

• Total Topics
632974
• Total Posts
3009651
• ### Who's Online (See full list)

There are no registered users currently online

×