r/howdidtheycodeit • • Jan 11 '24

Vertical mountains

Post image

Hey, I come with question, about mountains in Arabia map of Battlefield 1. Although Battlefield 1 is 8 years old, is really beautiful, and realistic. I'm a mod dev that is making new hub for witcher 3 (desert). And the problem is that as much as streep mountains can be done easly with heightmap, the vertical ones that are in deserts, are preety much imposible to make this way. Therefore my question is, how are mountains like this made in games? Is there some video about bf1 enviro that I can maybe watch?

64 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/fruitcakefriday Jan 11 '24 edited Jan 11 '24

Well, you're not going to get that result with a heightmap without some very fancy shader (if even that; shader capabilities are a bit out of my comfort zone), and then the collision wouldn't match the geometry most likely.

As for the texturing of said meshes, it's probably not using a unique texture across the whole model but instead tiling a texture around it with something like axis-aligned projection and vertex colours to blend between rough/smooth areas, then the rest of the detail comes from shadows. The BF devs put a lot of money into their visuals, so don't expect to reach something performant by yourself that looks as good as theirs.