• Welcome, Guest. Please login.
 
December 18, 2024, 11:50:24 PM

News:

MX Bikes beta19 available! :)


Building a replica SX - A2 2016

Started by Asdrael, June 24, 2016, 04:20:52 PM

Previous topic - Next topic

Asdrael

June 24, 2016, 04:20:52 PM Last Edit: July 03, 2016, 11:23:38 PM by Asdrael
Hi.

I decided to document roughly how I am approaching replica SX building in MXBikes, figuring it might help people trying to do it or willing to do it. Feel free to ask questions and give input. I will be using Anaheim 2, 2016 season, as an example. The clear goal here is to encourage people to start trying it out. It's not hard, and quite frankly, I don't think I will do all tracks of the season. At least not alone.

Disclaimer: This is not meant to replace the existing track building tutorial but rather highlight the specifics of replica, SX, and my approach in general. So I will NOT go to the basics of how to setup your folder, etc. I will be using Photoshop and Sketchup for track building, and Blender + L3DT for format conversion. I strongly recommend the stickied guides at the top of this forum if you want to start looking into creating content - this is a specialization guide for replica SX!

Step 1: Documentation and decisions.
Obviously, to make a replica, you need proper documentation. Track maps can be found either in blueprint format on racerxonline, as well as static 3D rendering on supercrosslive. Different websites have animated trackmaps which are quite frankly shitty.

Now, you will notice that blueprints sometimes differ from 3D renderings, and both differ from the actual track that was raced. YouTube has both races and GoPro's of the official event which gives a decent input on obstacle size (2, 3, 4, 5, 6' tall is the important bit) and line choices.

At this stage, I normally print a large blueprint of the track I'm making - this time A2 2016 - and write on it the changes, rhythm sequences and any important ruts that have been either prevalent for trajectories or "semi built in". This gives me a backbone on which I can build.

Sometimes, and this is the case with A2, you will notice a track turned out shitty. A2 was hell, with whoops that most of the pack couldn't skim, landings way too steep for comfort, spacing out of whack. This made the track extremely punishing and it didn't look fun at all, while the blueprint gave hope for a nice track with a lot of air time with different line choices. This is where you need to draw the line between realism and fun.

This time, I will be following blueprint more than GoPro footage hoping to nail the "flying" aspect of the track. As last time, I will see the sand section as my own playground and try to make something fun and personal out of it. Keeping a 1.1:1 scaling (using 220x220x3.5m on a 2049x2049px tile in the configuration file if anyone cares).

Here we go.



Step 2: Porting in your layout and making the track.
Step 3: Working comfortably: the track in progress loop.
Step 4: Building a rhythm section as per (modified) blueprint.
Step 5: Advanced obstacles and sand sections.
Step 6: Berms and their placement.
Step 7: Whoops.
Step 8: Turning an obstacle course into a racing track.
Step 9: Non-collidable objects placement.
Step 10: Tuff block placement and alignemnt.
Step 11: Textures and shadowing.
Step 12: Final TrackEd files and preparing release.

Actual release topic of the track


Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

Asdrael

June 24, 2016, 05:08:04 PM #1 Last Edit: June 24, 2016, 09:09:13 PM by Asdrael
Step 2: Porting in your layout and making the track.

After creating my build folder, I create my photoshop file using the usual layers and copy.pasting the blueprint directly in it. I want approx. 80px of trackwidth when importing, as blueprints usually have a large width to take into account the toughblocks. This will end up with having 25' width (x1.1, remember the scaling), and remove 2' each side for blocks. Bam, 21', supercross width.

You do not need to be carefull to be down to single pixel accuracy. You will be able to change slightly the size if it feels too compact or too broad in your .hmf and .tht file afterwards. Just a few % will make a meaningful difference afterwards.

Once this is imported, I always start by tracing my track and starting line to have a highway I can start working on, keeping it close to the final width. This will allow me to make sure obstacles are aligned properly while building and test-riding the track, even if I will make everything broader when actually laying textures. I always use 1 layer per action. It makes it much easier to correct and experiment with down the road. I also, if need be, directly trace and create layers if the track has sections of different material - in our case, a sand section at the bottom will have its own rough shape (hand drawn that I will blur afterwards, to simulate sand being poured on a flat surface).

At that stage, I start thinking in advance:
- How am I going to build the TGA for texturing?
- What if I need to change pit location or layout width?
The answer is often, if not always, having 1 layer per element. Aptly named so you can find it easily afterwards.

One small trick: build your layout using the Trace tool the same way you will build your centreline. I start from the exit of the turn before the finish jump and go around the track like that. It is easy after that to simply hold Alt to round up the corners when you modify your trace. Once again, I don't really care about being perfectly pixel accurate - the layout is just a guideline, I will broaden and blur it heavily once I need to use it for the final track.

And now, I have this, which is a display of different layers already:


I do the layout in black over white background (the blueprint) to easily see the obstacles afterwards, and will just need to do a color reverse to build the TGA for the texturing afterwards. I always have a grey and black layer ready to be used as background for eye comfort and trackmap building respectively.
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

Asdrael

June 24, 2016, 05:08:51 PM #2 Last Edit: June 24, 2016, 09:11:27 PM by Asdrael
Step 3: Working comfortably: the track in progress loop.

Once I get the layout and surfaces down, I want to get my track to work in game in a way that allows me to jump in and out of the game quickly to check out any changes or adjustments I make.

For this, I favour:
- Naming all my WIP stuff "track". Then I don't have to change anything.
- Using very sharp masks to be able to identify quickly if something is out of whack.
- Using very contrasted textures for the same reason.
- Putting my pits on top of my grid to waste less time, as pits will have to be aligned with the stadium anyway at the end.
- Not bothering with anything superfluous in TrackEd as it will all be redone properly at the end once the objects are in. I do however pay a LOT of attention now to the centreline as this is reusable. It needs to be centered as well as possible, otherwise you will get cross-lane resets.

So I want my masks to be correct, and will be using stock textures. For now.

The way I built my layout makes it easy. I always save with another name the .psd file before doing the mask work, as a reflex ctrl-S can ruin your day of work. And did, once ;) And now, just a white background, black layout, revert colors, TGA, done. And same with the sand section. I will just use sand, dirt and grass for now. I will also use the sand mask for the surface right away. Once the .tht and .hmf files are correct, and pointing at the right names, any change will be conveniently ported everywhere it matters.

As there is no sand texture in the example folder, I had to make my own. For this, I googled "seamless sand texture", took one I liked, and bam. I made shading by fiddling around and looking into how it was done with the other texture types.

Here is my .hmf at this stage:
samples_x = 2049
samples_z = 2049

data = heightmap.raw

size_x = 220
size_z = 220
scale = 3.5

num_layers = 3

layer0
{

map = maps/grass.tga
repetitions = 50
}
layer1
{
map = maps/dirt.tga
repetitions = 100
mask = track_mask.tga
thickness = 0.1
}
layer2
{
map = maps/sand.tga
repetitions = 50
mask = sand_mask.tga
thickness = 0.5
}


My *.tht
samples_x = 2049
samples_z = 2049

data = heightmap.raw

size_x = 220
size_z = 220
scale = 3.5

num_material_layers = 3

material_layer0
{
material = compact soil
}
material_layer1
{
material = soil
thickness = 0.1
}
material_layer2
{
material = sand
mask = sand_mask.tga
thickness = 0.5
}


At this stage, my parameters for the map.bat have no shadows to increase the rendering speed. Once the raw map is rendered and looks fine in mapview.exe, I move on to TrackEd.

My TrackEd:

Notice that I am already careful putting my centerlines... centered!

And my game!


From now on, I can use this loop easily - I will call it the "export loop" from now on:
1. Export my heightmap as a .raw file.
2. Run map.bat.
3. Run trh.bat.
4. Open TrackEd to load the trh, load the centreline, merge and overwrite the trh.
5. Copy paste the new files into the tracks/track folder.

At this stage my track.ini has the final name with a big BETA at the end so I can find it easily in game. Small trick: You can keep the game running in the menu stage and change your track files and relaunch the track only. No need to close the game down completly.

In short, I set up early:
  • My textures and masks
  • A close if not final centreline
  • A workable folder to overwrite for quick in game loading
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

Asdrael

June 24, 2016, 09:06:15 PM #3 Last Edit: June 24, 2016, 09:12:42 PM by Asdrael
Step 4: Building a rhythm section as per (modified) blueprint.
This is obviously the tricky part, but it can be made straightforward, just time consuming.
Once my layout is down, and my sample map working, I will start building my sections as per blueprint (potentially modified to fit the real track). I will always build my sections first, and keep the berms for last. This allows me to try out each section at different speed and make adjustments on height and spacing without having to go through the turn before perfectly. I just go off track to get the speed I need - full speed second gear on a 250F is a good "maximum" reference point. You should overjump everything slightly with standard gearing, but keep your bike absorbing obstacles without bottoming out suspensions on a stock bike.

You can build jumps and obstacles decently using only photoshop. You need to know that each jump can potentially be a landing and plan accordingly. Rule of thumb to get it working in MXB: 2:1 take off, 3:1 landing. Meaning your take off slope should be twice as long as it is high, and the landing three times longer than it is high. Exceptions are made for whoops (obviously) and the 5' which I build symmetrical.

Here is how I go about building obstacles, except the whoops:
Building Obstacles:
  • Create a new gradient with 0% linearity that will conform to the profile you expect.
  • Create a new layer in which you select a large square, to which you apply the gradient.
  • Resize the selection to the desired size of the obstacle. A width of 110px will be good to work with on a 80px wide track. As for length, it depends on height, which I base on the 2:1 /3 :1 rule and experimentation.
  • Rotate and place the selection to its intended location and angle.
  • Select the whole layer, which should contain only your newly created obstacle and apply a Curve to make it steep, followed by a Gaussian filter to make it smooth.
  • Set its vertical scale by changing the opacity of your layer. If you use my scaling, 10% white (measured by hovering with the cursor over the obstacle on a black background, the direct opacity measurement is NOT correct because of the gaussian filter we applied!) is equivalent to 1'
It is important at that stage to line up everything as well as possible to avoid having the rear of the bikes kicking around too much.

At this stage, my heightmap looks like this:

This is the direct rendering of the blueprint in terms of heightmap with correct opacity scaling to have: 3' jumps, one 4' jump, and 4' tall tables (classical for a rythm section). Note that I never build berms until the very last moment - I need to get everything down to know how my berm has to be to scale the difficulty of the rythm entry.
I will run the export loop and try it out in game a few times, then modify shape and spacing as needed. The intention when I build my track is always "easy to learn, hard to master". Or, more explicitely:
  • Fun
  • Scaling difficulty with line choices
  • Allow recovery when messing up
  • Having the feeling that you can always be a tad faster and see what your next improvement can be.
This last point is very important and makes a track fun and rewarding in my opinion.

Once I have the lines I inteded properly working, I will move on to the next rythm.

A word of advice on obstacle building: You might want to create side by side obstacles with different parameters to see how high, far and straight you can fly. You'll save a lot of time and have a better idea what works and what doesn't in a reasonable timeframe.
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

Asdrael

June 26, 2016, 02:39:28 PM #4 Last Edit: June 26, 2016, 03:36:50 PM by Asdrael
Step 5: Advanced obstacles and sand sections.

Doing the rythm sections around the track, I sometime realize that some lines are not doable currently simply because of physics. A good example are tables: on real tracks, tables are usually short with no visible lips and symmetrical. Riders compensate and make their lines work using body movement in coordination with bike suspensions to "bounce" or dampen when needed, which we cannot do properly here.

Thus, I decided to do tables that would compensate for this. I'll call it "advanced obstacles" as it is just a fancy way to make more complicated shapes while still using photoshop. What I do there is build obstacles, still using the gradient technique, and add other layers to add flavour and options.

Advanced obstacles
  • Get my obstacles down using a single gradient
  • Try it out in game and see where it falls short
  • Create a new gradient compensating for shortcomings
  • Select the obstacles, apply the new gradient on the selection but in a new layer
  • Superimpose layers on top of each other, playing with transparency until it works out.
That's a heavily itterative process but it will make stuff work where it shouldn't. For tables, there are different ways to go (a "dip" in the middle, which you can get away with using one gradient only, a "lip" using 2 different layers, etc). This time, I'm going with the lip using 2 layers. Once I am happy with it, I will fuse copies of the layers and duplicate as needed.

I am now at the stage where I have a complete map in regards of solid obstacles.

I am now missing the "pot hole", sand section, whoops and berms. At that stage though, I can complete laps without cursing the obstacles too much, doubling or tripling true, using different lines. It is the backbone of the final track and already has to somehow flow.

Next, I'm going to try to make a fun "pot hole" section. This was an interesting idea that didn't make it into the live event, but in my eyes it's an excellent opportunity to have a small section that will allow excellent riders to distinguish themselves from the rest of the pack while still being doable in a fun way by intermediate or even beginner riders. My idea is that people will absorb, double, triple or skim in there.

Using a fresh layer, I'm going to add small dots of solid white that I will then smoothen using a strong gaussian filter to simulate dirt mounds, roughly, on the blueprint location. My rule of thumb here is to use a gaussian filter at least half the width of the mount. The first try will be 20px, 100% dots that I will use a 10px Gaussian Filter on. So a perfect gaussian shape, which I make approximately 1' tall.

Looking like this on the heightmap:


And like this in mapview:

Being used to it now, it looks okaish. Probably a bit too high and broad, but as it is a first, I will leave it like this and try it out a few laps.  I already see 2 or 3 lines that look decent.

Sand Sections
Now, I will move onto what is now a classic in SX: Sand sections. To do this, I use layers in excess to add bumps, ruts and thickness in a creative way - sand sections move in real life, so I like seeing them as my own creative playground. I don't go in blind though and try to have a plan. Here I want 3 things:

Thickness
Sand tends to be added on top of the dirt fundation of the track. So I will simply take my former mask layer and simulate a pouring effect using a Gaussian Filter (our best friend in Photoshop!) with a rather wide effect (10 to 20 px). I will use this for thickness and for the texturing mask that I will now redo. Let's say that the base sand layer will be 1' high, so I aim for 10% opacity. I now have a 1' tall sand section that has been poured onto my track, instead of a flat sand texture, with blurry borders for the mask:

Bumps
As it is a long line with a turn coming in, there will be breaking bumps (1 layer) and wavy jumps (1 layer). Same as for obstacle building, I will use gradients that I will transform the shape of using gaussians and curves. Moving from a flat sand section to a "used" sand section.

Ruts
Coming out of a rythm section, and moving on to a rythm section, in between two turns... here is a good opportunity for ruts giving trajectories that might cross. The point here is to allow people using the ruts to go slightly faster, and allow 2 riders having nearly the same skills to cut each other off (once we enable collision). To do this, I will use TFC technique of tracing the line and then painting over it. Easy, fast and surprisingly efficient. I refine it by "cutting" the edges using a technique I will in depth on when talking about berms. I just need to keep in mind that outside is faster than inside, and thus inside ruts should be smaller usually.
As it is a sand section, I do not care much how berms and bumps interact with each other yet. I will just overlay each layer.
Here is my tentative sand section in Photoshop:

And in Mapview!

There are now 8 layers composing this single section, making it extremely easy to try, keep or discard each and ever single aspect. In my view, it should always be relatively subtle in the sand.

Now, time to ride this a few times to see any obvious issues or improvement. Once I iron those out, I move on to berms.
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

Asdrael

    Step 6: Berms and their placement.

    Now that my obstacle course looks ridable, I will include berms (in their own layers once again) to tie it all up together. It is going to be relatively easy as only 1 berm is not a 180° turn.

    The way I make berms requires 2 different gradients: one to simulate the "half donut", and one to make it gradually rise in size.

    Berms
    • Select in a new layer the size of the turn
    • Apply a gradient to it in a donut shape
    • Apply a curve to make the gradient gradually steeper on the borders
    • Multiply my selction by a linear gradient to make it gradually rise
    • Smooth it all with a gaussian filter
    • Select the intended height (between 4 and 6' usually in SX)
    I now have my formula (that some people disagree with, however I feel it allows a good impression of pushing it while not being too easy...) that I found after hours of experimenting building berms next to each other in a blank map.

    I start with this:

    And end up with this:


    And do it all over the map until I end up with a complete heightmap. Note that I intentionnaly left out the berm/ruts before the longest rythm as I need to study this more and have some ideas I want to try out. And leave a surprise for the actual track release.



    I will now play with the height and with it's placement to change the difficulty of each turn and rythm section.

    From now on, it's a matter of trying stuff out until it feels right. I might slightly change the scaling, jump faces and spacing, berm steepness and angles, etc. I will spend a LOT of time tring my best to allow different lines to be ridable, constantly aiming for an easy to learn, hard to master track. In between, I will sometime come up with betas I ask people to try when I get stuck on my own.

    Once everything is done and I'm happy with it, I will move on to proper texturing and objects, which I always do on a finished heightmap.

    And since this is going to take some time, feel free to provide feedback and questions below in the meanwhile!
    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    Asdrael

    June 27, 2016, 05:29:39 PM #6 Last Edit: June 27, 2016, 05:33:03 PM by Asdrael
    Step 7: Whoops.

    Now that my obstacle placement is close to optimal, I need to create and place my whoops on their intended location.

    Whoops in real-life are monsters (3' heigh, 8' spacing, with shape that is steeper facing you). They simply do not work here. I tend to go with amateur-shape whoops: 2' heigh, 5' spacing with a "belly". Once again, gradients, curves and gaussian filters are my friends.

    Whoops
    • Create a gradient with 3 to 5 bumps in it with regular spacing, using 100% linearity this time.
    • Create a new layer, select a large rectangle, apply the layer, reshape the rectangle to intended dimensions and rotate to put in place (slightly larger than obstacles otherwise objects are a headache).
    • Apply a curve to increase the belly - that means the opposite as for jumps!
    • Apply a gaussian filter to smoothen it out.
    • copy paste this to have enough whoops (usually there are 8 to 12 in a line).
    • Set opacity for desired height.
    Doing this is not sufficient to have doable whoops. You need a step-in ramp and potentially a step-out one as well. This is easy: just create a small bump that is going to have 2/3rd of the height of your whoops section. You need to fiddle around with shape and height so it conforms to your whoop section. There is a LOT of trial and error involved here. I try to make new whoops for every track to spice things up.

    Once they are ridable and reliable, I  move them around (and change the height) to scale difficulty, entry and exit speed.

    I always make my whoops sections shorter than what they are in real life (3/4 of the total length but similar amount of whoops), as this allows time to straighten the bike up a bit better as it is still crucial in Beta4.

    My whoop section looks like this in Photoshop and rides well (meaning I need a proper position and proper throttle control to go through, anywhere from second to third gear is reasonable). Notice the entry and exit bump and the overall big belly they have. Those are a 10+2 section that is intended to be ridden at full throttle in 2nd gear but can do done faster (but it becomes very risky, and then you have to break pretty hard to make the turn).
    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    Asdrael

    June 27, 2016, 10:32:01 PM #7 Last Edit: June 27, 2016, 10:37:05 PM by Asdrael
    Step 8: Turning an obstacle course into a racing track.

    Reaching that stage, I am fairly confident that all the lines are doable given proper skill level. I will simply run a few laps, see what other lines I want to take but can't for whatever reason and try to adjust the heightmap to make it possible. By now, I should make laps "flow" by taking beginner, intermediate and advanced lines fairly consistently. I am also paying attention to the difficulty increase between lines to make it not too frustrating, avoiding huge differences in skill requirements for different lines.

    My heightmap now looks like this:


    (I removed the potholes because it frankly wasn't fun).

    My next step is thus to build at least 2 sections that offer different options for riders to cut each other off when racing, and provide replayability to the track.

    I built my sand section this way already and it seems to be working out. I can run outside - outside, outside - inside, inside-inside and inside-outside with minimal laptime differences and it's fun.

    There seems to be an opportunity at turn one, where currently the outside line with the rut is very single-lined and makes it a bit too easy to triple in. By lowering it slightly and adding an inside rut, I make it more challenging to triple in, and allow a shorter line that can step in (and actually triple in if you are ofmg good). It's generally nice to have inside ruts when it makes sense and allows for something special and fun (like parallel rythm sections with different rythm).

    After the finish line, there is a dull turn that was a bit spiced up in the real track (no potholes, rather a wierd berm). I tried to reproduce the berm adding some off camber action to it to reward throttle control.

    And no here is the final heightmap:



    Reaching that stage, I have:
    • Different line options for different skills
    • Different challenges with section WFO and section you need to absorb jumps in
    • Some "conditional obstacles" to reward consistency (meaning you ahve to complete a section to get the next one flowing properly)
    • Different lines for the same skill
    • A "unique" obstacle that hasn't been seen in game yet
    • No funky falls due to unpredictible behaviour
    • Around 50 to 100 laps in.
    I will leave it settle down for a day or two, seeing how I enjoy it and if there are any last minute changes I want to do. Then I will move on to object positioning, texturing and shadowing, and finally making all the finishing touches in trackEd (marshals, checkpoints and cameras).
    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    Asdrael

    June 28, 2016, 01:41:08 PM #8 Last Edit: June 28, 2016, 01:44:31 PM by Asdrael
    Step 9: Non collidable-objects placement.

    If I want to be efficient in placing my object, I need to prepare well my work and plan ahead, so I just have to drag and drop afterwards. The way I like to do things is to have a 2D "background" that will guide my rough X-Y placement, and a neutral 3D mesh to enable Z and rotation placement well enough without overloading my computer.

    2D layout map

    Open TrackEd, load my .trh, take a screenshot using texture representation with narrow masks (the one I created right at the start). Done!


    3D mesh

    I use L3DT to turn my heightmap in a 3D mesh. With a supercross track, I want to export an optimized mesh (in .3ds to import smoothly in Sketchup) with around 25k vertices. This is a good compromise to work fast without having my computer bog down (if I remove shadows) and remain very accurate in Z and surfaces. The X/Y/Z scaling is important at that stage, you want accurate ratios or your object will be flying/sinking.

    Sketchup preparation and scaling.

    Now the big challenge is to scale properly my Sketchup project so everything lines up. I use a reference block in a corner that I line up with the layout and mesh, and then export and check in mapview how well it is aligned. Trial and error. It is crucial to do it well otherwise all objects will be wonky. Regarding the Z scaling, I add a 100% white pillar in my heightmap before creating the mesh to make sure nothing funky happens.

    And now I have 1 black block, my 2D texture layout and my 3D mesh all perfectly aligned:


    I of course added a scene in my .hmf and .tht files before running map.bat again.

    scene0
    {
    name = REF.edf
    pos
    {
    x = 0
    y = 0
    z = 0
    }
    rot
    {
    x = 0
    y = 0
    z = 0
    }
    }

    And in Mapview:


    That will be sufficient!

    When doing a replica SX, I want 1. a stadium, 2. tuffblocks, 3. extra scenery like finish / gate arches and 4. a ton of advertisement (whihc is texturing of the other 3 elements). I normally work with 3 sketchup files and 3 scenes to avoid overloading my computer and remain with reasonable file sizes. From now on, it's more creative than strict though.

    Stadium]
    I have the stadium from A1 (adapted from the Sketchup Warehouse) that I am going to reuse. Easiest object ever, I will just copy paste it. Just a few slight changes need to be done in Sketchup (alignement mostly), and I can export it. It is going to be its own scene without collision. I just have to be careful and check in Mapview that there is enough room around the track for tuffblocks and pits, but that it is sufficiently narrow as it increases the "indoor effect" and perceived speed.

    This one is looking fine, except that the intended location for my pits is a bit stuck behind the sand section. I might have to take some initiative there and reshape the stadium, as I don't really want pits in the middle of the track.

    Other objects
    Since I only want tuffblocks to have collision, I'm going to add the finish, start and triple objects in a separate file. I already have those prepared and I'm simple going to reuse them here. I will just change the textures as needed.

    Now I have a full stadium, scaled properly, and a few objects to make the track look busy and "realistic". Starting to look fine from the stadium seats! (Keep in mind this is without any shadows still and with my work-in-progress textures for the track).



    Now I have to move on to the collidable objects, the tuffblocks.

    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    Asdrael

    Step 10: Tuff blocks and alignment
    Corner monster can
    I always put a bigger round can in my corners so it's easier to spot from afar and aim for it, plus it gives me a landmark for cameras. I just put them on the 2D layout, and check the height with the 3D mesh.
    Block alignment in straights and rythms.
    • Use the 2D layout
    • Draw a line in Sketchup alongside the track lines
    • Align blocks on it
    • Unhide the 3D mesh and check alignment - adjust as necessary
    • Raise in the Z axis the blocks
    • use the Smart drop extension of sketchup on the 3D mesh
    • Check discrepancies and adjst.
    Which bring me quite easily from this:


    To this:


    now I have to do it all round the track. The golden rule for tuffblocks is "better too low than too high".


    When it comes to turns, it is very similar but with a twist.
    Blocks in turns
    • Draw a curve on the 2D layout and proceed exactly like with the line
    • Use the extension DropGC instead of SmartDrop so only the Z axis drops!
    • Adjust based on the mesh as needed.
    • Double up on top of the fast 180 berms to avoid people catapulting
    And it goes from this:



    To this:


    And going on and on around the track now...
    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    𝖙𝖋𝖈


    Asdrael

    Finishing the placement of objects, I exported and loaded up everything in mapview to make sure everything looked fine. I simply run a "camera lap" left side and one right side to verify that I have no flying blocks. Since everything looked fine, I could move on to texturing my track.

    Step 11: Textures and shadowing.
    Those two different actions serve the same goals: make your track realistic looking as well as highlighting obstacles. Since we are currently running an MXB version with only 1 light emmitor option, I am careful that it works out decently well and people do not get surprised by bumps.

    Making a new texture
    • Find a texture I like that is seamless or modify a stock texture to the shade I want. Hint: tiling your texture will make it brighter if it's bright and darker if it's dark. Take your time!
    • create the norm.
    • Flip fast between my different textures to check that I don't have any big shade differences. I usually go for a few shades darker for the underlayer that is revealed when ruts are formed compared to the top layer.
    In the case of supercross, I want 5 different textures:
    - Base: the base layer, which can be concrete stadium floor or grass.
    - Mud: my underlayer for my ruts, for which I use the base mud layer.
    - Dirt: a "dry dirt" layer, for the borders of the track. I use the regular dirt texture.
    - Track: a "wet layer" which is the prepared track. I use the regular dirt texture that I have darkened.
    - Sand: a sand teture which I have found online and tweaked to make it look like sand. It is a bit brighter than actual sand on SX tracks but it gives contrast that is easy for the eyes.

    Making texture masks
    Now i need 4 texture masks, as my Base requires no masks. I prepare them going back to my PSD file. I find it easier to work (with a twist) from top to bottom in that case. And I always rename my PSD file to avoid the reflex ctrl-s ruining my previous days of work!
    - Sand_mask: it is the easiest: I just use my sand section base layer that I bump to 100% opacity.



    - Track_mask: I take my track and start layout that I broaden (50 px) and apply a gaussian filter (25 px) to.



    -Mud_maskFor this one, I just free-hand draw around my track, and apply a 25 px gaussian filter. What, did you expect anything fancy? It's just a truck dropping dirt...



    -Dirt_mask = mud_mask - (minus) track_mask. That's it.



    Time to compile using map.bat to check it out - carefully not forgetting to update my .hmf file!



    Welp, that's an SX track. A bit of the concrete is showing in the pits, which isn't too bad. I don't mind that. The obvious problem now is that jumps blend into each other, and the objects seem "dumped" on the track. This is solved by running shadows.

    Shadows.

    At this stage, there are two different stages that add shadows to your track. The first one is in params.ini before rendering the track and adds object shadows. The second one is in the track file and is the .amb file which adds shadows to the rest of the polygons during play (bikes + track).

    Careful: it seems that the main light source settings do not actually represent where the light source is located on the map, but rather in relation to the object!

    params.ini
    At the very begining I removed shadows from the params.ini file to increase the rendering speed. Time to put it back on. I use only the stock settings, except for the light source position. This is really a matter of experimentation. As I am doing a replica SX I will put the light source roughly where the main light source of the stadium was in real life, which I then put two times higher than what it should be to keep shadows on my bumps and objects in a meaningful way while avoiding big dark areas that make people ride as if it was night.

    Running the map.bat (for quite a bit of time now), and opening it up in mapview, it does look better now.

    track.amb
    Well, I copy paste my value for the X and Z position of the light source use half of the Y value roughly. I do not touch the rest.

    And now, using mapview, it looks better.



    Disclaimer: the shadows in game look always a bit more drastic when everything is moving around.


    Now that my actual track is ready, I will move on to the finishing touching: creating proper marshalls, checkpoints, cameras, and eyecandy for the track release.
    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    Asdrael

    Step 12: Final TrackEd files and preparing release

    Now that my actual track files are ready and that it looks and rides good in game, I just have to make sure that all the data attached to the track is correct, usable when racing (grid, pits, finish line, checkpoints, marshalls) and fun (replay cameras).

    I always keep this for the last steps as having the tuff blocks here helps a lot when making the width of TrackEd checks.

    TrackEd

    Centerline
    My initial centerline was good on most of the track as testing with tuffblocks collision on did not allow for cross track resets. Reloading it at this stage however highlighted a small issue in the sand section where people might repop on top of the blocks which is not really fun. I just have to adjust that, keeping everything else centered as well as possible.
    You might notice that I always use 2 sections for the 180° turns. This is because TrackEd caps turns at 180° and it is very tricky to make two parallel lines with only 1 curved section in between.

    Race data
    I have to split my grid because I am using a starting booth in the middle, and I have to make sure my pits are correctly places as to not collide with the objects and offer enough room for people to move around. Not too difficult. I tried to have 1 checkpoint every important section, usually in the middle of turns.

    Good luck cutting!



    Marshals

    Those are more or less placed at the checkpoints positions. I try to have the warnings before significant sections parts to allow riders the time to actually react. Tedious to do, but not difficult.

    Cameras

    Yay, fun part! I usually run with typical camera settings, eventhough it is difficult to make it smooth in SX because the lanes are so close to each other - the cameras often switch too fast, even whgen you are not in the "intended" lane. You can fix that in teh settings but it is very very difficult to estimate where and how stuff should cut. If only it would apply the limit settings in the editor... ;)
    - Fixed start camera for the gate drop.
    - Stadium seats randomly picked
    - Pit cam, fixed
    - Sky cam, fixed
    - Corner (Monster cans) cams
    - A fix cams with a pathing for rythm sections, whoops and some nifty turns.

    Track map and image
    And now for the finishing touches, I'm going to need 1. a track map and 2. a track image, in the continuation of the previous ones since it is a series.

    Track Map
    Well, I have my layout, my obstacles... why bother! Show all!



    And for the track image, which I am going to use for track selection in game and track presentation for the release, I am going to use the same format as before and try to find a nice angle for a high resolution in game image, using the cameras that I set up before while I do final testing.

    Once this is done, I will rename all my files to the final name, upload the track, do a wall-of-text release topic, register the track, and hope you guys have fun with it!
    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    Asdrael

    This "how to - my way to do a replica (SX) track" is now finished. I hope you guys are now more motivated to try something similar.

    As usual, I welcome any feedback and questions. I know for sure I am not doing things optimally - this is only my 3rd track ever - but I feel my process allows me to come up with realistic, doable yet challenging, fun tracks that can be raced on in a reasonable time frame for the current state of the game.

    Special thanks to TheFatControler and geofanatec for their tutorials and help that got me started.
    Donate to me -> feed my coffee addiction -> get more mods!
    OEM bikes pack
    MXBikes Discord

    𝖙𝖋𝖈

    Thanks for putting this together, it's an excellent tutorial! I also hope this motivates others to give track making a try. Really appreciate the time and effort that went in to this.

    Also think this should be stickied ;)