Page 1 of 3

Glass help

Posted: Tue Sep 27, 2011 11:49 pm
by RedSnappa
A few questions:
1. Is it possible to have glass that acts like a mirror at short distance (like ~100 units in Radiant) but like transparent glass at long distance (like ~500-1000 units)? If so, how would I do it?
2. If not, what is the best way to set up a shader for a transparent glass floor (that is not breakable)?

Re: Glass help

Posted: Wed Sep 28, 2011 12:06 am
by Delirium
I posted a shader in the other thread. Use it...

Re: Glass help

Posted: Wed Sep 28, 2011 12:49 am
by RedSnappa
So the "close mirror, far glass" thing can't be done?

Re: Glass help

Posted: Wed Sep 28, 2011 1:17 am
by Delirium
no

Re: Glass help

Posted: Wed Sep 28, 2011 2:44 am
by RedSnappa
I tried the simple water shader you posted, minus the surfaceparm water and surfaceparm nonsolid. It isn't working. I took out all the tcMods, since my texture shouldn't be moving at all. Will that make it stop working?

Re: Glass help

Posted: Wed Sep 28, 2011 2:49 am
by Delirium
you should try follow this tutorial http://www.gotdelirium.com/site/articles_8.html

If you follow that it should work. theres more info there.

Re: Glass help

Posted: Wed Sep 28, 2011 2:57 am
by RedSnappa
I'm not doing liquids right now. I was trying to adapt what you posted for liquids to work for glass. It didn't work, and adapting what I came up with for liquids also didn't work. I also tried using a glass shader from another map I made, and it didn't work. So I appear to be lost.

Re: Glass help

Posted: Wed Sep 28, 2011 3:01 am
by Delirium
What I posted was in regards to your glass brush not your water brush

Re: Glass help

Posted: Wed Sep 28, 2011 3:26 am
by RedSnappa
I still don't get it. What does this have to do with glass? You mention glass one time at the top of the article and then it is all about liquids. My glass is solid but transparent so my caulk must be as well?

That said, I think I have a use for that slime.

Re: Glass help

Posted: Wed Sep 28, 2011 8:03 am
by bludshot
I have an idea and I have no idea if it would work or not. In Q3A there are those portal teleporters that you can see right through to the other side, but when you walk further from them they fog over. What if you put shiny glass in front of one of those teleporters, and pointed the teleporter (portal view) right back out from the teleporter (and of course the shiny glass would be unbreakable and prevent people from walking into the teleporter (in fact, I imagine that an entity provides the actual teleportation in q3a, and the surface of the visible 'teleporter' is just some kind of portal.

This could give the type of effect you are looking for, unless urt can't have teleporter (portals) like that?