need a simple question answered about radiant


(Venom) #1

Im trying to make a custom texture for a brush but i dont know how to figure out the size of the brush. i want to make the texture so it fits the side of the bruch perfectly. how do i figure out the pixel size of a brush?


([rD]MrPink) #2

You don’t. Create your texture on a 2x2 basis though. 2x2, 4x4, 8x8, 16x16, etc. Its perfectly acceptable to have a 256x512 image too. To make your texture fit perfectly, create your brush, and then select the side you want your texture on by using ctrl+shit+click, or if you want all of the sides to have the texture just shift+click it. Next hit the ‘s’ button. If you look near the bottom right corner of the window that just popped up you should see something that says “fit”. Look just to the right of that. Make sure that width and height are both set to 1, then click fit, then click cancel (there a bug when you hit apply that causes the texture to not be at the proper scale). Your texture should now take up the entire of that face in just one copy.


(redfella) #3

Typically, a 256x256 texture will fit on 128x128 brush. But that depends on the overall game scale (which is usually .5).

gl


(Venom) #4

the brushes i want to make custom textures are certian shapes, not squares, and i want to make a custom texture that will fit it exactly, not stretch to fit it or anything. can i do this?


(redfella) #5

First off, plz dont use red on grey… yikes!

Second, using the same information that I gave you about scaling, you should be able to create a custom texture that will fit to a brush (or to a group of brushes). Its just a matter of counting pixels and creating the brushes accordingly. …So, yes, you can do that. Just black out the areas on your texture in which u dont want.


(Venom) #6

First off, plz dont use red on grey… yikes!

Second, using the same information that I gave you about scaling, you should be able to create a custom texture that will fit to a brush (or to a group of brushes). Its just a matter of counting pixels and creating the brushes accordingly. …So, yes, you can do that. Just black out the areas on your texture in which u dont want.[/quote]

thanks for the reply…but thats what i need to know. how big my brush is in pixels. how do i figure that out?

sorry if im stupid, which i am


(redfella) #7

As I said before… typically, a 256x256 (pixel) texture will fit on 128x128 brush. But that depends on the overall game scale (which is usually .5).

gl this time :slight_smile:


(SCDS_reyalP) #8

You can fit almost any number of pixels on any sized brush. The default scale is 0.5 so you get two pixels per world unit, but you can adjust that in the surface inspector (s key) or using the scaling keys.

Your texture dimensions must be a power of two, but they don’t have to be square. Eg, a 16x512 texture would be fine. If your brush dimensions aren’t going to be a ratio of powers of two (e.g. your brush is 100x33), then you will either need to pre-distort your texture using an image manipulation program, or make your texture larger than it needs to be in one direction, so that part doesn’t show up on the brush face. I suggest the first option, but if the math makes your head spin, the second one will just cost you a little texture memory.