Hello, I’m Kris and while I was working on the space exploration project I asked myself the question: “How to give the player the opportunity to explore huge planets and moons?” And now, the answer has been found. Procedural generation of planets.
The system
I modified the script originally made by @Fenix7667 and turned it into a module. It generates low-poly planets and moons (depending on parameters).
I looked at you draw3DTriangle.lua and you
are using wedges. That’s like the most laggy option…
There are 3 other options:
Single face triangle mesh:
Use Blender to make a single triangle face and try
to use that to generate the terrain with… just not sure
how to get the proportions perfect and things like that.
Roblox terrain
You can in fact use tables to set roblox terrain,
but I don’t think planets would be possible.
You could try tho…
EditableMesh
For perfomance this is probably the best one…
However, you do have to be a genius to make it work,
because it is not replicated, meaning you would need to
code custom replication and even custom collisions!