#Agricultural Field Generator (1st release)

1 messages · Page 1 of 1 (latest)

turbid whale
#

Hi hi guys,
I am currently working on a small application to generate very large areas of cultivated fields.
The main interest is to accelerate the creation of large cultivated areas by the automatic creation of surface masks.
At the moment the code is at a very preliminary stage, but here are some examples of what it can produce

#

The fields are placed at the correct terrain coordinates, of course.
Here, an example with a "full random" mode

#

Same mode, but with larger fields

#

Other examples: a “grid” mode with many parameters that can render different patterns

#

(The view is zoomed to better see the pattern)

#

Do you think such an app could be useful?

#

Very different pattern with the same generator, just changing some params

#

general process:

  • Create a bézier curve delimiting the area to fill (e.g. Gimp + satmap)
  • Feed this svg to the app
  • Play with the parameters to get the pattern that suits you
  • Click to create texture masks and import them into Enfusion
    ... And There you go
#

So... Any interest ? Please, let me know 😉

abstract agate
#

3rd party tools are always welcome. Someone will find need for it.

#

The idea is awesome.

turbid whale
#

It would obviously be much better to have this as an Enfusion plugin. But I just don't know how to do that 😉

abstract agate
#

You can export svg files iirc

turbid whale
#

Not from spline, as far as I know. If I'm wrong, let me know.

abstract agate
#

Oh yeah. only polylines

turbid whale
#

oh, one detail: it's a completely open project, no intention of doing anything commercial with it!!

turbid whale
#

I forgot to give you a detail: the borders can also be rendered, with randomization, of course

#

(not the best example on this pattern, which looks very artificial to me)

turbid whale
#

Just to show you that we can add generators in a simple way: example of a new generator that I am preparing...

abstract agate
#

That looks awesome

hexed locust
hexed locust
#

Would be useful to export the edges, so you could import them to workbench to put roads and/or treeline generators under them.

turbid whale
#

Which edges are you talking about ? Could you be more precise ? Do you mean the main polygon border ?

#

Each color is exported as an individual texture mask, that can be added to an existing enfusion surface texture mask. I don't understand precisely which edge you're talking about

hexed locust
turbid whale
#

bushes and trees will be ok (I'm already thinking about that). But, depending on which point generator you choose, it could be hard to find a continuous path to make a road. But, yes that's a great idea.

#

At first, I have to finish a first version of the code.
I have to say that I have general programming skills, but I'm far from being an experienced programmer. I designed the high and medium level of the application, but the ending code is written with copilot because I'm a beginner in Python language 🙄

#

I'll release the application on github as soon as I'll have a first functional version (not too far away)

#

At the moment, I'm testing the whoole process on Zimnitrita terrain (I'm one of the team mates of this crazy project 😄)

turbid whale
#

AFG generated preview

#

Enfusion satmap view (surface textures had been chosen... Nearly radomly 😄)

#

drone view (do you see the little uaz ?)

turbid whale
#

And now put an uaz, some tree lines...

sleek wedge
#

awesome work

patent charm
#

This is really interesting. I would use it for forest to add diversity over my main forest surface mask.
Does it run in World builder?

turbid whale
#

I don't know World Builder. It's a independant Python application.

exotic steppe
#

this is great!

turbid whale
#

(not intensively tested)

turbid whale
#

Agricultural Field Generator (1st release)

turbid whale
#

Hi guys
New release with two very important features :

  • polylines are generated on each border between field. a .layer file is generated in the work directory, just copy and paste it in your enfusion layer directory.
  • List of Enfusion tiles that will be affected by mask import is exported to a file.
#

@hexed locust you definitely can use AFG to generate forests, now 😉

icy tundra
#

I'm a little confused, what does this plugin actually do?

Does it generate fields based on real data or is it all random?

turbid whale
#

It's not a plugin, it's a third party application

#

The patterns are not based on real data

icy tundra
#

Oh okay 😦

turbid whale
#

If you have the IA program to do surface detection, let me know 😉

icy tundra
#

Surely someone has it, it would be really cool if you could generate all the fields based on real data

turbid whale
#

We tried that a the beginning of Zimni project. We had a very skillfull IA programmer in our team. After weeks and weeks of work to help the IA to learn field recognition, we finally let it down.

#

To many problems, inconstencies, etc.

#

And moreover, what is the interest to generate fields and forests exactly from real data ?

#

Do you place each building, each house, each road, each bushline like on your sat map ? Certainly not.

#

Surely someone has it
If you find him, let me know, I'll be glad to work with him (or her) to add this feature to my app 😉

hexed locust
#

It's easier; you don't have to think, just place.

turbid whale
#

The satmap is a good guide for starting and general zoning. But at a time, you need to create something else : it's really impossible to duplicate a town, even a small one, from satmap.

turbid whale
#

But, I still intensively use photographs (aerial views, landscape, etc.) because terrains need to be "believable"

hexed locust
turbid whale
#

Another example : Zimnitrita is inspired by ukrainian landscapes. On the sat map, there were km² of agri fields, with no bushline, and mainly rectangular... Absolutly uninteresting !!

turbid whale
#

Hi guys,
I'm very happy to tell you that AFG now has a very important new feature : Enfusion spline import. No need to create the svg file with an external editor !

#

The code has already been published, but it needs more testing (although it is functional) and above all a real user documentation before the 1.2 release.

turbid whale
#

Some screenshots :
Spline on terrain (blue spline)

#

Enfusion spline to svg conversion

#

Voronoi tesselation and coloring

#

Surface masks imported in Enfusion (satmap not updated)

#

Polylines between field borders

turbid whale
#

(behind the scenes, AFG output)

turbid whale
#

After satmap update

turbid whale
patent charm
#

Whats your idea of what you put on the poly lines?

turbid whale
#

Polylines as delivered "as is" by AFG.

#

If something has to be done, it must be done in Enfusion.

#

Probably, an ES script that generates bushlines would be very cool. But I don't have any knowledge about ES 😦

hexed locust
turbid whale
turbid whale