Instanced Mesh for 2d objects #464
-
Thr transformations for instances uses a vector of 4x4 matrices, so I am assuming it is for 3d objects. Can I use instanced mesh for 2d geometry in a 2d camera, such as circles, and if so, how? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, you can use this for 2d objects.
|
Beta Was this translation helpful? Give feedback.
-
In general, if 3D is supported, 2D is also supported, simply just always set the z-value of your geometry to 0 and view the geometry from the z direction. For the 4x4 transformation, set the 3rd row and 3rd column to [0, 0, 1, 0] if you don't need the third dimension. |
Beta Was this translation helpful? Give feedback.
Yes, you can use this for 2d objects.
You need to use an orthographic camera and use a projection matrix like this:
Example