Hi, i am working at a 2d project and i want to use irrlicht only for rendering. (colission, geometry stuff will be independent)
My problem is how to draw a triangle and fill it with colour (or even better a texture).
I think i have to create custom scene node but i am not sure how.
How to draw a custom shape
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
You don't need a custom node, just create your polys in a meshbuffer, put them into a mesh, and add that to a mesh scene node. This will work for both 2d and 3d scenes and allows for exact control and easy manipulation of the vertices. Arbitrary 2d geometry is not supported, but you won't notice any performance differences.