Custom Map for Dying Light - Buidl Post #05

in #hive-1402172 years ago

I was supposed to continue building the environment and show some images of that, and i did do some environmental work, for a while. But i got tired of vertex pushing; as easy as these tools are to work and create maps with, they lack in a few places: one being the inability to align the terrain to a mesh that sits above it. So, placing any road that isn't sitting flat on the ground is a pain in the ass to get the terrain to align to it.

Hence, it's hours of vertex aligning, by pushing and pulling, to get the terrain alignment correct.
lPh3KQaFBg.jpg

There are some tools that can get you close, but then you've got to vertex push your way to alignment, always.
niOGXXCt1H.jpg

So, as i had enough vertex pushing for the day; i decided to change it up a bit.

dldt_div_alpha.png

Pivoting my Work

The idea for this custom map came after playing Max Mad and driving around through it's neatly detailed world. The roads and sand hills look fantastic so i thought i'd give it a go and bring a bit of Mad Max into Dying Light.

Dying Light has a drivable buggy, and it's also set in an apocalyptic setting, so it's a no brainer.

So, leaving the environmental design aside for a while, i'll focus on modding the Dying Light roads, to match the ones from Mad Max.
Mad_Max1656599796.jpg

I have to say, Mad Max is a superb game, by the way; driving feels very visceral - if you love the road rage, and the decrepit and post apocalyptic setting (which pretty much sums up the movies), i highly recommend playing it.

dldt_div_alpha.png

Into Blender & Modding

Changing gears into modelling again, i imported all the DL road models i'll use into Blender.
CsVEJYWfQy.jpg

Cleaning them up a bit, by removing any extra unwanted geometry.
oi.jpg

And doing some minor alignments, to mod it to my liking.

Dying Light's roads have an angled slope that connect the road to the ground, using a dirt texture. This makes them sit above ground. Mad Max's road sit flat, aligned with the ground around it. And i like how they look.

So, onto flattening out all the roads.
MO5L5U9Bh8.gif

What's specifically important while modding the roads is keeping their original length and slope, so i can pixel-perfect replace the roads i've placed down on my level with these modded ones.

The exporter for the DL models doesn't export each model's hooks (which aids snapping roads together), so if i want to add extra roads, i'm dependent on laying down original game roads (which do snap between each other), and then replace those with the modded ones.

Q0i8UmOOgV.jpg

Having finished cleaning up all the roads, i applied the new texture.
T4eKnpSQ5l.jpg

UV's seem good; texture is following the curve of the road.
pSrKTeijhY.png

dldt_div_alpha.png

Texturing

Texture applied to the DL roads shows some grey-out occurring on the edges. I have a feeling this has to with transparency information that the tools isn't dealing with correctly.
Pj5ANZhvAA.jpg
The other issue is the wavyness of the sand; they go right up to the edge of the road and show up in between the cracks, which makes it feel unnatural, and they make it look like the road isn't placed on the ground, but instead, hovering above the waves.

First, edited out the transparency on the edges of the road.
jHsUdynj0P.jpg

And moving on to fixing the waves near the edge of the road, and in between the cracks. I would do this by editing the road texture, and adding a flatter (no waves) sand below the road. Then creating a transparency gradient to blend the two sands together, for all intents and purposes pushing the waves away from the road edges and create a smooth transition between the two.

dldt_div_alpha.png

Hitting a Major Snag

This is now multiple days and hours of attempts later.

And what i've been attempting to do is creating that transition between the sand waves and the road.
Pb9urGlFsZ.jpg

But it turns out, that the dev tools doesn't allow blending of textures that are on different meshes - the terrain being a mesh, and the road being the other mesh.

So this, after many-an-hour of trying, is a no-go on the smooth transition fix.

dldt_div_alpha.png

Solutions

As close as the texture below gets to what passes as nearly acceptable, i still have a few other things i'd like to try.
b9qu0kVqaa.jpg
Notice that in the texture above, there still is no smooth transition; the waves go right up to the edge of the road. What this texture is is an ugly hack that appears to look good at a quick glance, but not at any kind of close inspection.

All it is is a gradient from yellow to fully transparency, applied to the edge of the road texture.

  • Plan A

While the tools cannot use the transparency applied to a portion of a texture on one mesh, and blend it with a texture applied to another mesh, it actually can blend two textured meshes, if the transparency is applied through the mesh's materials. This has a caveat, however: applying transparency to a mesh through it's material means that the entire mesh will have transparency. That would make the entire road have transparency.

However.

Seeing we can add any number of materials to a single mesh, all i might need to do is add some extra geometry to the edges of the road (where i want the sands to blend), apply the road-sand texture to that geometry, give that a second material and apply the transparency to that material.

Thinking back, this is what the Dying Light original roads had and i removed; a slope with a dedicated material, to create a transition between road and terrain.

I should be able to achieve plan A, but if not..

  • Plan B

Replace the wavy sand with something less intense, or flatter, removing the need to create any type of smooth transition bwteen the sand and the road.

dldt_div_alpha.png
So, back into Blender, and attempting Plan A.

Sort:  

I didn't even know custom maps for Dying Light was a thing. Cool!

aye. there be a selected few that are even worth your while.

Reblogged as always, freakin dedication dude, keep it up!!
!PGM !LUV !hivebits

!PGM !LUV !hivebits !PIZZA !BEER

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 15 SBT tokens to @ruralio, @gamemapmaker

remaining commands 4

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


Success! You mined .9 HBIT & the user you replied to received .1 HBIT on your behalf. mine | wallet | market | tools | discord | subscribe | <>< daily

Vote to name the smallest HBIT unit.

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 15 SBT tokens to @ruralio, @gamemapmaker

remaining commands 3

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


PIZZA!

PIZZA Holders sent $PIZZA tips in this post's comments:
@gamemapmaker(1/5) tipped @ruralio (x1)

Learn more at https://hive.pizza.

Congratulations @gamemapmaker! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You received more than 1250 upvotes.
Your next target is to reach 1500 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Our Hive Power Delegations to the June PUM Winners
Feedback from the July 1st Hive Power Up Day
Support the HiveBuzz project. Vote for our proposal!