Jump to content

Terrain Height, Paint Terrain and Spline Placement scripts (Tutorials)


Recommended Posts

Posted

Hi, Firstly, thanks for all your fantastic work, making life easier. I've been laying road segments using the road prefab pack inside GE, as you know it has lots of options length, slopes curves etc and was wondering if i lay down a road with many rises and falls, curves etc, is it then possible to modify CSV creator to lay the spline over the road instead of the terrain so that when i run terrain height script it conforms to the road? I can place spline nodes manually with INSERT and CTRL B but it is a slow old process. Anyway, hope this makes sense. thanks again

Posted

Short answer is no, the CSV script basically allows the user to create a 2d spline (using INSERT and CRTL B foe example following a road layout on a GE png overlay) it then samples the terrain height at a user set distance along the 2d spline and creates a 3d spline for use with the terrain height scripts.

So the method you are using would still have to be done to create the spline with increased number of spline nodes on the curves to get a smoother terrain once the terrain height script has been used.

A script could be created that uses the road section transform group (i.e A_Road_50m) as a csv point but the problem would arise when a curve is encountered as the there is only one point (TG) which would when the terrain script is activated produce a straight line.

Personally I prefer to use the Blender method ( see the Export a Spline from Giants Editor into Blender to Create Roads/Railways (updated) tutorial ) for creating roads as it is far more flexible, you can of course still use the prefab textures for the road or create your own.

Posted

I've just started a new map, and am doing things I haven't done in a long while. I'm using the scripted object placement and as you can see, my hedge is beautifully aligned on the right of the image, but as it starts going towards the top left it no longer aligns the hedge correctly and it gets even further out as it turns the final corner. I seem to recall having this before, but can't remember what I did to fix it. Any ideas? (Hedge is correctly aligned and had freeze transforms on all parts of it)

 

image.thumb.png.7298094dc0d7a7337147a2962e844e4e.png

Posted

Normally happens if the items transform point is in the middle and not at the beginning but can also occur if spline transform is not zero on rotation which could be the case as the hedge appears to be following the splines rotation

Screenshot 2024-06-19 105150.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now