MappingHell

Archive => The Mega Archive => Topic started by: Hawk_eye on November 22, 2011, 05:13:35 PM

Title: custom texture size?
Post by: Hawk_eye on November 22, 2011, 05:13:35 PM
I was just wondering what size (pixels?) a custom texture has to be to fit perfectly into a certain gridsize slot? thx  ;)
Title: Re: custom texture size?
Post by: Sweet on November 22, 2011, 05:16:14 PM
The default gridsize (The one you have when you enter coopedit) is 64x64 pixels
Title: Re: custom texture size?
Post by: Sweet on November 22, 2011, 05:20:22 PM
Then doubling it or halving it will increase to the next gridsize.
Title: Re: custom texture size?
Post by: unixfreak on November 22, 2011, 05:24:31 PM
Common size for textures in cube2 is usually 512x512 or 256x256.
You can always use vscale (or texscale in a config) to shrink it without having to resize in an image editor.

Say you had a 256x256 texture and wanted it to fit the default gridpower, you can make it fit to 64x64 by using:
/vscale 0.25

or add a new texture slot in a map config:

texture 0 "textures/blah/floor-256.jpg"
texscale 0.25


This is useful for textures that you may want to fit on larger surfaces (aswell as the default grid).
Title: Re: custom texture size?
Post by: Hawk_eye on November 22, 2011, 05:32:11 PM
 ;D ;D great, thanks guys  ;)
p.s. say if a made a map with custom textures, and i uploaded in coop online, would the textures still be there on the map i sent?
Title: Re: custom texture size?
Post by: unixfreak on November 22, 2011, 05:45:55 PM
Nope unfortunately.

Only the *.ogz map file is sent. Anything else (mapmodels, textures, configs) need to be downloaded and placed in the correct folders manually.
Title: Re: custom texture size?
Post by: Apollo on November 23, 2011, 12:08:38 AM
Anything by the power of 2 will fit the grid.
Ideally, the lower and upper limits for textures would be 32 to 4096.