Camera portals not working! Please help!

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
matti8
Posts: 3
Joined: Sat Jan 31, 2009 2:29 am

Camera portals not working! Please help!

Post by matti8 »

Well, i should start from the beginning. I am working on a map called "Lockdown". In the map, I plan to make a "master control room". I was going to use the camera portals as surveilence cameras, even though I don't think they can see players(or can they?). when i had one of them set up, I tested it, and it didn't work.

I decided to make an isolated test. here's the layout(sorry about the image size):

Image

I have the misc_portal_camera's roll at 180. I applied the common/nodraw shader to the brush intended to display the misc_portal_camera's view, and the sfx/portal_sfx shader to the specific face it should be projected onto. I have tried having the camera target both info_notnull and target_position entities, but it still doesn't work. is it the shaders, or something else?
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Camera portals not working! Please help!

Post by obsidian »

The actual camera and the portal surface can't be in the same area otherwise the portal will "see" the camera. I'm not sure, but I think they may even need to be on different areas of the PVS.

Portals will draw players, mapmodels, items, etc.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
matti8
Posts: 3
Joined: Sat Jan 31, 2009 2:29 am

Re: Camera portals not working! Please help!

Post by matti8 »

I tried moving the camera into another room, but it still doesn't work. I'm really new to GTKRadiant, so what's the PVS?
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Camera portals not working! Please help!

Post by obsidian »

Tutorial:
http://bubba.planetquake.gamespy.com/camera1.html

PVS: Potential Visibility Set. It's a section of the map that is currently visible from the player's current position as determined by vis.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
matti8
Posts: 3
Joined: Sat Jan 31, 2009 2:29 am

Re: Camera portals not working! Please help!

Post by matti8 »

That's actually the tutorial I used in the first place. In the prefabs section of his site he has an example of the portal, but it's in .pfb format. I don't know how I would open a Printer Font Binary in GTKRadiant, but if i could, it would be a huge help.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Camera portals not working! Please help!

Post by obsidian »

.pfb is the old prefab format. Just rename it to .map and you should be able to open it.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Silicone_Milk
Posts: 2237
Joined: Sat Mar 12, 2005 10:49 pm

Re: Camera portals not working! Please help!

Post by Silicone_Milk »

It looks like (cant really tell from the shot) that the entities are connected in backwards order. Try reversing the way they're connected
Post Reply