Buildvisleafs

taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
edited March 2004 in Mapping Forum
<div class="IPBDescription">...sssslllloooowwww....</div> I'm using the room-by-room approach to working on my map, and am currently finishing one of the hive rooms. However, when I compile with vis -full, the 'BuildVisLeafs' stage of rad takes a llllloooooonnnnnnggggg time.. so long I don't even know how long, I've never waited to see. When I compile without -full (all other settings identical), the map (which is just the hive room, nothing else) compiles in a minute or two; with -full, I've been sitting here for ten minutes already, and it's on 20/715.

Any ideas what causes rad to take such an absurdly long time? I have a lot of angled surfaces (pipes, interesting wall architecture, etc) - would that be doing it? Would hint brushes help? What exactly is the relationship between vis and rad that might cause different vis settings to so drastically change how rad runs?

-tal

Comments

  • ThaldarinThaldarin Alonzi&#33; Join Date: 2003-07-15 Member: 18173Members, Constellation
    Use a front end compiler like nems batch compiler (search google). BuildVisLeafs generally takes a long time depending on your RAD parameters and lighting within your map.

    Also, read the mapping guidelines and faq for more information, and also use the <b>Mapping Troubleshooting & Help Forum</b> as this seems to come under the <b>Help</b> category. Can't believe morons are still posting in the wrong place <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->
  • ReebdoogReebdoog Join Date: 2003-09-20 Member: 21035Members
    Yeh, i'm pretty sure alot of weird angles will do that, its tring to cut up the space iirc. Maybe try func_wall in places. It might only be 1 or 2 brushes that are killing it as well.
  • taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
    Erm, whoops.. just double-checked my settings and realized it isn't vis -full that's doing it, it's rad -extra. Obviously, rad -extra is supposed to take longer, because it's doing more, but is it supposed to take /that/ much longer?
  • Some_tall_guy1Some_tall_guy1 Join Date: 2003-05-22 Member: 16601Members
    sloppy mapping? <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->

    only reason i've ever had a problem with visleafs is because of sloppy brushwork.
  • prsearleprsearle Join Date: 2002-11-01 Member: 2365Members, Constellation
    Well, -extra turns on 9-point oversampling, so at least one stage is going to take nine times as long.
  • quazilinquazilin Join Date: 2002-11-25 Member: 9880Members, Contributor, NS2 Playtester, Squad Five Blue
    Try using -sparse in RAD it might help.
  • HanzGrub3rHanzGrub3r Join Date: 2004-02-23 Member: 26823Members
    Some people have this fascination with building rooms that look isometric (from top down view - that's is like diamonds etc) - that plus sloppy brushwork (ie using carve) will make your compile time long.

    ok, for example, when I compiled my readyroom which was this huge glass thing (can't describe it) but it was all curved and had lots of detail, it took about 10 minutes to compile and I have a p4-3 and 1gb ram... Compiling a map can take hours (for slower computers - days even!)

    Just be patient...good things come to those who wait...
  • NzNexusNzNexus Join Date: 2004-02-16 Member: 26605Banned
    For me it took compile ns_bigk [The outside area with one light environment]

    5 hours to compile..Just leave the compile alone the 5 hours and go to school like i do.

    Start the compiler 8:00 at early morning and when you back from school between
    14:00 -16:00...It finished for me..I use the time well! <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /><!--endemo-->
  • taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
    edited March 2004
    tall guy - define 'sloppy mapping'?

    Hanz - if using carve is sloppy, and using vertex manipulation is frowned upon, how does one create architecture that doesn't look like Wolfenstein? I am fairly careful with my brushes, and honestly all these references to the nebulous sin of 'sloppy mapping' and people's varying distrust of both carve and vertex manip.. it all sounds a little voodoo-ish. Is there any slightly more scientific information available? What kind of brush work is considered 'sloppy' and why? Does anyone know what exactly the 'BuildVisLeafs' stage of rad does?

    I have a 1.4ghz machine with 512mb DDR RAM, and I'm just compiling one room - without -extra, that takes about 60 seconds. Even an expected 9x increase in one stage doesn't explain a compile that, after 20 minutes, is still at 5% of a single stage.

    And Thursday, thanks for the cheerful help. I am already using Nem's batch compiler, and Cagey's latest tools, and I sincerely apologize if I've been out of the mapping community for many months and haven't re-read every thread yet. But speaking of threads, didn't someone just bump the one about elitism?

    Anyway, if a mod could phase this to the Help forum, it'd be appreciated.
  • brute_forcebrute_force Join Date: 2003-10-04 Member: 21433Members, Constellation
    <!--QuoteBegin-taleden+Mar 22 2004, 04:58 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (taleden @ Mar 22 2004, 04:58 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Hanz - if using carve is sloppy, and using vertex manipulation is frowned upon, how does one create architecture that doesn't look like Wolfenstein? I am fairly careful with my brushes, and honestly all these references to the nebulous sin of 'sloppy mapping' and people's varying distrust of both carve and vertex manip.. it all sounds a little voodoo-ish. Is there any slightly more scientific information available? What kind of brush work is considered 'sloppy' and why? Does anyone know what exactly the 'BuildVisLeafs' stage of rad does? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Hanz didn't even mention vertex manipulation. That one is fine, but do not, ever, use Carve. It's really bad, and it's alot better to just Clip them instead (lower compile times, lower r_speeds).
  • taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
    edited March 2004
    Ah, I was confusing carve with the clipping tool (whose icon makes me thinking of carving wood).. yes, I agree carve is a Bad Thing™, because it tends to create malformed brushes and/or more brushes than necessary. As for vertex manip, Hanz didn't mention it but I've heard many, many people express their distaste for it, for similar reasons - if used incorrectly, it can easily create bad surface normals, non-planar surfaces, and all kinds of annoying brush errors. If used well, however, it's nothing to be afraid of, and can be a rather powerful tool, so I always thought it a bit silly that so many people seem to universally frown upon its use.

    But I'm still curious what, specifically, is meant by 'sloppy mapping'. Is this the 'Keiser Soze' of mappers, where elder mappers shake their fingers at younger mappers and berate them for 'sloppy mapping'? Or is there some specific kind of brushwork that qualifies as 'sloppy', for some specific reason?

    Also, quaz- Tried sparse, didn't seem to help. Judging from the help text in BC, sounds like it's more of a memory-saver than a CPU-saver; since I'm just compiling one room (so presumably the memory requirements are small, compared to compiling an entire map), it probably hurts more than it helps, in terms of compile time. Thanks, though.
  • HanzGrub3rHanzGrub3r Join Date: 2004-02-23 Member: 26823Members
    edited March 2004
    <b>taleden</b> - I'd be careful how you treat people around here because 99% of the time people are trying help the person out with whatever they ask for. You should be aware that sarcasm doesn't come across on the internet very well and more generally just looks like plain egotism. If you want people to help you you should take a good hard look at yourself and stop "biting the hand that feeds you".

    <b>Now back to the topic at hand:</b>

    Sloppy mapping generally refers to the use of the arc tool and carving in hammer. The main problem with these tools is that they aren't creating very economical or optimised brushes. More often than not carving creates a group of brushes which have more faces than what is really required to make the shape or structure you are trying to make. Yes, doing it manually requires a little bit more time but the end result and minimised compile time is worth it. Not to mention, of course, r_speeds are usually lower...

    Some people often comment that creating corners by slamming two brushes together is considered sloppy and that making them into proper "fitted corners" (see attached pic) is better "mapping style" and lowers r_speeds (which equates to shorter build times) - I can't remember if this was looked into in a thread here or on the old board but I'm sure it probably was. I myself don't bother with it because I'm not 100% sure of the credibility of the technique nor it's value in the long run.

    Hope this helps somewhat. Haven't really given you anything that hasn't been said before.
  • taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
    edited March 2004
    Hanz- The sarcasm was aimed mostly at Thursday, who I don't mind treating badly since he decided not to treat me with much respect either, but you have my apology anyway. I certainly didn't intend to attack anyone (yourself included) who was trying to help - I only meant to fish for more specific information. The term "sloppy mapping" is like "that room looks bad".. doesn't help much without more specifics, so I wanted to know what you meant by that. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->

    Anyway, I do appreciate the help, sorry again if you felt attacked. I'm one of those programmer-type people.. I like specifics.

    As for the fitted corners issue, I recall this debate and I recall someone doing some r_speeds and gl_wireframe research and determining that the angled-style 'fitted' method is not any better, and may actually be worse. I'm working on memory here, but as I recall, the reasoning was that coplanar, identically textured faces are merged at compile time anyway, so the two pieces of the north-facing outer side (in the right-hand image: marked B and C) will be merged and contribute only one wpoly anyway (assuming there isn't further poly splitting from texture tiling, but that's a whole nother issue). Also, the angled face inside the corner of the 'fitted' style (left-hand image) adds another 'plane' to the map, so in this case the left-hand style has 7 planes, while the right-hand style has 6. On the other hand, the BSP optimizer probably eliminates that extra plane anyway (once all its faces are removed, since they're inside a brush and thus invisible), so when it's all said and done, the two methods are probably completely equivalent, r_speeds-wise.

    Back to the original topic, it now looks like both the BuildFacelights and BuildVisLeafs phases of rad are taking an extraordinarily long time. I'm comparing the compile time to previous versions of this room; as far as I can tell, the addition of the last 25% or so of the room (with comparable detail level to the rest of the room) caused a roughly 4000% jump in compile time, even for a beta compile (normal vis, not -fast or -full; normal rad, not -extra).

    Anyway, it sounds like there isn't any known scenario that causes sudden enormous increases in rad time, so I'm content to live with it or try to figure it out on my own. Thanks for everyone's comments.

    Attached: annotated illustration of corner techniques
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited March 2004
    <img src='http://www.unknownworlds.com/forums/uploads//post-4-1079980142.jpg' border='0' alt='user posted image' />

    Yup it has been commented by many but also proven to be wrong by some dude who was offended by being called a sloppy mapper <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->

    He tested both techniques and came to the conclusion that the half-life engine doesnt give a damn about either one of them. but the myth that miltering corners are better was wrong, it was worse in most cases...

    <span style='color:gray'>I'll try and find the link to that page, very long time ago when I read it so I won't promise anything <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> your welcome to search for yourself on google if I can't find it


    I searched on something like "sloppy mapping r_speeds"</span>

    /me gots the link <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
    <a href='http://collective.valve-erc.com/index.php?doc=1047005525-19966900' target='_blank'>Clicketh the link</a>
  • HanzGrub3rHanzGrub3r Join Date: 2004-02-23 Member: 26823Members
    <b>taleden</b>:

    I can think of only two things that cause huge jumps in vis and rad times...

    <b>For VIS</b> - carving, hammer made arcs, and complex brushes intersecting with other brushes (ie a pipe touching the floor - go the mass break up of the floor)

    <b>For RAD</b> - All the things in VIS + Texlights + A few light entities. The telling thing is usually the "swap" thing (can't remember the word)..Whenever it has taken a long time for one room for me and I wait for that number I know it will be in at least the 10,000+ bracket...lol... usually means if I go in game and put gl_wireframe 2 on I'll see that I had a 64 side cylinder hitting the floor which has made a beautiful origami pattern..
  • Some_tall_guy1Some_tall_guy1 Join Date: 2003-05-22 Member: 16601Members
    Taleden, I see sloppy mapping as overlapping brushes, incorrect use of the tools (carve for example), and other bad habits to get into.
Sign In or Register to comment.