Source SDK

Source SDK

davaro20xx Oct 6, 2016 @ 1:15am
Resizing Material on hammer map
Hi everyone,

I have just started making levels in source.
I started creating my maps on Sketchup and then exporting to Hammer, what was a little complex at the begining and I lose a lot the time creating model that cannot we imported to Hammer.
But I learn from this, the last problem I had it's that Sketchup dont let you resize well the material you use, wen you use the same material in to diferent surfaces they go crazy.
like that:
https://drive.google.com/file/d/0B90gvXe1t3e2TGNYeUF2UlJKcEk/view?usp=sharing

When you import it in Hammer the scales are crazy, 0,00034 x 0,23453 each one with a diferent scale.

So I just want to ask, Is there any official solution to rescale all the materials in the VFM file?
I don't have find any one, so a devolup this tool to do it.
https://sourceforge.net/projects/hammer-material-rescaler/

You can set one scale for all the material or one scale for each material, it allow you to replace or erase materials, I leave it here, maybe it's usefull for someone.

also if theres an Hammer solution for this, please tell it to me.
< >
Showing 1-2 of 2 comments
Werewolf™ Oct 6, 2016 @ 3:23am 
The main method is to use the 3D textured view Hammer to manually rescale all the textures to size you need them with the Face Edit Sheet. It can take some time, but at least each texture is the right size for the face it's applied to and you can actually see what you are doing.

The other method isn't advised, but it sometimes has it's used. You can also .vmf files in a text editor like Notepad++ to search for odd values that you might want to correct. Just make sure you don't have the same file open in Hammer at the same time.

Here's a sample of what you would be looking for:
"id" "2" side { "id" "3" "plane" "(-64 1017 576) (-64 1017 0) (-64 1081 0)" "material" "TOOLS/TOOLSNODRAW" "uaxis" "[0 1 0 28] 0.25" "vaxis" "[0 0 -1 0] 0.25" "rotation" "0" "lightmapscale" "16" "smoothing_groups" "0" }
On both the 'uaxis' and 'vaxis' lines, at the very end, I have the value '0.25'. What you would want to do is scan though and find any lines where they were not on a uniform scale and type them in yourself. Or in other words, you'd be searching for values that didn't match 0.25 and correcting them so they did.

Again this is not the recommended method, but occasionally it does help to try this way.
Last edited by Werewolf™; Oct 6, 2016 @ 3:23am
davaro20xx Oct 6, 2016 @ 4:35am 
The program just rewrite the scale in the uaxis and vaxis, but It make It masive, It has an option to stablish one scale for each texture.
It Will maybe not send you to the Moon but It does his job :)
Last edited by davaro20xx; Oct 6, 2016 @ 6:11am
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Oct 6, 2016 @ 1:15am
Posts: 2