• Welcome to World Machine Community. Please login or sign up.
August 18, 2019, 04:42:03 am


Read the Development Diary for an inside look at World Machine's progress!

Layout Generator

Started by hogjonny, November 19, 2008, 06:35:32 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


I'd like to make some suggestions for the layout generator

I wish there were some other methods for setting the height of a shape or vert.  Let's say I want to make a map layout for a game, I have Base-A, Base-B and a road network between them.

When I create a shape for Base-A, I'd love to be able to set the height of shapes automatically - maybe via means of some sort of average or sampling based on shape coverage.  So basically, the layout generator node would have an input for heightfield (push the same height in, rather then blend the output later.)  An alternative method to setting the altitude of the shape would be a coverage sample (random shotgun test), say a default of 16 random samples within the geometry boundary of the shape - average these samples and use this as the height for the shape.  A higher sample setting would likely result in a more accurate 'average' height of that area.

An easier method of placing roads that roll along the natural terrain, you could do something similar.  Currently, when you push and pull the height of a vert, it's difficult to be precise in setting it to match the terrain; the tool is precise in allowing you to set a specific height, but there is no way to easily pick or sample the height of the terrain in that location.  You just have to kind of 'eyeball it'.  Similar to above, if you know the location of the vert and you know the width of the road, then average a sample set around that location and use this to automatically set the height.

So on a far more advanced note, we could talk about bank and slope setting/limiters as well as influences to creating roads... but that seams pretty advanced and I wouldn't want to wrap my head around it myself.  :)

skype: hogjonny


Also, roads (lines) really need the ability to set a stroke width prior to the fall off happening.  As far as I can tell, right now I have to compensate for my 'flat top' roads in the falloff width, then draw a custom profile which includes the flat width of the road.  This isn't the most user friendly approach, I think you'd want to be able to keep the width and falloff completely separate.

this brings about another feature request.  When I draw a custom falloff profile, this can result in stair stepping showing up in the mask area...  It would be nice to have a spline profile, to maintain that the profile is in fact smooth.  Or alternatively add a smooth function via button in there, to smooth based on the points you have placed.  Currently it can be difficult and time consuming to approximate a smooth curved profile by hand.  With the 16bit resolution internally, it's even unfortunate that you can't have a perfect curve without one of the presets.  But as mentioned above, the presets don't allow you to have a stoke width prior to fall off.
skype: hogjonny

Dr Zepsuj

April 13, 2009, 11:03:51 am #2 Last Edit: April 15, 2009, 04:59:03 am by Dr Zepsuj
I agree on that.

Layout generator definitively have to be worked on as it has got great potential of becoming very powerful tool.

It would be nice to see some support for roads.

It also absolutely have to be multi-threaded ! Sometime it take ages to generate and it is only using 1 CPU core !!

Your competitor have some roads creation tool:



I like the idea of having a "surface following" mode that samples the underlying on creation. this is not to hard to do comparatively, as the sampling ability already exists in layout mode. I'll see what I can do.
-- Stephen Schmitt
- Creator of World Machine

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview