How to make invisible box (brush)?
Moderator: InsideQC Admins
4 posts
• Page 1 of 1
How to make invisible box (brush)?
I want to make invisible brush to do dynamic collision with player. But I do not know how to do it. I tried to set model to empty string but it removes the collisions as well. Is there another way?
-

daemonicky - Posts: 185
- Joined: Wed Apr 13, 2011 1:34 pm
A clip brush should do it. Just set all textures to clip (it should be in your wad file, add one called "clip" if not) and the brush will be invisible and collide. Not sure how well that works with a moving brush model, but if your engine of choice includes .alpha support you could set alpha to 0 for the entity and get much the same effect.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
We knew the words, we knew the score, we knew what we were fighting for
-

mh - Posts: 2292
- Joined: Sat Jan 12, 2008 1:38 am
mh wrote:A clip brush should do it. Just set all textures to clip (it should be in your wad file, add one called "clip" if not) and the brush will be invisible and collide. Not sure how well that works with a moving brush model, but if your engine of choice includes .alpha support you could set alpha to 0 for the entity and get much the same effect.
It works for normal brush. But for entity brush I am getting "Entity with no valid brushes or textures on line ..." .
Maybe there is some bsp compiler which can supress it.
-

daemonicky - Posts: 185
- Joined: Wed Apr 13, 2011 1:34 pm
Second approach worked. Transparency needs to be different from 0, so something like 0.01 is fine and it works. Thanks. 
-

daemonicky - Posts: 185
- Joined: Wed Apr 13, 2011 1:34 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest