This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jv110's profile picture

Triangle filling and UV coordinates

Started by jv110, 06 February 2016 - 02:02 AM
jv110 #1
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?
Lyqyd #2
Posted 06 February 2016 - 07:33 AM
Moved to Ask a Pro.
LBPHacker #3
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)
Bomb Bloke #4
Posted 07 February 2016 - 06:32 AM
(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.