|
Atari coding BBS
Re: Triangle clipping? |
Posted by: ray
|
May,20.2005-11:41
|
another solution might be a recursive triangle clipper which is easy to code once you got your ultra-fast triangle filler :). however, there are worst-case situations where a simple triangle gets subdivided into huge counts of small ones....but as i said the method is quite intuitive and you can completely skip the edgebuffer (+ z-clipping becomes possible).
here's an implementation example (a bit messy though):
http://www.mactech.com/articles/mactech/Vol.15/15.06/3DGraphicEngineEssentials/
regarding the z-clip i've experienced performing z = (z<zmin? zmin : z) during your hidden-surface removal (don't forget to reject triangles with each vertex' z<zmin) to produce sufficient results while being unbeatable in performance.
and here are some small hints for the CS-line clipping algo:
http://www.student.kuleuven.ac.be/~m0216922/CG/lineclipping.html
http://www.cs.princeton.edu/~min/cs426/jar/clip.html
regards,
ray
|
[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
|
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.
|