Jump to content




Triangle filling and UV coordinates

help

  • You cannot reply to this topic
3 replies to this topic

#1 jv110

  • Members
  • 108 posts
  • LocationIn front of my PC

Posted 06 February 2016 - 03:02 AM

I was writing a rendering library, complete with polygons, textures and shaders, but I need some help.

How do I fill triangles? And how do I calculate the UV coordinates?

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 06 February 2016 - 07:33 AM

Moved to Ask a Pro.

#3 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

Posted 06 February 2016 - 07:34 PM

Search results for "filling triangles" (hint: first hit is exactly what you need)

Search results for "calculating barycentric coordinates" (hint: first hit is exactly what you need)

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 07 February 2016 - 06:32 AM

View PostLBPHacker, on 06 February 2016 - 07:34 PM, said:

(hint: first hit is exactly what you need)

Well, sort of. Depends on whether you simply want to fill triangles, or if you want to apply texture maps to 'em.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users