1. help: hidden face removal

okay right now i'm using two methods of hidden face removal at the
same time

the first method takes a look at each face in the polygon, and takes
the normal to the z vector for that face (i.e. it creates an
imaginary stick and sticks it out of each face so that goes exactly
straight out)...  if this normal is positive (i.e. the stick is
facing away from the camera) i don't draw the face

this works fantastarific if the cube is inline with the camera (i.e.
the x,y coodinates are at (0,0))...however as soon as the cube goes
to the side or the top or the bottom my algorithm becomes a little
bit off...

does anyone have any suggestions as to how i would better my z vector
algorithm thingy?

oh btw my other method of hidden face removal is just plain z-sorting
so that i draw the farthest away faces first...which works fairly
well :>


 .   o   O  Mike Burrell  O   o   .
.  o O burrellm at geocities.com O o  .
  .  o  O mikpos.base.org O  o  .

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu