PPG - Procedural Path Generator

Everything related to 3D programming
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Procedural Roads/Paths on Terrain

Post by IdeasVacuum »

What you need is known in the CAD world as a "sweep".

Taking your Bezier-Curve as being the centre of the road, at intervals along it (max mesh resolution) you can produce lines or points that are 90degs to the curve and normal to the terrain. Use these as the basis for an open triangulation mesh that describes your road.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Procedural Roads/Paths on Terrain

Post by Bananenfreak »

Is this what you´re searching for?

http://www.armaholic.com/page.php?id=15705
Just look the Video by 8:00.

How is this working? I´m wondering about it... Is there only one Mesh and many Entities, which will be stretched?
Image
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Procedural Roads/Paths on Terrain

Post by Bananenfreak »

Offset? X and Z or Y? I have no knowledge about this topic, but perhaps I could help.
Image
Post Reply