Well, I'd like to make a window, which you can only see through, one way.
1
Re: One way window
Posted by xconspirisist on Wed May 25th at 5:38pm 2005

xconspirisist
member
307 posts
61 snarkmarks
Registered: Feb 26th 2003
Location: UK
Occupation: Student
Posted by xconspirisist on Wed May 25th at 5:38pm 2005
xconspirisist
member
307 posts
61 snarkmarks
Registered: Feb 26th 2003
Location: UK

Occupation: Student
Re: One way window
Posted by Addicted to Morphine on Wed May 25th at 7:49pm 2005
Posted by Addicted to Morphine on Wed May 25th at 7:49pm 2005
Here's how you make a 1 way window/mirror:
First set up where you want the window.

You're going to need two seperate brushes/panes of glass for this to work, so make sure you have the 2 brushes flush against each other in the place where you want the window. Make sure both brushes are textured with a glass texture, like GLASSBLUE1. Now, you want the two brushes thin enough so that they look like they're just 1 brush. Here's the view from above:

Now, on the side which you want to be able to see through select the visible brush and tie it to func_wall and set the Render Mode to Additive. Change the FX Amount to something like 150, so that the glass is transparent.

Now go to the other side of the window to the part you don't want to be able to see through. Click on the brush facing you and tie it to the func_wall entity. Except this time you're going to set the Render Mode to Solid (no light). You also want to set the FX Amount to the max of 255.

If you were to jump in game now from the transparent side you would clearly see that there was another pane of glass (because it wouldn't be see through). The trick here is to apply the {BLUE texture to the side of the non-transparent brush facing the transparent window. So when you look through the transparent side you'll see right through the piece of glass (since the {BLUE texture makes that face invisible), but if you walk around the other piece of glass is still there and non-transparent.
Here is the view of the solid brush textured with {BLUE on that single face. I've hidden the transparent brush so that you can see, but make sure both brushes are visible when you compile:
Hoped that helped! If something was unclear, ask.
First set up where you want the window.

You're going to need two seperate brushes/panes of glass for this to work, so make sure you have the 2 brushes flush against each other in the place where you want the window. Make sure both brushes are textured with a glass texture, like GLASSBLUE1. Now, you want the two brushes thin enough so that they look like they're just 1 brush. Here's the view from above:

Now, on the side which you want to be able to see through select the visible brush and tie it to func_wall and set the Render Mode to Additive. Change the FX Amount to something like 150, so that the glass is transparent.

Now go to the other side of the window to the part you don't want to be able to see through. Click on the brush facing you and tie it to the func_wall entity. Except this time you're going to set the Render Mode to Solid (no light). You also want to set the FX Amount to the max of 255.

If you were to jump in game now from the transparent side you would clearly see that there was another pane of glass (because it wouldn't be see through). The trick here is to apply the {BLUE texture to the side of the non-transparent brush facing the transparent window. So when you look through the transparent side you'll see right through the piece of glass (since the {BLUE texture makes that face invisible), but if you walk around the other piece of glass is still there and non-transparent.
Here is the view of the solid brush textured with {BLUE on that single face. I've hidden the transparent brush so that you can see, but make sure both brushes are visible when you compile:
Hoped that helped! If something was unclear, ask.
Re: One way window
Posted by xconspirisist on Wed May 25th at 9:33pm 2005

xconspirisist
member
307 posts
61 snarkmarks
Registered: Feb 26th 2003
Location: UK
Occupation: Student
Posted by xconspirisist on Wed May 25th at 9:33pm 2005
That is absolutly awesome, my hat goes off to you.
As a possible extenion, I've been fiddeling about to no avail, letting players jump through the window side that is visible. Any ideas on how this might be acheived?
As a possible extenion, I've been fiddeling about to no avail, letting players jump through the window side that is visible. Any ideas on how this might be acheived?
xconspirisist
member
307 posts
61 snarkmarks
Registered: Feb 26th 2003
Location: UK

Occupation: Student
Re: One way window
Posted by Major Mike on Mon May 30th at 5:02am 2005
Posted by Major Mike on Mon May 30th at 5:02am 2005
Maybe an invisible door with a trigger_multiple on one side that targets the door allowing people to go through. The glass will have to be made a func_illusion then so only the invisible door has physics. Or perhaps a trigger_push with a high speed of push that aims in the direction the player goes through. If anyone on the otherside tries to go through they would be pushed back. Again the glass needs to be made a func_illusion so only the push has physics. If these work let me know which worked the best.
Re: One way window
Posted by wil5on on Mon May 30th at 7:08am 2005

wil5on
member
1733 posts
323 snarkmarks
Registered: Dec 12th 2003
Location: Adelaide
Occupation: Mapper
Posted by wil5on on Mon May 30th at 7:08am 2005
I would expect the push would work better. Triggering a door to open when a player is on one side of the window could easily get messy.
wil5on
member
1733 posts
323 snarkmarks
Registered: Dec 12th 2003
Location: Adelaide

Occupation: Mapper
"If you talk at all during this lesson, you have detention. Do you understand?"
- My yr11 Economics teacher
- My yr11 Economics teacher
1
© Snarkpit.net 2001 - 2023, about us, donate, contact
Snarkpit v6.1.0 created this page in 0.0205 seconds.

Snarkpit v6.1.0 created this page in 0.0205 seconds.

