Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: Triangle clipping?
Posted by: ray May,19.2005-17:07 

hiya symmetry,

interpolating triangle edges i went for a modified cohen-sutherland line classification (each vertex gets an additional 4 bit field flagging the h/v positions against each screenborder) - i am using an edgebuffer though.

the advantages are:
- very easy implementation
- you can use those clipcodes as offsets
into a jumptable so sub dividing/rejecting/trivially accepting sections doesn't almost cost anything
- noticeably better performance than the brute force "per scanline check" solution

it might be an option to kick the edgebuffer though, but i assume the code would get much more complicated.

regards







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Triangle clipping? Symmetry of TNG May,19.2005-13:09
  Re: Triangle clipping? deez May,19.2005-13:33
    Re: Triangle clipping? Symmetry May,19.2005-14:10
      Re: Triangle clipping? earx May,19.2005-14:35
      Re: Triangle clipping? mikro May,19.2005-14:50
      Re: Triangle clipping? deez May,19.2005-15:51
        Re: Triangle clipping? ray May,19.2005-17:07
          Re: Triangle clipping? Symmetry May,19.2005-19:05
            Re: Triangle clipping? sqward May,19.2005-23:19
              Re: Triangle clipping? earx May,20.2005-10:22
                Re: Triangle clipping? ray May,20.2005-11:41
                  Re: Triangle clipping? earx May,20.2005-12:13
                  Re: Triangle clipping? Symmetry May,24.2005-21:11
                Re: Triangle clipping? mikro May,20.2005-21:01
                  Re: Triangle clipping? earx May,21.2005-00:25
                Re: Triangle clipping? sqward May,21.2005-11:21
              Re: Triangle clipping? parapete May,20.2005-21:26
                Re: Triangle clipping? earx May,21.2005-00:43
                Re: Triangle clipping? sqward May,21.2005-11:17
                Re: Triangle clipping? Gizmo May,22.2005-18:09
                  Re: Triangle clipping? Symmetry of TNG May,24.2005-20:05


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson