[LWJGL] [JOML] Some instancing queries

I am using lwjgl with joml to make a voxel engine (mainly for infinity and destruction). I have experience in opengl programming in java using lwjgl but am new in the instancing

  1. There is a SimplexNoise class in JOML. How can I use it to get transform values for the cubes?

  2. After getting the transform values, they must be stored somewhere. According to me it should be an array of model matrices. But Matrix4f[] returns a lot of errors and MatrixStackf does not provide Matrix array calculations.

  3. Now, how will I get my matrices to a buffer for shader use?

  4. I need a simplified VAO/VBO initialization/binding/attrib code for the instanced arrays.

Thanks in advance :slight_smile: