Game Development Community

Torque units to Pixels?

by Bobby Leighton · in Constructor · 04/12/2007 (5:12 am) · 5 replies

Does anyone know how many pixels are on one side of one square, Torque unit? I want to make some textures specifically for the aches I'm making and want to make the brick just the right size. Any help would be appreciated:)

#1
04/12/2007 (9:58 am)
The concept of pixels when applied to textures doesn't really exist.

Textures are applied to geometry using UV coordinates that range from 0.0 to 1.0 You can apply a 16x16 pixel texture or a 1024x1024 texture to the object and the UV coordinates will not change.

One Torque unit corresponds to 1 meter if that helps.
#2
04/12/2007 (10:20 am)
The setting "geometry_scale" indirectly controls the pixel density in Constructor (and other brush editors). By default it is set to 32, which means you get a texel density of 32 pixels per meter.
#3
04/12/2007 (10:48 am)
To further explain "geometry_scale"; the larger your number in this field, the SMALLER your building will be.
#4
04/12/2007 (3:34 pm)
Greetings!

If you'd like to see how big the current texture is in the world with a UV scale of 1, go to the Materials Form's menu and change the Texture Size Units to Meters. So instead of displaying the texture's pixel size, the Form will now show its size in meters based on the scene's geometry_scale setting.

For example, a 128x128 texture will cover 4m x 4m with a geometry_scale of 32. Or, it will take a cube 4m on a size to hold the entire texture once.

I hope that helps.

- LightWave Dave
#5
04/12/2007 (7:37 pm)
Thats darn handy and just what i was looking for, Thank you all!!!


Cheers
Bobby