
This is the study that I did for my environment. For this one, I focus on adding a lot of objects while keeping the frames on 120fps. So I decide to use an object instancing to work on it. For this one, I got a reference from https://www.youtube.com/watch?v=oMIbV2rQO4k and https://www.youtube.com/watch?v=bOjYP-c4qhA&t=939s.

This is an instanced mesh that I used. I made a small asteroid with LOD.

In the blueprint part, I used "For loop" node index for the randomized number and floats for a randomized location and scale. I used clamp nodes just for scale. I tried to add randomized rotations speed and the second reference proves that it is possible to make an offset animation, but I couldn't figure out how to make rotation works on different instances. I added rotation, but it rotates around the middle.

This is the parameter that I made. I added static mesh slot for instanced mesh, number of meshes, length range that the meshes can reach, scale, and rotation speed.
This is the performance check that I did with a thousand instance meshes with rotation. I also tried ten thousand for the test, but it didn't work out well.
Comentarios