Skip to content
Discussion options

You must be logged in to vote

@zaival It’s looking for a call like:

points=[
(x1,y1),
(x2,y2),
(x3,y3)
]

scene_drawing.triangle_strip(points)

Where x1 y1 to x3 y3 are 2d vectors specifying each point of a triangle, you can pass it multiple triangles to be drawn from one list. Each triangle must be three points following either in a clockwise or anticlockwise direction depending on which way the function expects (it’s not stated here however). It can also map another image onto these triangles with a second set of 3 point triangles called uv’s which correspond to each of the triangle points in mapping positions from an image instead. This is more complicated though so if you’re a beginner I’d suggest focusing on just …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zaival
Comment options

Answer selected by zaival
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants