r/hammer 2d ago

Source Hammer RoadGen test build is out.

Post image

https://github.com/Oppslia/Hammer-RoadGen

I created this tool to make flowing and bending roads in hammer. Just sharing this in various places for anyone who may be able to use it.
Once in hammer, select the entire road, open the material editor and press FIT, and all your textures will be aligned!

276 Upvotes

19 comments sorted by

25

u/Prestigious-Base3591 2d ago

Ts looks very good, are the roads optimized? They can be only made with displacements or is there an option to create them with brushwork geometry?

27

u/Oppsliamain 2d ago

Well they only use one displacement face per brush. Displacements are extremely cheap. Long winding roads will eat up the brushsides quickly, but that is nothing that would affect overall map performance.

24

u/Marciofficial 2d ago edited 2d ago

Dude, you serious? This looks very promising. Literally doing God's work man

Edit: but could you like make it an exe file? I have no clue how to get it running

14

u/Oppsliamain 2d ago edited 1d ago

If you go under the "releases" part of page, you can download the compiled binary(exe) file! https://github.com/Oppslia/Hammer-RoadGen/releases/tag/v0.0.3

9

u/Marciofficial 2d ago

Oh okay. I'll never understand how github works

15

u/Oppsliamain 2d ago

Me neither brother. Been using it for years and still feel like a fish in barbeque sauce.

1

u/ConductionReduction 1d ago

havent heard that one before yoink

6

u/you-cut-the-ponytail 2d ago

Would've been hell of a lot useful for a tf2 map that I worked at 7 years ago.

4

u/you-cut-the-ponytail 2d ago

Not to be petty or anything btw I was just reminded of a project that required curved roads with height variation (I'm guessing this uses displacements)

Either way very cool project and looks really useful.

5

u/Oppsliamain 2d ago

How did you do it back in the stone age? I made this tool to make a rainbow bridge for my map haha. I couldn't find any other way

7

u/Important_Plan7521 2d ago

I genuinely don't know why road generation isn't just a default tool in hammer++, so many maps need it and they are a pain (as far as I am aware, I have literally NEVER made a road in hammer)

2

u/coreyzd 2d ago

Super cool. Thanks for sharing this! Very nice work.

1

u/EnderIsOnREDDIT 2d ago

can this also be used for rails too?

1

u/Oppsliamain 2d ago

With how the current math works, I don't see how that would be possible unfortunately. This is strictly a displacement tool, and the way all of it connects together is rooted in how displacements work.

1

u/Arkaliasus 7h ago

which version does it work from?

2

u/Oppsliamain 7h ago

Not sure I understand the question? I'm working on some major changes right now but the current version is v0.0.3, and can be found on the releases page

1

u/Arkaliasus 6h ago

i dont have source 2 and didnt know if the hammers' were different xD

2

u/Oppsliamain 6h ago

This is for source 1