home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!news.utdallas.edu!corpgate!bnrgate!bmerh85!nbrwh34!kaustine
- From: kaustine@nbrwh34.bnr.ca (Mathew Kaustinen)
- Subject: Re: Hidden surface removal (to Mathew Kaustinen)
- Message-ID: <1992Jul31.181137.18944@bmerh85.bnr.ca>
- Sender: news@bmerh85.bnr.ca (Usenet News)
- Organization: Northern Telecom, Bramalea, Canada
- References: <1992Jul31.161407.8635@tc.cornell.edu>
- Date: Fri, 31 Jul 92 18:11:37 GMT
- Lines: 37
-
- In article <1992Jul31.161407.8635@tc.cornell.edu> elan@tasha.cheme.cornell.edu (Elan Feingold) writes:
- >
- >My e-mail to you bounced, so here's the letter:
- >
- Ya, I don't think you can e-mail me ...
- >
- >
- >Hum, I'm beginning to seriously wonder. The problem was that for example,
- >if I had a long polygon going up, and a little polygon visually in
- >front, and the viewpoint was up above somewhere, the algorithm would draw
- >the small polygon first, because the average Z value was smaller
- >(since the large polygon protruded up towards the viewpoint), and the
- >minimum z was a tie (since they were adjacent in the height field),
- >so that wouldn't work either.
- >
- Got it! :) There's a tie in minimums you say? Take the dot product of
- the surface normal (Remember: same direction of rotation for all surfaces)
- with the viewing vector. If the Dot Prod is positive (or is neg, I can't
- remember), you know that the surface is facing away from you and you
- should draw this one first!
- >>I used this method on a Bezier surface program I wrote and it
- >>seemed to work for this application.
- >
- >Was the program PD? If so I'd like to have a look. I always like a good
- >graphics program.
- Sure you can have it. It was part of an assignent in a Computer
- Graphics course I took in school (Queen's Rules). User interface sucks
- and its written with some Turbo C specific Video Function (FillRect etc.),
- but if your interested, give me a call. (I'm new with this trn, FTP etc
- stuff so I don't know how to get it to you)
- Regards,
-
- - I am _NOT_ an official spokesperson for Northern Telecom -
- --
- Mathew A. Kaustinen | ESN: (333) 2066
- Field Service Engineering | PHONE: 416-452-2066
- Northern Telecom, Bramalee | PAGER: 416-378-3246
-