Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualsienaiwun

Posted 13 May 2013 - 02:42 AM

http://www.gamedev.net/topic/485795-projected-area-of-triangle/

 

Some other ideas are this ...

 

Use D3DXVec3Project to take each point of a triangle and project it to screen space.

 

Take the cross product of any two screen space triangle points. This is twice the area of the triangle (in screen space). 

    Thanks very much. As the area is computed without D3D or OPENGL, I must write my own rasterizer.

    I wonder if the triangles can be paremeterized into a vector, like spherical harmonics way. And the vector can by projected on a plane. Is there some ways.

    Sincere.


#1sienaiwun

Posted 13 May 2013 - 02:39 AM

http://www.gamedev.net/topic/485795-projected-area-of-triangle/

 

Some other ideas are this ...

 

Use D3DXVec3Project to take each point of a triangle and project it to screen space.

 

Take the cross product of any two screen space triangle points. This is twice the area of the triangle (in screen space). 

    Thanks very much. As the area is computed without D3D or OPENGL, I must write my own rasterizer.

    I wonder if the triangles can be paremeterized into easy-projected vector, like spherical harmonics way. or some other kind of vectors.

    Sincere.


PARTNERS