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
#Agricultural Field Generator (1st release)
1 messages · Page 1 of 1 (latest)
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 😉
3rd party tools are always welcome. Someone will find need for it.
The idea is awesome.
It would obviously be much better to have this as an Enfusion plugin. But I just don't know how to do that 😉
You can export svg files iirc
Not from spline, as far as I know. If I'm wrong, let me know.
Oh yeah. only polylines
oh, one detail: it's a completely open project, no intention of doing anything commercial with it!!
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)
Just to show you that we can add generators in a simple way: example of a new generator that I am preparing...
That looks awesome
Curious how are you generating the tesselation. Is it a Voronoi diagram?
Exactly !
Would be useful to export the edges, so you could import them to workbench to put roads and/or treeline generators under them.
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
The edges of each voronoi cell/field. My thinking being after you have imported your suface masks, you would go and draw polylines between each field anyway so you can put bushes/trees/roads there.
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 😄)
AFG generated preview
Enfusion satmap view (surface textures had been chosen... Nearly radomly 😄)
drone view (do you see the little uaz ?)
And now put an uaz, some tree lines...
awesome work
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?
I don't know World Builder. It's a independant Python application.
this is great!
Guys, first public release 😉
https://github.com/Tanin69/AgriFieldGenerator
(not intensively tested)
Agricultural Field Generator (1st release)
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 😉
I'm a little confused, what does this plugin actually do?
Does it generate fields based on real data or is it all random?
It's not a plugin, it's a third party application
The patterns are not based on real data
Oh okay 😦
If you have the IA program to do surface detection, let me know 😉
Surely someone has it, it would be really cool if you could generate all the fields based on real data
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 😉
That's how many people make maps. I don't think it makes sense, but really many people are doing it that way.
It's easier; you don't have to think, just place.
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.
So boring... 6 months with this approach on Zimnitrita. Then, we decided that we didn't need this original satmap anymore... That was the project momentum 😉
But, I still intensively use photographs (aerial views, landscape, etc.) because terrains need to be "believable"
Yea, people can forget they are making a video game map, that should be full of fun gameplay locations, rather than a Google Earth with like 5 different house models
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 !!
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.
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
(behind the scenes, AFG output)
After satmap update
Whats your idea of what you put on the poly lines?
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 😦
There is no f64 in Enfusion script; it caused issues for me when trying to do computational geometry stuf.
It's not my idea to make sophisticated things. A very simple script that add bushline generators to the polylines should do the job.
1.2.0 release
Hi guys, great news :
- It is now possible to generate the first svg file (the main polygon that wil lbe used to create the field pattern) directly from an Enfusion Spline.
- It is now possible to curve some random borders between fields, to get a more realistic rendering.