Project FloraGen

Hi everyone, so you may of recently seen some pictures I’ve posted in the What are you working on currently? thread of a flora generator I’ve been working on and it’s been a lot of fun. I also really enjoy helping people out with making their stuff better and that includes awesome scenery. Since I don’t want to give away the source code I converted my generator to a private module and I am providing the preliminary coding and documentation to use the module here so you guys can mess around with it and give me some feedback :slight_smile:

NOTE: This is still a WIP so when I update the module I’ll update the file here so you can get additions in the code. It may/quite possibly will break previous code but I’m hoping to get it sorted out so I can make additions without breaking previous versions.
Also, the place MUST be have FE enabled and it will only work properly online.

You can find the script and MainModule in ServerScriptService, feel free to test it out in other places as well.
FloraGenScriptDemo.rbxl (90.4 KB)

For those of you who don’t know what I’m talking about, here are some pics to show what it’s capable of:

Before:


After:

Before:

After:

9 Likes

:frowning:

Was that in studio or play online? Because I know that it doesn’t work right in studio but works fine online.

Private modules can’t be loaded in Studio (which it appears you’re using based on the output)

This looks cool, but not super useful if I can’t test it in studio. Why don’t you want to open source it?

Ah, okay, makes sense. You should think about open sourcing it!

1 Like

What does the module do other than populate the world with vegetation? Does it load the plants in/out based on proximity? Can you guarantee that all players will see the same vegetation (assuming it’s loaded)?

Also, I’m with @Defaultio. If I can’t test it in studio, that’s a huge negative.

1 Like

Looks great – as others have mentioned though, not being able to test in Studio is a big negative. Perhaps even a bigger downside though is that I can’t extend or tweak the behavior (e.g. add more types of vegetation)

1 Like

Alright, I decided I have nothing to lose so I updated the file in the original post to include the module. I should try update this to improve it but currently you’ll have to manually get the LoD script from the MainModule and put it in PlayerGui if you’re testing in studio

The reason I’m not making it public on the site is because I think I get a lot of traffic through my inventory on account of my other free models and I’m not ready to release this publicly yet.

@blobbyblob, The basic way it works is by generating everything on the server and then putting it in the right chunks and once the generation is done it will move stuff over to replicated storage and let the LoD script take over.

@EchoReaper, yes, I would like to add a way to use your own models though I haven’t quite figured out how best to implement it yet.

@zeuxcg I’d love to see this with your hack week lighting :wink:

3 Likes