custom texture size?

Started by Hawk_eye, November 22, 2011, 05:13:35 PM

Previous topic - Next topic

Hawk_eye

I was just wondering what size (pixels?) a custom texture has to be to fit perfectly into a certain gridsize slot? thx  ;)

Sweet

The default gridsize (The one you have when you enter coopedit) is 64x64 pixels

Sweet

Then doubling it or halving it will increase to the next gridsize.

unixfreak

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).
Join the Red Eclipse discord! https://www.redeclipse.net/discord

Hawk_eye

 ;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?

unixfreak

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.
Join the Red Eclipse discord! https://www.redeclipse.net/discord

Apollo

Anything by the power of 2 will fit the grid.
Ideally, the lower and upper limits for textures would be 32 to 4096.

If I could rearrange the alphabet, I'd put your sister and I side by side.

Heav’n hath no rage like love to hatred turn’d, Nor Hell a fury, like a woman scorn’d.