Page 1 of 1

Teleporter camera

Posted: Sat Nov 19, 2011 5:12 am
by RedSnappa
I have a teleporter with a nice wormhole texture that has an alphaGen portal function, and it is all working nicely. I have a misc_portal_surface entity on it that is properly connected to a misc_portal_camera, but this view of the portal destination isn't showing up on the surface. How do I put this together?

Re: Teleporter camera

Posted: Sat Nov 19, 2011 6:29 am
by Delirium

Re: Teleporter camera

Posted: Sat Nov 19, 2011 2:10 pm
by RedSnappa
Looks like I am just missing the nodraw/portal_sfx brush. Could I make portal/sfx part of the shader for the wormhole texture that has an alphaGen portal function, or do I have to make another brush?

EDIT: This isn't working. I get the notexture display ingame, and putting sfx/portal_sfx on a brush face gives me Shader Not Found in Radiant.

Re: Teleporter camera

Posted: Sun Nov 20, 2011 7:46 pm
by RedSnappa
I wonder what will happen if I put common/portal into my shader? I'll try this and report back.

EDIT: This doesn't work either. Help...

Re: Teleporter camera

Posted: Mon Nov 21, 2011 7:01 am
by johnnyenglish
Did you try this?

Wiki Adding a camera

Re: Teleporter camera

Posted: Mon Nov 21, 2011 1:24 pm
by RedSnappa
Ripper showed me a map that had a working camera, ut4_spectro. The map itself looks like a total noob product, but it showed me how to do something I couldn't do before.

Re: Teleporter camera

Posted: Mon Nov 21, 2011 1:25 pm
by theRipper
the map is a fun map. not made to be pretty. and its by a friend of mine ;)

Re: Teleporter camera

Posted: Mon Nov 21, 2011 5:36 pm
by RedSnappa
I found what I was missing. In the shader for the surface you wish to display the camera view, you must have a line that says either "portal" or "sort portal".

Re: Teleporter camera

Posted: Tue Nov 22, 2011 2:05 am
by RedSnappa
Well, I made it work. Now it is just a matter of aiming these cameras. I'm getting a lot of upside-down and backwards views. I find that placing two portals vertically above/below each other tends to cause problems as well, in terms of both displaying the view from one camera when they should display two different views.

Re: Teleporter camera

Posted: Tue Nov 29, 2011 4:38 pm
by RedSnappa
I solved the problem of portals appearing through portals. You have to put the alphaGen portal texture on a different brush from the portal view texture to keep this from happening.

What I still can't figure out is how to keep my cameras from being rolled over 180 degrees and showing an upside down view of the portal destination. Setting a target_position for the camera and setting the angles key have both failed.