zuraneur

11-19-2014, 11:51 AM

Hi Everybody,

I'm looking for a mean to get the z coordinate of each pixel (of a triangle per exemple) after rasterization.

But I can't apply basic math tool such as calculate the plan equation of my triangle (I don't exactly remember why , i guess that my teacher told me that the normalize operation change it, it change my affine space to another).

So he advised me to use Barycentric coordinates but I can't because I only have complete edges coordinates of my triangle and just x,y coordinates to each point of it.

I searched on opengl specification 1.5 but it doesn't explained.

Somebody could help me ?

zuraneur.

I'm looking for a mean to get the z coordinate of each pixel (of a triangle per exemple) after rasterization.

But I can't apply basic math tool such as calculate the plan equation of my triangle (I don't exactly remember why , i guess that my teacher told me that the normalize operation change it, it change my affine space to another).

So he advised me to use Barycentric coordinates but I can't because I only have complete edges coordinates of my triangle and just x,y coordinates to each point of it.

I searched on opengl specification 1.5 but it doesn't explained.

Somebody could help me ?

zuraneur.