Hello Guys/Experts ...
I have a question about the creation of a racetrack environment that I can't figure out. For a future car game project, I'm anticipating the best way to build a nice track (not only a track but a road network over a terrain) ... I've checked out as much youtube tutorials I could find about that matter but they were never totally convincing. For several reasons:
- Poly technique is really tedious : complete manual creation based on polygon editing ... it allows a total control of your wireframe but is really time consuming and not flexible at all. Plus there's an enormous work of unwrapping behind.
- Terrain approach is not very precise : a road (build with a renderable curve or a loft) is applied over a terrain, but the road loses its horizontality over its width wich is not what cars like to drive on ... there are some way to break the terrain around to compensate that, but then you get some poor topology.
- You can texture draw your road over your terrain, but that's the worst we can imagine : the polygon flow doesn't follow the track, wich will make cars bump on a sloped curve ... plus the border of the road will be too much blured.
- There are also some software that can do the job, but missing control and exporting way too high poly models ... and I would like (if possible) to only use 3DS Max (or Maya, or Blender).
I think the curve technique is a good approach as it's fast and flexible. You can build your track and then quickly export it from 3DS to Unity to check the driving feeling. Though it has some overlap on straight corners (that can be manually corrected after ... but maybe there is a way to avoid that / correct it fast ???) Anyway that's not a very big matter because I plan to build road intersections ... so I will have to do manual adjustments.
But as I plan to make an entire road network, I'd like to be able to do it as fast as possible, but also very very clean (keeping the polygon flow to follow the road)
+ If possible to also control the polygon flow over the terrain : a road with ditches on the side, crossing in diagonal a polygonal grid, will give some very poor results ... so that's why it seems to me important to have a good flow over both the road and the terrain.
So if you guys know some (really) good tutorial on track + terrain creation i'd love to find some answers.
Actually I found some pictures over the internet showing more or less that ideal :
That's what Bugbear's artists did on the first (good old) Flat-Out ... It's just brilliant how the flow follows both the track and terrain ... it's so beatiful and smooth that it even seems to be flexible (but I must be dreaming) ... Do you have an idea on how they appoached it ? How would YOU approach it !?
Pictures found here :
http://community.bugbeargames.com/index.php/topic,25.0.html
Thank you in advance to any one who may be able to light on my lantern !
:):)
Replies
This one looks like the terrain is just a grid with the road merged into it. You could make a terrain with zbrush/world builder, make a grid deform to it, and then draw the tracks with curves on top of it, extrude the road surface along curves, play with the curves until they work well, and then merge them together.
It's ... very far from what is achieved on these screenshotse. Road can't really be placed on top of the terrain, because it has to have a thickness of zero or an almost invisible thickness, to not look cartoony. Because if the road is on top of the terrain with a low thickness, terrain will pass through the road on some places, and the road will somestimes fly ...
And again, a terrain based on a grid will do very bad results on diagonals cliffs and diagonals ditches, etc. That's why I'm impressed with their work because the topology litterally follows every form. It's more noticeable on the first screenshot.
Maybe you mean cutting the mesh with curves ... but then you don't get the poly flow ... ?
But if you know how to merge two topologies so the path of the road overides the terrain's grid, then I'm interested ...
also real roads have thickness, so give your road some thickness so it can clip into the terrian a little with out z-fighting issues.
if it is a dirt road with no thickness, than dont bother with a seprate mesh, just flatten out the terrian and use a vertex blend for a different texture on it.
Of course there was some unique parts which we had to take into account, but for the most part the modular stuff worked really well.
The key point of this workflow was that the designers could use these to block out the track sections and test them quickly for the gameplay/design stuff. Once the track was finalised by the designer we (artists) would go about filling in the terrain props and all the other roadside props. This usually consisted of modular props which we built aligned to those track pieces.
Personally I loved this method compared to doing it uniquely the whole way through as we were able to make changes easily, and wouldn't lose huge chunks of work if there was a change to the level design.
Hope I helped,
Mitch Cosgrave : I though about modular approach, but as I really want an organic feeling of the place, plus as it will be not flat at all ... I think it's not adapted, but for the building parts, then yes, I will definitely use some modular technique ! Also, the aime is to create a road network, that has to be filled with terrain, so some offroad is allowed when you choose to not follow the roads ...
Maybe the only way is actually to make a manual retopology of whole the thing, with 3d coat or something ... To keep the polygon count low and have a nice polygon flow along strong terrain variations.
Anyway, thank you guys for your answers
Anyone has another idea ?
I'm looking for a way to do exactly the same thing. If anyone has any ideas please share. THANKS!
Curve for the track, grid for terrain, conform/skinwrap, boolean, ant stitcher, elbow grease to adjust everything.
I currently create it all manually.
http://www.itoosoft.com/freeplugins/glue.php
Noors : Thank you for the quick tips hidden in your comment ! Actually what you said was what I deeply wondered ... So that's really elbow grease ... ! There's no magic behind. I have the idea to try to combine a displacement map to a plane with a topology following the track and relief curves ... That's the cleanest and fastest thing I can figure out in my mind for now ... Will have to give it a try as soon as possible.
Foosart : In the world of movies, it's quite easy to achieve that kind of objective in a matter of minutes, but in video games, we can't cheat or suppose things will work, because they won't, unless we solve every poly by hand ... but some people will some day give us the right tools to make it faster and better.
I was telling to myself, I wish I knew someone at autodesk who could handle that ... but actually, Blender developpers are listening a lot the community, so that could be a serious solution to that specific need.......
Conform Compound Object, is this a Maya function? If so where do I find it?
There will be a lot of work just getting in there and adjusting things.
I'd use a quad mesh that is sub-divided to generate the driving surface, you can then add road cambers, crown, various radius curves etc. It's quite easy to visualise and tweak.
Mapping later is easy if it's a consistent quad mesh.
To merge it into terrain I'd use a combo of ant-stitching with soft-selection and cookie cutting out the quad mesh into the terrain.
I've used some of these techniques recently on a 20km real road quad mesh from laser scan and merging into OS DTM for the terrains and they worked ok.
In the end though to get those great looking results like the screenies will take just good old man hours.
I'd guess the most important thing here is just to tie down the layout and terrain quite early as concepts. You can only stay flexible and non-linear for so long.
Dave
No, haven't tried that.
Patches in Max are a nightmare to do this kinda job with. Handles galore!
Also lots of tri patches would be needed.
Dave
If you have a specific terrain topology in mind, start with a rough out of the terrain. Then draw a spline on top for your track layout. Loft the spline and use the loft settings to control things like banking (if you feel it is necessary). Then it is just a matter of poly modeling the transition between the terrain surface and the track surface.
The transition between mesh density on the edges of the track are handled with a script called "skip every nth"
But still few questions about the process ...
The terrain has to be created with a poly flow roughly following the track curve, is that it ?
You create separately a track and a terrain and then collapse the points to merge them ? is that right ?
You use the scrip "skip every nth" to reduce the poly count on the lofted road, and also to match the poly density of the terrain ?
Am I understanding you right ?
Anyway thant you very very much , I'll give a try very soon !
You then make your terrain from a terrain model, or from a creative reference. Possibly making it with flowing polygons or just with a straight grid (at first)
Once you are happy with the two parts, you then spend time to bring them both together in an elegant flowing way.
Extruding out from the road edges and then reducing the mesh density to something approaching the terrain density then allows you to 'flow' the two meshes together in an elegant way. You might end up doing that blending over 20m or 100m. Or eventually blend the entire course so the terrain is now all a flowing mesh like those early screen shots.
There is no button to make it look nice though, this is where just good old hard work and time result in a nice looking result, and the more complex your road/track side the longer it will take.
I suppose a quick way to get nice looking results might be to build the terrain as a basic grid, sub-divide it so it's nice and smooth, then extrude out from the track and reduce the poly count and make the flow look nice while using WrapIt or some similar plugin to conform the extruded edges to the terrain mesh.
There are many approaches. Really you'd need to be more specific on some details to know what might be better or worse approaches.
If you are copying real life, or being creative, or have a client that might change their mind near the end and you need to be flexible etc.
Cheers
Dave
WAW, thank you guys, that is just freaking awesome ! :poly108:
This is what I managed to do in a matter of minutes :
The Process :
- Create a track along spline with a loft.
- Extract the two borders of the road as splines.
- Create Terrain using garment maker modifier with extracted splines, then use quadify mesh modifier.
- Use Ant Stitcher to properly align the border points (with some manual ajustment needed as the poly density was not matching).
- For the test I, applied two different noises on terrain and road to create relief, and then Ant Stitched them again with some soft selection.
I'm very happy with the result as it is a real fast process for a quite satisfying render. Everything is not perfect (I would use SkipEveryNth on a final version / I would also sculpt terrain and then displace it on a clean flat topologized mesh), but with some work, I can now get quite close from what I want, and really spend time on the tracks design ! It's like feeling free !!! [ame="http://www.youtube.com/watch?v=Xk2uObQDKtw"]Freedom[/ame]
PS : Once again if you have a better idea, or would do otherwise on the process, don't hesitate to share !
Thank you again everyone, I was stuck with that for monthes !!!
Will show you the progress for sure when the projet gets on the road for good
example:
Also, there is no reason to use garment maker or sub-d. Build the road with the correct number of segments (easy to control in the loft options) and then cut into your terrain mesh to start making the transition.
Also, like AlexMoody said, tracks use a one axis tilable texture, while the environment uses a two way.
There are pros and cons to all approaches.
This is why Retmia really needs to clarify on what the expectations of the track are.
I've made loft tracks before but I've also dealt with a loft with over 100 cross-section splines and it gave me nightmares... in Max at least.
There are a load of times I'd use a spline and be happy I did, and a load of times I've been happy I used sub-d to build a track surface.
Dave
http://www.youtube.com/watch?v=EwDpwVINY7g
Which was really useful as it lets you draw easily adjustable tracks onto terrain and includes side objects. For mobile its too heavy so we ended up swapping the tracks out with model versions. Creating track sections is really good because it means you can find the perfect hair pin for your game and then reuse it. though it does mean the track can start to feel a bit repetitive (if you don't have enough variation) and its harder to do dips and hills efficiently.