Hello,
First, my apologies I do not speak Chinese, I hope that I chose an acceptable category for this question. I would like to render a set of polygons in 3D with Taichi.
@ti.dataclass
class Polygon:
"""
- The polygon dataclass contains 4 vertices.
- Each vertex represents a 3D point
- Vertices are ordered clockwise
- top left, top right, bottom right, bottom left
"""
vertices = ti.Vector.field(
n=4,
dtype=ti.f32,
shape=(4,)
)
I was wondering, are there any minimal examples that may help me set up a camera and convert from geometric space to pixel space so that I can render?
Thank you