Generated triangular terrain - Any tips on creating it?

Basically, I’m capable of scripting very well. However, I never really understood how to make triangular terrain generated from a game script.

There aren’t quite a lot of tutorials out there and, well, the ones that are trying to solve that dilemma aren’t what I’m looking for.

Basically, other than the terrain, I’m trying to learn how to also do height coloration and creating rivers, ponds, mountains and the ability to make the center of the map flat by a specific radius (so there’s at least some sort of a ground area).

If you’ve experimented with triangular terrain generation in the past, I’d love to hear your suggestions on how I can master this type of a system. I’ve been holding back from opening this type of a topic, but it’s quite needed - not just for myself, but others as well.

Thanks! :grinning:

1 Like

if you mean terrain made out of parts this plugin should help:
https://www.roblox.com/library/1083345917/Atrazines-Terrain-Plugin-V2

also try blender its very easy to make stuff in it

1 Like

Oh, let me edit the start of the thread to assure we’re on the same page. By this, I’m talking about generated triangular terrain formed by a script. Sorry!

1 Like

I don’t know exactly how to do this, but I could suggest some things to think about to help you work it out.

1 Like

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeek, well!

You’d need something which could insert wedges between 3 node parts. I’m not sure what you’d need to do that part. But basically, it’d start with 3 nodes and wedges between, then it’d need to spawn more nodes and create triangles on it’s own. There’d need to be control on node placement to make sure that they aren’t too far away or don’t go too steeply or double back into where there is already terrain. This kind of thing would be extremely complicated and difficult to do as far as I know.

Maybe if it did this in a grid system, it’d be easier.

Your “question” has a lot to it and might be better broken down into smaller ones. It looks like you want

  1. To know how to draw a triangle from three points
  2. Generate random vertices to create triangular terrain from (height mapping)
  3. Pass over the generated vertices and assign biomes or landmarks (such as water in low areas)

To start with #1, you can read this tutorial on how to create a triangle from three points in Roblox Lua Articles/3D triangles.md at master · EgoMoose/Articles (github.com)

2 Likes

First we need to generate a 2d grid of points with a y value. We can do this with perlin noise. Generate parts to put in those points. You should see a plane of points. This is our “verticies” what we got to do now is manipulate the wedge modifier to act as a triangle. Now on doing that I don’t know but what I do know is that you need to manipulate the wedges size and position and orientation by multiplying their cframes in some way.