Geometry not grid perfect

Discussion in 'Mapping Questions & Discussion' started by Koei, Feb 29, 2008.

  1. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    The geometry on my map isn't perfect. I have walls that I have to move with a 1px grid. What is the effect of this on optimizing?
     
  2. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,744
    It will probably send your map to the grave, I suggest you set aside a whole day and work your way though your map putting all your brushes to the biggest grid size you can get away with, if it is a really small brush in all three dimentions then you probably want to func_detail it.
    You always want to have the grid in 16 32 or 8 if you can, untill of course you need to put detailed brushes in that are smaller. Again, you should always be very carefull how you place brushes, make sure they line up to each other and the grid when you place them so that you don't have to worry about it later
     
  3. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    I was afraid of that :). Gonna have to do some serious fixing (luckily still in early stage). And what about sizing of walls? 510px wall (for example) is bad right?
     
  4. Armadillo of Doom

    aa Armadillo of Doom Group Founder, Lover of Pie

    Messages:
    949
    Positive Ratings:
    614
    I had the same problem when I first started. I find that as the map progresses, I invariably move to a smaller grid. Starting small makes it nigh impossible to make the nice detail geometry later on. Do all your walls size 32, and go from there.
     
  5. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    And what about wall lengths, heights? What sizes should I use? 1024, 512, 256, 64, 8? Because of texture scaling (from 1024x1024)? Multiples of 8? 16? 32?
     
  6. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,744
    no multiples of 8, powers of 2 (can be added together i guess)

    2 4 8 16 32 64 128 256 512 1024....

    Walls should generally be 16 units thick unless you have a reason for making them otherwise. Height depends on the room but generally 128 - 512 (using multiples of 64 usually) The compile tools just find it easier to cut up your map if everything is nice sizes and aligned to the right grid size.
     
  7. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    Sweet, thanks. Now there is nothing to stop me from winning that GPU :D. Actually, those are all multiples of 8.....128*8=1024 ;).
     
  8. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,744
    2 and 4 arent multiples of 8 but are used quite a lot if you want to nitpick :p
    and even if it as multiples of something it would be 16 not 8 ;)
     
  9. Geuel

    Geuel L2: Junior Member

    Messages:
    50
    Positive Ratings:
    7
    Could you please clarify and/or expand on this? Do you mean a bigger grid as in what you change with the [ and ] keys?

    And what would be the disadvantages of using a "smaller" grid?
     
  10. Elvis666

    Elvis666 L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Apparently using a smaller grid (eg 1, 2, 4) makes the compiling process harder and may or may not result in leaks. (correct me if I'm wrong)

    Plus if you have things on a larger grid, you won't have to zoom in as much in Hammer... :p

    edit: oh! And yes, you get smaller/bigger grid with [ & ].
     
  11. Geuel

    Geuel L2: Junior Member

    Messages:
    50
    Positive Ratings:
    7
    Is it only the compiling process that suffers, by which I would assume you mean it takes longer?

    I would also think this would only cause leaks because if you're zoomed far out with a larger grid, you wouldn't notice a leak. Is this correct?
     
  12. MangyCarface

    aa MangyCarface Mapper

    Messages:
    1,616
    Positive Ratings:
    1,275
    Simply using a smaller grid does not cause longer compile times. To the compiler a line is a line, it doesn't care how wide. However a symptom of using smaller grids is MORE LIKELY to cause YOU to make errors. So, you can safely make a map with 1 unit grids, but it's much easier to make mistakes and therefore cause the compiler to go nuts.
     
  13. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    Okay, but texture scaling still suffers from weird wall sizes i guess.
     
  14. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    Like how should I handle this? Which is preferred? And what if it was a floor at the bottom of a level, if it was 1block thick?

    [​IMG]


    edit: or I could just put the walls on the floor >_<.
    But I really prefer the 2nd picture, that way I can make the floor exactly 1024x1024 and the walls 1024x512 (wxh). But I'm worried about problems with compiling or lighting because the wall and floor would only hit on 1 point instead of a full edge.
     
    Last edited: Feb 29, 2008
  15. Paria

    Paria L5: Dapper Member

    Messages:
    202
    Positive Ratings:
    31
    your second example is just fine, it they touch, the map wont leak dosent matter that they dont cover the corners at all. I actually prefer using the 2nd example.

    And unless your floor has a specific requirement to be 1 unit think just make it the same size as the walls, 16 units is a decent starting size for walls /floors / roofs,
     
  16. Armadillo of Doom

    aa Armadillo of Doom Group Founder, Lover of Pie

    Messages:
    949
    Positive Ratings:
    614
    The second picture is how I do my rooms, whenever possible. I also make everything 32 thick at the start, and adjust as needed.