New vis_leafgroup tutorial!

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

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

New vis_leafgroup tutorial!

Post by Bjarne BZR »

Hi! I made a tutorial based on how I optimized FPS in the worst spot on Vemork factory

Here it is:
http://www.planetmedalofhonor.com/rjuka ... orial.html

Contains a very complex example map file that shows the vis optimizing.

I just threw the tutorial together in a really short time, so point out its flaws and I'll fix it at once... got to go now... in a hurry...
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Looks pretty good 8)
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Looks gr8! Now i understand vis better! With the SDK vis tut and ur tut, I can now use vis in my DM map, and will include vis leaves in v2.0.

But i found an error, "Congratulations" is spelt wrongly. :wink:
Live to map, not map to live.
-mohaa_rox, .map
moderator
solar
Colour Sergeant
Posts: 99
Joined: Fri Mar 21, 2003 2:40 pm
Location: Toledo, OH

Post by solar »

of course Rox, there's no such word as "spelt" either. :wink:

Thx Bjarne, I've spent close to two weeks now trying to optimize the FPS in my map with some success, but not to my standards. And, just like with your map, my main problems are inside and not outside. I have one FPS problem outside that gets down to the high teens and mtex of 45+, but it's only at the spawn area so I'm not to worried about it, though I'm still working on it. Inside problem is in a room with a lot of detailed brushes and patches, so I've been trying a number of different things.

Let me ask this question. Should we not intersect leafgroups or make multiple leafgroups with the same targetname?? Did you do that in your map?
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Good that you mentioned the targetnames, I must add a note on that in my tutorial:

I found that you should always name the targetnames yourself. As an exampe "distiller_hall_southwest" is a better name than the name given by Radiant when using the CTRL+k method to target brushes ( then they get crappy names like "mv1" & "mv5" ).

I see no problem in using intersecting vis_leafgroups.
As for using multiple vis_leafgroups with the same targetname, I dont think you CAN set the same name on multiple vis_leafgroups... so dont do that...
Admin .MAP Forums
Image
Head above heels.
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

Post by tuffstuff7 »

great job this will help me i am sure on learning this thanks
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

I re-made the tutotial again to make it easier to understand, and I added some nice pictures for those of you that cant read :D
http://www.planetmedalofhonor.com/rjuka ... orial.html
Admin .MAP Forums
Image
Head above heels.
solar
Colour Sergeant
Posts: 99
Joined: Fri Mar 21, 2003 2:40 pm
Location: Toledo, OH

Post by solar »

You may be right Bjarne, what I did was make two brushes with the VIS tex, selected both of them, went to the entity window and entered a targetname of like "vis1". Then I made the opposing leafgroup and gave it a tagetname of "vis2". I then targeted it to vis1 and it drew a line to both leafgroups, but their targetnames were then different such as you stated above, like "mv1" and "mv2". I was wondering how that happened. Thx.
User avatar
-Gandalf-
Sergeant
Posts: 57
Joined: Sat Feb 22, 2003 9:45 pm
Location: Argentina - BS AS
Contact:

Post by -Gandalf- »

Bjarne BZR wrote: I found that you should always name the targetnames yourself. As an exampe "distiller_hall_southwest" is a better name than the name given by Radiant when using the CTRL+k method to target brushes ( then they get crappy names like "mv1" & "mv5" )
yep you can put all the leafs you want, name them each with own targetname ... (i have it as b1, b2 bla bla but some i use names)

then if you try to use CTRL+K radiant will keep your names in the targeting so ... b1 will target b2, b3 bla bla ... :wink:
Hunter
First Lieutenant
Posts: 212
Joined: Tue Dec 10, 2002 11:45 am

Post by Hunter »

Looks good, but can anyone explain me what to use this vis_leadfgroup for??
solar
Colour Sergeant
Posts: 99
Joined: Fri Mar 21, 2003 2:40 pm
Location: Toledo, OH

Post by solar »

Not to be rude Hunter, but doing a search will yield a ton of results. The quick answer is that it optimizes frame rates (FPS).
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Thanx Hunter for pointing that out! I explain How to do it but not Why in my tutorial :oops:

Added a section explaining why to the "Basics" section of the tutorial:
Vis tutorial wrote:So why would you waste your precious time with this? Well: sometimes the map compiler will have a rather different opinion on what can be seen from a specific place in the map than you... If you take a look at the pictures in step 5 in the How to do it section, you will see that a lot more than you think is drawn by the game engine. This does not have to be a problem if it does not drop the FPS a lot, but if it does: you will want to learn about the magic of vis_leafgroup.
Thanx
Admin .MAP Forums
Image
Head above heels.
Post Reply