Hint Brushes

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Hint Brushes

Post by Axion »

Okay, I was reading thorugh the Manual VIS tutorial that shipped with the Spearhead SDK when I came across the following-

"Other tools exist, like hint brushes, that are better suited for optimizing framerate in indoor scenes."

So, how exactly are hint brushes used? Do they function like areaportals or are they a simplified version of VIS? I'm just curious to know the answer.
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Actually, hint brushes perform a little bit like both.
In an indoor area, a hall with a 90 degree bend, for example, they function like an area portal in that when properly placed, they prevent the area beyond the hint from being drawn.
At the same time, they function like a vis_leafgroup because they will end portal chains in that same area.

Basically, they are used in situations when viewblocking in structural passages/rooms is needed, and yet no doors exist for the use of area portals.
But that is not the limit of their use.
Depending on skybox design in outdoor maps, they can be used to keep areas of the map from being drawn while in other areas.

There are a few tutorials out there about it, but I don't remember links off the top of my head.
Image
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Post by Axion »

Another question-

How would I use hint brushes? Is it as simple as placing them inside interior areas and leaving them be, or is there more to it than that?
\
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Basically, they would be inserted around corners, filling the space among structural brushes.

Like area portals, they will not work if the surrounding brushes are not structural.

Something like this:

Image

Note: the smaller hint brush is not necessary. Also note that the ceiling is removed for view, and all brushes are structural.

No doors are necessary at either end of this passage for the hint to work.

Similarly, hint brushes can be used in large divided rooms much in the same way.
Image
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Post by Axion »

Sweet, thanks for the response!
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

why would u need hint, 1 cant see 2 anyway.
Image
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Post by Axion »

Because it increases the fps by not drawing what the player can't see.
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

ti deosnt draw what the player cant see. thats what vis is isnt it????
Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

im confused :? .i wanna learn more about hint brushes.i know what the can do and y they should be used.im more confused about the placement of them.y does it have 2 be triangular shaped?y is the smaller hint not needed?is there a tut about these?cause i havent seen any about hint brushes,just area portals and vis.
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

omniscient wrote:ti deosnt draw what the player cant see. thats what vis is isnt it????
VIS doesn't decided whether the player can see something, because in the VIS compile stage, there's no player :wink: , but instead it devides the map into spaces ('leaves') and ingame those spaces are drawn which can be seen from ANY point of the space the player is in. If vis made just one space out of the hallway 1, and just one space out of hallway 2, the complete hallway 2 would be drawn when player is anywhere in hallway1, even if - from his position - he couldn't see anything of it. Those hint brushes devide e.g. hallway 1 in more than one - and somehow precalculatable - space, and so, hallway2 can't be seen from any point in the space in front of the triangle (and therefore won't be drawn).
Right?
M&M wrote:y does it have 2 be triangular shaped?
yeah, why??
M&M wrote:y is the smaller hint not needed?
because, if the whole hallway1 was just one leaf, there would nevertheless be no point in it from where hallway2 (space at the right of the big triangle) could be seen.
M&M wrote:is there a tut about these?
there was once something in the Monty Python's Flying Circus: "How not to be seen - Part One: The larch"... errrm, maybe this was something completely different :P
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

once again, about the triangular shape...
i think, you could also do rectangular hint brushes. which is wrong (see below) Image
If A, B and C lie on one straight line, leaf 1 and 2 won't see each other. But to know where C would have to be, you'll have to draw a triangle A-C-D and then, why should u replace it afterwards? Also, in the triangular space to the left of leaf 2 but still below line B-C, hallway 1 will be seen (because u entered a leaf where 1 can be seen) and this will be avoided by Crunch's triangle A-C-D...errrm, most of this is wrong, :oops: so u'd better read crunch's explanation
Last edited by wacko on Sun Feb 22, 2004 1:17 pm, edited 1 time in total.
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

there was once something in the Monty Python's Flying Circus: "How not to be seen - Part One: The larch"... errrm, maybe this was something completely different
ROFL :D :D :D .i found a tut after posting the earlier post,but its not made 4 mohaa ,quake3 engine though.however the author of this tut made a very good job in confusing all my brain cells.so if any1 can decrypt and translate the gibberish stuff he said (i cant make anything of it) id be much obliged.perhaps even some1 can turn it into a mohaa tut.
take a look at it here
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

yeah ,i know that one.but that doesnt explain hint brushes at all,it just says they are another means 2 an end ,instead of the one explained (which is detail)
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

M&M wrote:yeah ,i know that one.but that doesnt explain hint brushes at all,it just says they are another means 2 an end ,instead of the one explained (which is detail)
as soon as u understood that tut, hint brushes ought to be easy, u - as far as I understood things - just add additional leafs manually with them...
Post Reply