1. Hey Guest, welcome to the new forums. Be sure to check out this thread to get all the information you need on the cool new stuff!

Structure rotation problem

Discussion in 'Mapping Questions & Discussion' started by Jesmonda, Jun 18, 2010.

  1. Jesmonda

    Jesmonda L1: Registered

    Messages:
    20
    Thanks Received:
    8
    so i've once again started mapping on my swamp KOTH map, however i encountered a problem while i was refining my desired layout

    here's the layout i want for my map

    [​IMG]

    this is a quick rough building design, as you can see i have my buildings at a certain angle facing the point, however when i attempted this, i selected the entirety of the building on the far right and clicked again for the rotation tool and simply rotated, this brought upon many disastrous results, although it looked the same building as before, when i attempted to alter the geometry, the brushes for the building decided that it would be best to work on the angle i had set the entire building on, thus they couldn't be properly moved or edited.

    does mean that i would have to build the entirety of these structures on desired angle in order to achieve accurate editing functions? i do not hope this is the case. :eek:hmy:

    another thing i noticed recently while using hammer again for the first time in a while is that when i move my buildings i've made in some section of the gird, once i've moved it to the location i want it be on the map layout, all the gird snapping i did to make the building tidy and right suddenly goes, on reflection i guess this was always going to happen, any suggestions on how i could do something about this?

    thanks for your time
     
  2. Ravidge

    aa Ravidge Grand Vizier

    Messages:
    1,628
    Thanks Received:
    2,490
    Look into instancing. It's a new feature and should make it easier for you to build on an angle.

    When moving complex structures around it may be a good idea to create a big brush around the entire thing on a larger grid size, and use that to move it around to be sure to not have it slide off grid. when you're done moving it just delete to big brush.
     
    Jesmonda thanked this.
  3. Ezekel

    Ezekel L10: Glamorous Member

    Messages:
    796
    Thanks Received:
    242
    it's also useful for making sure your rotation pivot point is where you need it to be.


    just a word of warning though: rotated buildings sometimes can cause vrad to behave a lil oddly. (i.e. areas of a surface receiving no light regardless of "-final" tag or on number/position of lights nearby, or a barcode-like pattern appearing, where some parts of the face are lit whilst some parts receive no light at all).
    i try to just clip/vertex edit if i want to build to an angle these days. it's extra work to initially build, but it makes editting later a lot simpler because all vertices remain on the grid, as do model origin points.
     
    Jesmonda thanked this.
  4. Jesmonda

    Jesmonda L1: Registered

    Messages:
    20
    Thanks Received:
    8
    well i've tired to look into instancing, but it looks like no one's made any sort of tutorial or any understandable information that i could use, even the VDC doesn't provide enough info on how to use this entity effectively, i guess i might somehow tried out your suggestions Ezekel, i'll re-make everything on the angle i wanted using vertex

    Edit: picked up the SDK again, i can't find the func_instance anywhere!
     
    Last edited: Jun 22, 2010
  5. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,330
    Thanks Received:
    2,253
    AFAIK, instancing is a Hammer tool, not an entity; if I had access to SDK right now I could tell you more, sorry :/

    Protip: instead of making everything at an angle, start at normal grid, then select the entire building and rotate the whole thing. This should give you a nicer outcome.
     
  6. Jesmonda

    Jesmonda L1: Registered

    Messages:
    20
    Thanks Received:
    8
    http://developer.valvesoftware.com/wiki/Func_instance

    according to this it is an entity of some kind, very complicated by the looks of it, and vertex is so far coming out alright, and your suggestion is the one i tired, but as in the original post, i found this to be difficult to edit after i had rotated the building, everything when off the gird and would force me to vertex edit everything onto the gird again as i am currently doing anyway
     
  7. Timberjaw

    Timberjaw L2: Junior Member

    Messages:
    70
    Thanks Received:
    19
    The instance entity is very simple.

    1. Create a new VMF
    2. Construct your building on the grid (not rotated)
    3. Save as myinstance.vmf (or whatever)
    4. Back in your map, place a func_instance where you want your building to go
    5. In the properties for the func_instance, set 'VMF Filename' to the name you specified in step 3
    6. Click 'Apply'...your building should show up
    7. Rotate the entity as desired. Done!

    • By opening the instance VMF directly or going into the func_instance's entity properties and clicking 'Edit Instance', you can modify your building
    • The building always remains on-grid in the instance VMF, for easy editing. When you're done editing your instance, save and switch back to your map. Your changes will show up immediately (magic!)
    • Rotation appears to be around the map origin within the instance VMF

    There are more advanced capabilities of the Instances feature, mostly relating to entity names/hookups, but this should get you started.
     
    Last edited: Jun 22, 2010