prop_static alignment problem :/

Discussion in 'Mapping Questions & Discussion' started by Garner, Oct 3, 2009.

  1. Garner

    Garner L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    38
    Today i encountered a problem with hammer, prop_static (havent tried it with other entities yet) do not align up to brushes properly, even at grid size 1.

    I have taken a screenshot to show you:

    [​IMG]

    The blue line is the brush in the grid view, and you can see where the prop is. You also can notice how the prop is always about 1/6th or 1/8th out. Any way to fix this?

    I have tried: Closing hammer and retrying, snapping the model to grid amongst other stuff and still no joy :/

    Any ideas?
     
  2. Eradicatus

    Eradicatus L1: Registered

    Messages:
    30
    Positive Ratings:
    7
    Models snaps to the grid with their origin, not with the edges/corners of their bounding box.
    Try doing what I described at the bottom of this post before you tear out your hair and recompile your model.
    Or if you are aligning Valve models, with no possibilities of changing the origin.

    Unless you properly align the model in the 3d package before export, It will be impossible to line up the model in Hammer.
    Assuming of course, you want to have a perfect alignment between models and BSP brushes.

    The easiest way to ensure models fits the world in Hammer and in-game, is to make a skeleton/basic version of the object you wish to model,
    export it as a DXF, import it into the 3d package and model around it.
    Hammer will export both regular BSP brushes and displacment patches.
    It will not export anything else, like models or entities.
    So if you need pointers to where a model is located, I suggest putting down a couple of guideline brushes designating where the model is supposed to be.

    Also, selecting the surrounding brushes/patches will also help in having a guideline.
    Designing the model to fit the imported brushes in the 3d package, makes it fit in Hammer too. But, even when this is done,
    there might still be some difficulty aligning it correctly, and it looks like it goes "off grid".


    Try to use the white squares around the bounding box of the selected model to manipulate it a bit off the grid.
    Usually it will fall into place after one or two nudges in the right direction.
    Remember, it's the edges of the model itself that is important to get to line up.
    The bounding box is generally slightly larger than the model, so this one will always be off grid no matter what,
    when the model itself sits perfectly at the grid lines.
     
    • Thanks Thanks x 1
    Last edited: Oct 4, 2009
  3. J4CK8

    J4CK8 L11: Posh Member

    Messages:
    820
    Positive Ratings:
    223
    Or, if you can't do that ^ you can use ctrl+m and move the prop in x/y axis by the appropriate distance. You can also drag the prop from the corner (When in resize mode) and drag it to the end of the grid line, then it will revert back a bit. You can repeat that process until the prop is as close to the grid as you want.
     
    • Thanks Thanks x 1
  4. MoonQuake

    MoonQuake L3: Member

    Messages:
    111
    Positive Ratings:
    21
    You can also zoom-in to the max and then hold ALT and click drag the object for per-pixel precision translations.
     
    • Thanks Thanks x 3
  5. J4CK8

    J4CK8 L11: Posh Member

    Messages:
    820
    Positive Ratings:
    223
    Did not know about this, thanks should help a lot :D
     
    • Thanks Thanks x 1
  6. Eradicatus

    Eradicatus L1: Registered

    Messages:
    30
    Positive Ratings:
    7
    This I did not know about.
    Neat!
    Wish I knew about it two years ago. :D
     
    • Thanks Thanks x 1
  7. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,561
    I was going to suggest using the transform function to move the prop per decimal amounts of Hammer units in the desired direction but i guess that works too.
     
    • Thanks Thanks x 1
  8. Garner

    Garner L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    38
    Thank you everyone :)
    I fixed the problem using a combination of everyones suggestions (well, they all worked so :D:D:D)

    <3
     
  9. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    For future ease of use, simply create a skip brush which exactly contains the model. Then group them together. The brush can snap to any side, that is the one that the mouse is closest to.
     
    • Thanks Thanks x 1