Aligning func_brushes

Avatar
Dafflewoctor
415 Posts
Posted Jun 22, 2013
So I'm using wall panels for a map, but it's a Wheatley chamber so they're all misaligned and angular. I'm struggling to get func_brushes flush against the panels because of this. Is there any easy way to do this besides dragging it with the circles on the different views?
Advertisement
Registered users don’t see ads! Register now!
Avatar
Skotty
671 Posts
Posted Jun 22, 2013
Replied 1 hour later
SetParentAttachmentMaintainOffset instead of SetParentAttachment
Avatar
srs bsnss
552 Posts
Posted Jun 23, 2013
Replied 9 hours later
Do you mean that it's hard to align the brushes to the panel faces because the panels have destroyed animations? Well, I happen to have written a guide on that on the VDC: https://developer.valvesoftware.com/wik ... rup_Panels

Your animations may vary, but the main idea is using "idleend" animations in Hammer. The idle powerup animations are horribly off-grid in Hammer, and are therefore impossible to correctly parent the brush to. By using this method, you can align the brush to the panel face in Hammer on-grid, but when the map spawns, it will move into an idle powerup animation, with the brush perfectly parented.

Avatar
Brainstone
401 Posts
Posted Jun 23, 2013
Replied 43 minutes later
Hm. Correct me if I'm wrong, but I always thought, when you

  1. chose "setParentAttachment" instead "setParentAttachmentMaintainOffset" with a logic_auto
    and 2. place the brushes NOT on the arms but aligned in the wall (sometimes 90? rotated)
    and 3. chose any idle animation as default animation

you would get a thing that works. In fact, I'm very sure I've done that before.
(That would mean Skotty said it just the worng way around)

Avatar
srs bsnss
552 Posts
Posted Jun 23, 2013
Replied 19 minutes later

Brainstone wrote:
Hm. Correct me if I'm wrong, but I always thought, when you

  1. chose "setParentAttachment" instead "setParentAttachmentMaintainOffset" with a logic_auto
    and 2. place the brushes NOT on the arms but aligned in the wall (sometimes 90? rotated)
    and 3. chose any idle animation as default animation

you would get a thing that works. In fact, I'm very sure I've done that before.
(That would mean Skotty said it just the worng way around)

Actually, yeah, I'm pretty sure that works as well. Personally, I prefer my method because I feel like it's more organized, but whatever floats your boat I guess.

Avatar
Dafflewoctor
415 Posts
Posted Jun 23, 2013
Replied 2 hours later
I'm not sure if you people are misunderstanding me or if I'm misunderstanding you. I'm using idle animations for these panels and they aren't moving, so I don't think it's a problem with parenting. It's just very very difficult to drag the brushes to the perfect angle against the wall panel using the circles and double clicking it.

Also, the anim_wp\room_transform\arm64x64_interior_animation isn't showing up in the model browser or in Hammer at all. The file is in the model browser but when I click on it it just shows an empty grid where the model should be. It even shows all the animations under the sequence tab.

Avatar
zivi7
649 Posts
Posted Jun 23, 2013
Replied 8 minutes later
Not sure if I understand the problem. Do you mean you have the panels as static models and placed them in an angle already so that now you are struggling to get func_brushes on them in the same angle?

If so, next time first leave the panel straight, create the func_brush and then select both to drag them in the angle you want.

Avatar
Brainstone
401 Posts
Posted Jun 23, 2013
Replied 23 minutes later
Just follow srs bsnss' tutorial on the bottom of the VDC page and leave out step 4. (the logic relay) and you should be fine. As for the model browser: You could your viewset have at strange angles. Try rightclicking+dragging to zoom in/out and leftclicking + dragging to change angles.
Avatar
Dafflewoctor
415 Posts
Posted Jun 23, 2013
Replied 1 hour later
@Zivi7: I can't believe I didn't think of that, yes you understood the problem.

@Brainstone: I tried changing the angles and zooming in and out with no avail. Also, when I set this panel to the world model and place it in the world, it appears invisible. I can move it around, but it just appears invisible.

Avatar
josepezdj
2,386 Posts
Posted Jun 23, 2013
Replied 2 hours later

Dr.Toaster Waffles wrote:
Also, the anim_wp\room_transform\arm64x64_interior_animation isn't showing up in the model browser or in Hammer at all. The file is in the model browser but when I click on it it just shows an empty grid where the model should be. It even shows all the animations under the sequence tab.

Man, the animation models aren't intended to be used in game, they are simply the animations of a model, you should be using the model arm64x64_interior instead :wink:

Advertisement
Registered users don’t see ads! Register now!
Avatar
srs bsnss
552 Posts
Posted Jun 24, 2013
Replied 15 hours later

Dr.Toaster Waffles wrote:
I'm not sure if you people are misunderstanding me or if I'm misunderstanding you. I'm using idle animations for these panels and they aren't moving, so I don't think it's a problem with parenting. It's just very very difficult to drag the brushes to the perfect angle against the wall panel using the circles and double clicking it.

Also, the anim_wp\room_transform\arm64x64_interior_animation isn't showing up in the model browser or in Hammer at all. The file is in the model browser but when I click on it it just shows an empty grid where the model should be. It even shows all the animations under the sequence tab.

I think it's a misunderstanding on your part, though my answer was, admittedly, a bit off. The tutorial on the VDC will still work, but you skip the last step which involves causing the actual animation :thumbup:

oh, and make sure you don't use the model with "_animation" at the end, that's not meant for actual panels.