Hammer units to meters conversion?

Hammer units to meters conversion?

Re: Hammer units to meters conversion? Posted by CPS on Tue Nov 23rd 2004 at 6:46am
CPS
60 posts
Posted 2004-11-23 6:46am
CPS
member
60 posts 6 snarkmarks Registered: Nov 21st 2004 Location: USA
Is there any conversion rate from the hammer units to meters or feet? I remember hearing awhile back that the newer hammer would have the option to use meters instead of the units or something, is that still happening? Also does anyone know a fairly close conversion for the units to meters scale? Something of that sort would really help for a map I am going to make, trying to get it as close as possible to the real thing. Thank you for any help.
Re: Hammer units to meters conversion? Posted by RabidMonkey777 on Tue Nov 23rd 2004 at 6:49am
RabidMonkey777
207 posts
Posted 2004-11-23 6:49am
207 posts 603 snarkmarks Registered: Jul 9th 2004 Location: Denver, Colorado, USA
At the moment, there's no easy conversion from Game units to any real-world form of measurement - Maybe a Metric grid option will be available when the final SDK is released?

I think a game unit is about equal to 1 1/2 inches or so.
Re: Hammer units to meters conversion? Posted by Crono on Tue Nov 23rd 2004 at 7:10am
Crono
6628 posts
Posted 2004-11-23 7:10am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
Default Texture Scale:

Sets the defaults scale when applying textures. The default of .25 is the Source Engine default scale for 1 pixel = 1 unit = 1 inch.
So, apparently, each unit is equal to an inch. (Maybe later this value will change the grid size in game. Or maybe it does it now ... I'm not really sure, since I've barely messed around with it)
Re: Hammer units to meters conversion? Posted by RabidMonkey777 on Tue Nov 23rd 2004 at 7:12am
RabidMonkey777
207 posts
Posted 2004-11-23 7:12am
207 posts 603 snarkmarks Registered: Jul 9th 2004 Location: Denver, Colorado, USA
It doesn't change the actual grid settings, it just sets the size when applying textures for easier usage - Since you hardly ever need to have textures with a scale of 1, since things are so high-res.
Re: Hammer units to meters conversion? Posted by Naklajat on Tue Nov 23rd 2004 at 7:36am
Naklajat
1137 posts
Posted 2004-11-23 7:36am
Naklajat
member
1137 posts 384 snarkmarks Registered: Nov 15th 2004 Occupation: Baron Location: Austin, Texas
go to the 'map' menu and move your cursor over 'units' there are three
settings: 'none', the default, which is generic units; 'inches', and
'feet and inches'. the latter two are pretty self explanatory. changing
this does not change the grid size, therefore 1 unit = 1 inch.
changing the default texture scale does not change the scale of the
geometry, it just changes the default texture scale when you open the
texture application tool and when you create brushes. so if you wanted
most of your textures to be 256x256 intead of 128x128, you could change
the default texture scale to 0.50 and avoid having to change the
texture scale after you create a brush.
Re: Hammer units to meters conversion? Posted by Leperous on Tue Nov 23rd 2004 at 9:30am
Leperous
3382 posts
Posted 2004-11-23 9:30am
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
As said above, 1 unit is meant to be 1 inch, though it doesn't quite work out like that in "real life" :smile:

1 metre is about 39.5 inches, i.e. about 40 units. 1 foot is 12 inches, so 12 units.
Re: Hammer units to meters conversion? Posted by Orpheus on Tue Nov 23rd 2004 at 10:50am
Orpheus
13860 posts
Posted 2004-11-23 10:50am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
i recall mentioning that we all need to create another "tid-bit" page and posting it sticky...... i bet i could do so again and get some support this time :biggrin:

especially if it were edited to remain 100% pure.
Re: Hammer units to meters conversion? Posted by morpheus77 on Thu Dec 9th 2004 at 8:25pm
morpheus77
21 posts
Posted 2004-12-09 8:25pm
21 posts 2 snarkmarks Registered: Dec 9th 2004 Occupation: IT Location: Netherlands
1 inch = 2.53 centimeter

1 meter = 39.52 units (say 40)
Re: Hammer units to meters conversion? Posted by azelito on Thu Dec 9th 2004 at 9:19pm
azelito
570 posts
Posted 2004-12-09 9:19pm
azelito
member
570 posts 127 snarkmarks Registered: Aug 8th 2002 Occupation: Wierdness Location: Sweden
<DIV class=quote>
<DIV class=quotetitle>? quoting Leperous</DIV>
<DIV class=quotetext>As said above, 1 unit is meant to be 1 inch, though it doesn't quite work out like that in "real life" :smile:

1 metre is about 39.5 inches, i.e. about 40 units. 1 foot is 12 inches, so 12 units.

</DIV></DIV>
So basicly, this means the wall textures that are 128 units high would be 3 meters in real life? That sounds unreasonable.
Re: Hammer units to meters conversion? Posted by Crono on Thu Dec 9th 2004 at 9:20pm
Crono
6628 posts
Posted 2004-12-09 9:20pm
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
But that's 128 pixels. Not units ...
Morpheus, it's 2.54 cm. (Yes, it does make a difference)
Re: Hammer units to meters conversion? Posted by Nanodeath on Thu Dec 9th 2004 at 9:40pm
Nanodeath
356 posts
Posted 2004-12-09 9:40pm
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
Hah, well, I guess if you guys are considering hundredths of a centimeter it makes a difference :wink: But since you're rounding so much anyway...yeah. Isn't a pixel = unit in Hammer/HL2?
Re: Hammer units to meters conversion? Posted by coldbladed on Thu Dec 9th 2004 at 10:26pm
coldbladed
62 posts
Posted 2004-12-09 10:26pm
62 posts 6 snarkmarks Registered: Nov 11th 2004
I get the feeling like the "real life" outcomes are more like 1unit = 2inches. Just personal experience...
Re: Hammer units to meters conversion? Posted by DedDog on Thu Dec 9th 2004 at 10:35pm
DedDog
13 posts
Posted 2004-12-09 10:35pm
DedDog
member
13 posts 11 snarkmarks Registered: Dec 3rd 2004 Occupation: Unix & Storage Admin Location: USA
For what it's worth, human entities (info_player_start, npc_combine_s)
are all 64 units high. If we assume 1 unit is one inch, that makes
Gordon 5 foot 4 inches tall (64 inches). Seems like he ought to be a
little closer to 6 foot tall (more heroic).
Re: Hammer units to meters conversion? Posted by morpheus77 on Thu Dec 9th 2004 at 10:37pm
morpheus77
21 posts
Posted 2004-12-09 10:37pm
21 posts 2 snarkmarks Registered: Dec 9th 2004 Occupation: IT Location: Netherlands
Gordon, the amazing dwarf.

I agree :smile:
Re: Hammer units to meters conversion? Posted by parakeet on Thu Dec 9th 2004 at 11:52pm
parakeet
544 posts
Posted 2004-12-09 11:52pm
parakeet
member
544 posts 81 snarkmarks Registered: Apr 30th 2004 Occupation: n/a Location: Eastern US
<DIV class=quote>
<DIV class=quotetitle>? quoting Crono</DIV>
<DIV class=quotetext>But that's 128 pixels. Not units ...
Morpheus, it's 2.54 cm. (Yes, it does make a difference)
</DIV></DIV>
you show em those conversion charts Chrono !
Re: Hammer units to meters conversion? Posted by CPS on Thu Dec 9th 2004 at 11:58pm
CPS
60 posts
Posted 2004-12-09 11:58pm
CPS
member
60 posts 6 snarkmarks Registered: Nov 21st 2004 Location: USA
1 unit is 1 inch, it was already stated, and I have been doing a map to about exact scale and the 1 unit to 1 inch stands true.
Re: Hammer units to meters conversion? Posted by Tyman4752004 on Tue Nov 1st 2005 at 10:51pm
Tyman4752004
5 posts
Posted 2005-11-01 10:51pm
5 posts 1 snarkmarks Registered: Dec 12th 2004 Occupation: Hy-Vee Location: USA
i messured my garage in inches, used those numbers at 1 unit = 1 in.
and mapped my garage. when i played it.....it was way to small.
For me 1 unit does not seem to = an inch.
Re: Hammer units to meters conversion? Posted by Captain P on Tue Nov 1st 2005 at 11:29pm
Captain P
1370 posts
Posted 2005-11-01 11:29pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
That's true, there is no real conversion rate between units and inches or centimeters or whatever.

But uhm, ever looked at the date of this thread? You're breaking up an 10-months old one, mate... :wink:
Create-ivity - a game development blog
Re: Hammer units to meters conversion? Posted by Tyman4752004 on Wed Nov 2nd 2005 at 2:54am
Tyman4752004
5 posts
Posted 2005-11-02 2:54am
5 posts 1 snarkmarks Registered: Dec 12th 2004 Occupation: Hy-Vee Location: USA
yes i know, but search b4 i make a new thread.... i would really like to make scale models of like rooms and stuff...dagit
Re: Hammer units to meters conversion? Posted by Gorbachev on Wed Nov 2nd 2005 at 7:50am
Gorbachev
1569 posts
Posted 2005-11-02 7:50am
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
I've done a complete to-scale of an office floor. It's just 1 unit = 1 inch.

1 pixel is not 1 unit, as per texture it's up to the scale you're using
on that face, it has nothing to do with the player size and wall size.
Re: Hammer units to meters conversion? Posted by fishy on Wed Nov 2nd 2005 at 12:31pm
fishy
2623 posts
Posted 2005-11-02 12:31pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
if you're not 6'4" in real life, then things will look smaller when you make them to scale and view them in game.
i eat paint
Re: Hammer units to meters conversion? Posted by Paladin[NL] on Tue Nov 8th 2005 at 7:41am
Paladin[NL]
157 posts
Posted 2005-11-08 7:41am
157 posts 56 snarkmarks Registered: May 4th 2004 Occupation: Student/mapper Location: Netherlands
I came up with a hammer units/ meters conversion by simply taking the
height of a player model (72u's) and deviding it by 1.8 meters(average
height of a man) and that is 40u's per meter.

PS. Did that a whole while back.
Re: Hammer units to meters conversion? Posted by shinpickle on Wed Dec 7th 2005 at 5:02am
shinpickle
1 post
Posted 2005-12-07 5:02am
1 post 0 snarkmarks Registered: Dec 7th 2005 Occupation: AT&T programmer Location: USA
"I do know, however, that HL2 will allow you to change unit-to-world ratios"

Does anyone have more info about this? As a test I made a map of house with 1:1 scale. but CS models won't fit through my actual 30 inch doors... furthermore the rooms feel small.

Is there 1 place as LAzerMANiac aludes to alter the ratio, or am I resizing my map manually??
Re: Hammer units to meters conversion? Posted by Crono on Wed Dec 7th 2005 at 6:08am
Crono
6628 posts
Posted 2005-12-07 6:08am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
You can set units through : Map >> Units >> None (default)/Inches/Feet+Inches

I'm thinking that it only changes the actual number within hammer that you see. But, the game has 1:1 built in. (Such as in the status bar at the bottom of the screen ... 4th cell from the right)

Although, you should note that most mods change the world dimensions. I know CS does.

The 1:1 ratio can be changed for any mod.
Blame it on Microsoft, God does.
Re: Hammer units to meters conversion? Posted by wil5on on Wed Dec 7th 2005 at 9:34am
wil5on
1733 posts
Posted 2005-12-07 9:34am
wil5on
member
1733 posts 570 snarkmarks Registered: Dec 12th 2003 Occupation: Mapper Location: Adelaide
Yes... I think by that it meant you could change it in the code, which is essentially just changing the size of players, which could be done in HL1.
"If you talk at all during this lesson, you have detention. Do you understand?"
  • My yr11 Economics teacher