PDA

View Full Version : Coordinates of an edge outline



nicky
12-05-2001, 06:17 PM
Hi, I looked through the tutotial on cel shading on gamedev.net and undersatnd how to get the outline of the object drawn, but I wish to know how I can get the coordinates of the outline that is drawn. Is it possible?

rIO
12-06-2001, 05:43 AM
Of course is it possible, YOU are drawing it, so you have theese coordinates ! http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Be more precise in the question!

Do u mean you want the transformed vertex coordinates ? (if so , just get the actual matrix and multiply it with your vertices).

Do you mean you want to know which vertices are drawn for the wireframe back faces ?? (this implies you do a dot product from the viewpoint to the normal of the vertex, that way you can understand if a vertex is visible or not)

hope it helps

rIO.sK