making an object invisible mid-game
Post Reply
Quote
Re: making an object invisible mid-game
Posted by greensinge on Tue Jan 17th at 12:10am 2006


Hi again everybody.

Basically, im working on making a stargate, like the one seen in the movie and the tv show. I have the portal and the teleporter working, and the water effect for the portal itself is working neatly, it all looks pretty sweet. But what i want to be able to do is have a button that makes the watery portal appear and dissapear sight.

(If you havent seen it, this is what it's supposed to look like:)

When it's off, that watery portal in the middle of the machine isnt visible, and you can see straight through to the other side. Below is my own version of the portal above:

Basically, the button will toggle the teleport function in the portal on or off, but when the teleport comes on, the water brush needs to appear, and when it goes off, the brush needs to disapear.

Seems like it should be simple enough, but i havent yet come across anything that makes things turn invisible yet. Any suggestions for me?

Cheers lads.

-Update-//

I've managed to cheat a little and get it working how i wanted... kind of... but i would still like this post to be answered in the way i asked, thanks.

But in the mean time, check out this other problem iv posted, it's related to the same map im making but its a different problem.

http://www.snarkpit.net/forums.php?forum=6&topic=6391&0

Cheers!




...and he saw that it was GOOOOOD!



Quote
Re: making an object invisible mid-game
Posted by Orpheus on Tue Jan 17th at 12:32am 2006


I am not sure of the exact nature of water but I am betting that water cannot be rendered invisible or it would lose its liquid values.

I am betting you will have to use a texture thats not water, but shimmers like it set to func_illusion, or the HL2 equivalent.

There are regular textures that have an "off" and "on" type and might be edited to this function you want but I am not at all sure you will get it using water.

Sorry.

You might get the "no draw" shimmer effect to work though.





The best things in life, aren't things.



Quote
Re: making an object invisible mid-game
Posted by fishy on Tue Jan 17th at 12:46am 2006


you could have a look at the env_toggletexture entity. i've not used it, so i don't know if it would be any good, but if it does anything like its name suggests, then you might be able to use it to toggle the texture of your water between visible and invisible. sort of like the old env_render.


i eat paint



Quote
Re: making an object invisible mid-game
Posted by greensinge on Tue Jan 17th at 1:49am 2006


i cant find anything to make this work, so i have a new idea that i need suggestions for. Are there any textures similar to the nodraw or clip textures, where anything within a brush of that particular texture cannot be seen?

For example, if i was to make a large block brush with this "hide" texture that im quite possibly just dreaming up, and then i put another brush inside it with a normal texture, it would hide the brush inside it, but you could see right through the hide brush to the walls on the other side etc.

I hope somebody gets what i mean here....




...and he saw that it was GOOOOOD!



Quote
Re: making an object invisible mid-game
Posted by Crono on Tue Jan 17th at 3:52am 2006


There is an invisible texture called invisible. That would be a better choice, since something like nodraw doesn't render the face it's applied to.

The invisible texture lets nothing through (as far as I can remember).



Blame it on Microsoft, God does.



Quote
Re: making an object invisible mid-game
Posted by fishy on Tue Jan 17th at 5:03am 2006


? quoting greensinge
I hope somebody gets what i mean here....

i know what you mean, but no, there's no magic cloak.




i eat paint



Quote
Re: making an object invisible mid-game
Posted by wil5on on Tue Jan 17th at 8:37am 2006


I beleive func_brushes can be turned on and off.


"If you talk at all during this lesson, you have detention. Do you understand?"
- My yr11 Economics teacher




Post Reply