Page 1 of 2

Patch VS brush for a simple wall

Posted: Mon Nov 21, 2011 6:29 pm
by Douze
I'm building a new jump map with an intensive use of patches. I'm using both brush and patche for simple walls.
My problem is its kinda boring/slow to select patch and only one brush face (when I want to fix textures for example): its easier to select patches only, when they are aligned.
So my question is: is it good to use some patches for simple wall ? (performance, light...)

Current version:
Image

Version of my dreams:
Image

Re: Patch VS brush for a simple wall

Posted: Mon Nov 21, 2011 6:37 pm
by ValkoVer
Extensive use of patches will affect performance. And you will have to build caulk hull behind geometry. Use -patchmeta in BSP stage and -patchshadows in Light stage.

Re: Patch VS brush for a simple wall

Posted: Mon Nov 21, 2011 7:11 pm
by MajkiFajki
Or use
http://mapgen.nerius.com/

and phong shaders.

Re: Patch VS brush for a simple wall

Posted: Tue Nov 22, 2011 5:27 pm
by Douze
Thank you for your quick responses.

@ValkoVer: I think the performances are the same for a square shape. But I'll definitly try these options to compile.

@MajkiFajki: I tried it (ty gsigms) but I wasted to much time (I've got a lot of patches of different size / shape and I had difficulties to understand all options due to my crappy english...)

But I've to use patches, I'm bored of squared jump maps !

Re: Patch VS brush for a simple wall

Posted: Wed Nov 23, 2011 12:27 am
by gsigms
Rambetter surface generators are really great, for perfect curves it is pretty straightforward, but to create flatter or fatter curves it is not that easy.

I do not know if patches are ok jump wise, I though it was not working very well with walljumps for example.

Re: Patch VS brush for a simple wall

Posted: Wed Nov 23, 2011 10:05 pm
by Markinho
I've been testing walljumps on both patches and brushes, Ramb's surfaces won

Re: Patch VS brush for a simple wall

Posted: Thu Nov 24, 2011 3:57 pm
by flajeen
Use q3stairgen - search on Urban Terror forums. You can also make them manual way.

http://i.imgur.com/UffgM.png

Made with clipping tool - smaller the grid, bigger the perfection. Use phong shaders with this so you get a good effect.

Re: Patch VS brush for a simple wall

Posted: Thu Nov 24, 2011 7:20 pm
by Markinho
That way makes lemmings at 99% if used for quaterpipes

Re: Patch VS brush for a simple wall

Posted: Fri Nov 25, 2011 12:11 pm
by Douze
@gsigms/Markinho: I found a golden mean, so player will jump on brushes / patches are for details and ground
@flajeen: cool stuff but I'll use patch - cooler, faster :p I think performances are quite ok but I'll ask some testers

Re: Patch VS brush for a simple wall

Posted: Sat Nov 26, 2011 5:40 pm
by gsigms
Rambetter's Pipe generator can only generate perfect curves, so I think it is ok if you only make bevel from square brushes for your curved corners. May be Markinho can confirm but if you want to create slim/fat curves, you can play around with the extrude parameters and then cut the generated brush, but it seemed to me not very convenient.

I did some small modifications of rambetter's pipe generator to generate bezier curves instead of circular section as an experiment:

starting from a bevel patch:

bevel patch
bevel patch


you need to read from you patch the coordinate of the end points (in the example 0,0 and 384, 192) and of the control point (the pink one visible when switching to vertex mode, in the example 296, 16)

given a thickness (64) and height (128), and subdivision numbers for the wall, you can easily generate a best fitting wall: here for 3 subsections:

bezier 3 sub
bezier 3 sub


and for 8 subdivision

bezier 8 sub
bezier 8 sub


If you are interrested I can look into generating the slick brushes for that kind of curves.