About Store Forum Documentation Contact



Post Reply 
Rasterize Triangle in 2d & 3d
Author Message
Chris Offline
Member

Post: #1
Rasterize Triangle in 2d & 3d
Hi,

Is there an easy way in EE to rasterize between three vertexes in a 3d grid (voxel), and separately three vertexes in a 2d grid (picture)?

Else should I look about doing this manually, bounding boxes and clipping, etc?

Thanks,
Chris
09-05-2010 12:16 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Rasterize Triangle in 2d & 3d
there's no builtin function

there's only EdgeWalker for 2D (it's somehow related)
09-05-2010 12:29 PM
Find all posts by this user Quote this message in a reply
Chris Offline
Member

Post: #3
RE: Rasterize Triangle in 2d & 3d
Ah, I saw that but couldn't extend it to 3d easily. I'm wondering if I can use Vec Lerp, but just use Int's and set the step as 1/Dist(intEdge1, intEdge2) or something similar (haven't thought it through yet)... perform the Lerp across one edge of the triangle, then as you start lerping on the next edge, also lerp back to the first edge to cover across the middle of the triangle.
(This post was last modified: 09-05-2010 12:35 PM by Chris.)
09-05-2010 12:33 PM
Find all posts by this user Quote this message in a reply
Post Reply