home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / graphics / 8326 < prev    next >
Encoding:
Text File  |  1992-07-31  |  2.2 KB  |  49 lines

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