Tel 8663 ou 8357 (CHRISTOPHE.C.D.DELEPINE++at++TTS.thomson.fr)
Mon, 8 Jan 1996 17:58:37 +0100
I would like to do the perspective computation in software (just as an
exercise). To do this, I multiply each vertex coordinate by the perspective
matrix then divide by -z. I send those new x,y,z values through the pipeline
making sure the projection matrix is loaded with identity. This works fine.
I get the same image than if I had sent original coordinates with a
perspective matrix loaded onto the stack.
The problem arises with texture coordinates.
If i assign the same u,v coordinates to the new x,y,z values, the inter-
polation along the polygon is incorrect.
Is there a trick so that the interpolation takes perspective into account ?
I can provide with a simple test case if needed.
thank you
Christophe DELEPINE
delepine++at++tts.thomson.fr
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:14 PDT