Building A Racing Game With Your Own Engine
Events
Subscribe:  iCal  |  Google Calendar
7, Mar — 12, Jun
San Francisco US   19, May — 24, May
Krakow PL   21, May — 23, May
London GB   29, May — 1, Jun
Birmingham GB   1, Jun — 4, Jun
Latest comments

Amazing art. I'm curious how the rocks manage to be such a natural part of the terrain! It really looks like they have been there for ages.

Great job and very inspiring! Thanks for sharing.

Frankly I do not understand why we talk about the past of this CEO. As a player I do not care about what he did or not until his games are good. As an Environmental Artist instead I see a game with a shaky graphics. It is completely without personality, emotion and involvement. It can hardly be considered acceptable especially for the 2019 platforms (which I understand will be the target of this game). Well, this is probably an indie group, with no experience facing a first game in the real market. And that's fine. Do the best you can that even if you fail, you will learn and do better. From a technical point of view the method you are using is very old. It can work but not as you are doing it. I bet you're using Unity, it's easy to see that since I see assets from their asset store. Break your landscapes more, they are too monotonous and contact real 3D artists and level designers. One last thing, the last screenshot is worse than all the previous ones. The lights are wrong and everything screams disaster. Avoid similar disasters in the future.

Building A Racing Game With Your Own Engine
2 January, 2018
Animation
Environment Art
Environment Design
Interview

Two brothers Thorsten Folkers and Christian Folkers are building a new racing game ‘DRAG’ with the help of their proprietary engine. Learn more about their production process and little gamedev secrets.

Introduction

Hi! We are just two guys working on this project. Christian Folkers who is my brother, engine developer, programmer and basically the man behind Orontes Engine. My name is Thorsten Folkers and I’m the artist doing vehicle design, level and environment art. We founded Orontes Games together in 2016.

For the sound design, we worked with Adam from tekkAudio who did a great job on the vehicle audio.

It’s hard to say when this project started because developing the engine has been a side project of my brother since 2001. I would say the engine started to look promising around 2011 when so much effort already went into it that it would be a shame to not use it. We then made plans to take it a lot further, but in order to build a usable engine we also needed a use case.

The first idea that came to mind was a story based Sci-Fi game, like everyone from our generation we love the first Metal Gear Solid from 1998. Of course something like that turned out to be a bit unrealistic. We decided it’s probably a good idea to keep it simple, but now we know there is no such thing as ‘simple’ in game development.

We both like competitive multiplayer and are massive petrolheads. We played the original Colin McRae Rally in 1998, Gran Turismo 1 and the original Rollcage in 1999. But we wanted something modern in terms of competitive multiplayer. So the idea was to develop an online gaming focused racing game that we would enjoy playing ourselves.

Seeing the concept-artwork from station02 was the kick-off for this project in december 2012.

concept by station02

Modeling

I started modeling the car – our hero asset – with this concept in mind. But when we looked at it in 3d from different angles and from an actual in-game perspective it started to fall apart. At this point, you can either finish it the way it is and hope for the best, or take drastic measures and delete most of it and start over. Using kitbash parts at this stage was a great way to think outside of the box. You are still going to model everything yourself because often it doesn’t fit properly but it enables you to change stuff quickly and check out different silhouettes.

Finished high-poly meshes

It’s also a good idea to look at real-world engineering and not just model it like you think it is supposed to look. Especially for the suspension parts I used a ton of reference images and still re-did it three times.

The game changer for me was a modeling technique I first saw in a GDC presentation some time ago. They used CAD data and Zbrush dynamesh to transform it into a high-poly mesh. A similar method using 3ds Max proboolean instead of CAD is very well explained by Amsterdam Hilton Hotel on Polycount.

I used this proboolean / dynamesh method on 70% of the car. I really enjoyed working on the high- poly mesh and put a crazy amount of welds in Zbrush.

finished part, low-poly + normalmap

UV’s & texturing

For the UV’s I used a combination of 3ds max built-in tools, roadkill, tex-tools and also Maya. This is my workflow:

  1. 3ds Max – unwrap, add seems, quick planar and pelt, simple pack

  2. Roadkill – use LSCM and check stretch

  3. Maya – pack UV’s with uv_layout

  4. 3ds Max – set smoothing groups by uv-shells with tex-tools

The texturing was done with Quixel Suite. For the main materials I started with a base metal, put a PVC layer, dirt layer and a dust layer on top. I assembled a small material library with different pre- configured masks for different applications like edge damage vs surface scratches – more or less dirt and also the dirt direction. Some materials for the suspension parts have an oil layer on top with a pre configured masks. These materials were applied by mat ID’s. Of course a lot of painting was necessary too. Sometimes the surface scratches were all over the place.

Some of the decals on the car are static so they have been added directly to the texture within Quixel. Other decals can be changed by the player so they are floating geometry and not included in the textures.

This is what the final result looks like in the game. Body colors, brake light color and starting number can be set individually. You can also choose a nationality which is represented by a small flag on the rear of the car.

Animation

Regarding the suspension animation – it’s simple forward kinematic inside 3ds Max. The full travel way for steering as well as suspension movement is baked as ready made linear keyframe animation.

This gets exported with the mesh and the individual animation clips are setup in the engine. One special helper point is exported like a normal bone together with this data. This special bone follows the wheel throughout the animation. It always represents the final position and orientation of the wheel hub for every keyframe. We now create a mapping from keyframe to final wheel hub transformation by playing back the animation once and recording the position and orientation of this helper point. If you now inverse this mapping you know which keyframe to use to get, lets say 10% steering left. This way you can take the needed wheel position from the physic and set the fitting key frame from the animation data. The firmness and other physical elements of the car are setup in the engine.

Stages

I started working on the stages by painting a track layout in Photoshop. Modeled the track in 3ds max based on the layout, rendered a heightmap and combined that with the terrain inside World Machine. The terrain together with the race track turned out pretty nice but some areas near the track surface had been eroded to much by World Machine. So I took it into Zbrush and sculpted a lot of mid-size details near the track and adjusted some height differences. In retrospective I should have done less sculpting in Zbrush and instead add the mid-size details after retopology. By adding the details first I spent more time on terrain retopology.

The terrain is then retopologized. We separate the track surface from the terrain because on the track surface we use two materials which are blended by vertex. These materials have a lot of variation in them in order to get interesting surface structures. But because there is so much information in them we need two materials to break the tiling. If we had only one material the tiling would be very obvious.

On the surrounding terrain we use 3 to 4 materials that are optimized for large application with much less visible tiling. They are applied by splat map from world machine and then improved by painting in the editor. To hide the poly edge where the terrain meets the track surface, we use a transition decal which overlaps the terrain approximately one meter and uses the same materials and UV’s as the track surface. It’s faded out by vertex alpha. On top of the track we use larger decals for tire tracks and to give certain areas more uniqueness.

The water puddles are done by tileable parallax decals. The heightmap and vertex color information is used to control the water level. So we can have a lot of small puddles or a few big puddles with the same material.

For the second stage I used a slightly different approach. I painted the track layout like before but used two splines in 3ds max to represent the track surface. One spline on the outside and one on the inside. This way I was able to plan the width variation of the track early on. At this point we had the driving physics almost finished so I was able to do a lot of test drives.

Driving

We built a proper 4-suspension physics which simulates the car highly realistic.

This way you can have understeer / oversteer like in a real rally car. The car is all-wheel-drive with a power split of 20-80 front to rear and has a 50/50 weight balance. Players experience weight transfer under braking or acceleration which can cause lift-off oversteer. If you are going to fast and slam the brakes mid corner you will experience understeer, just like in a real car. As a racing driver you can use all these effects to your advantage. We setup the car so that it has perfect balance in terms of over- understeer but because it is a race car you won’t have electronic helpers like Traction-Control or Anti-Slip Regulation (ASR). Back in the golden era of Group-B rallying it was just about you and the machine.

“If everything seems under control, you’re not going fast enough.” ― Mario Andretti

During alpha testing, we realised that this is tremendous fun when you are an experienced driver, but don’t worry – we built a wider track as second stage where you can see most corners well ahead. So you can focus on learning how to drive. We are in closed beta right now and will bring DRAG to Steam early access in early 2018.

We hope you enjoyed this breakdown! We want to thank 80 Level for the opportunity to get in touch with you and that you will enjoy playing DRAG as much as we do already.

Thorsten Folkers, 3D Artist

Comments

Leave a Reply

9 Comments on "Building A Racing Game With Your Own Engine"

avatar
Davide
Guest
Davide

Excellent work!
I’ll follow the progression waiting to see it completed. Cheers!
Davide (dean Linux user)

Szebi001
Guest
Szebi001

Hi Nathaniel,

Thank you for your detailed and helpful answer! As I see, this part of the game development could be as interesting as the modeling and asset creating process so far. But I am sure that needs endurance allot! 🙂

Thanks again!

Cheers,

Sebastian

Nathaniel
Guest
Nathaniel
Hi Szebi001, I have a whole training series on how to code game engines from scratch. It is free on you tube. It is broken up into two parts. Christian has a good list of books which I would also recommend those books and maybe also Cg Shaders book too from Nvidia. He is right those books he listed are not for beginners they are for pros and they are excellent books. That is why I am offering you to go through my training videos on game development because it will fill in a lot of the blanks you will… Read more »
Szebi001
Guest
Szebi001
Hi Folkers’, 🙂 It’s a really interesting and pretty complex project what you are working on. I am a petrolhead too and a new hobbyist in the topic of 3d modeling and game design so I read your article with honest happy. I would like to ask from Christian that did you have any preliminary studie in the field of programming or you learnt it self-educated? Is it possible to find game engine development discussions or forums or everybody works with Unity and UE nowadays? These books are really promising, I just have to refresh and greatly upgrade my knowledge… Read more »
Christian Folkers
Guest
Christian Folkers
Hi Wylder, always happy to see someone interested in engine programming. I just had a quick look at my bookshelf and this is what i found and can recommend: Game Programming Gems (1 – 8) GPU Gems (1 – 3) Shader X (3 – 7) GPU Pro (1 – 6) The Game Programming Gems Series covers everything. The rest only talks about graphics programming. They are not exactly for beginners and require a profound understanding of C++. I am sorry, i don’t know of any tutorial or tutorial style book describing engine programming and being of any use. I know… Read more »
Wylder
Guest
Wylder

I’m really interested in the resources you used to develop your engine. Do you recommend any books or tutorials that you referred to?

CobaltUDK
Guest
CobaltUDK

Jncredible job, guys. I hope you succeed with this game, you deserve it.

Thorsten Folkers
Guest
Thorsten Folkers

Hi Andrew!

the steam store page has not yet been released. But in the meantime you can check out our Dev-Log on polycount where we post news and breakdowns every now and then.
http://polycount.com/discussion/183339/ong-offroad-racer-indie-game-dev-log

Andrew
Guest
Andrew

Is there a website to follow up more on this game?

wpDiscuz