Please or Register to create posts and topics.

Simple Camera View

Page 1 of 2Next

I'm trying to create a fixed camera view so that when a player presses a button the view changes to the cameras perspective and then resets 5 seconds later. No effects, no nothing. Think Counter-Strike 1.6 and cs_assault.

I'm going crazy over this. I've tried too many combinations now and I'm not sure what I'm doing wrong. I'm guessing you're supposed to use point_camera. I'm doing this in the HL2:EP2 engine if that matters.

Any suggestions. It's probably not that hard, I'm just stupid...

Never use Logic to solve a puzzle, he's an idiot...

Hey man, welcome back(?) :D

Yeah, indeed you need a point_camera and a func_monitor. The monitor is a brush entity with all facaes textured no draw except the one you want to show the images the camera is taking, which you need to texture with the dev/dev_tvmonitor1a texture.

In order to switch amongst different cameras (this is how you would get "different perspectives" in a given place) bare in mind that only one of them must be active at a time. Set as the first camera (name it for example "camera1") the one you need to be shown in the beginning into "Camera name" in the func_monitor properties... Now these would be the outputs you need:

- SetCamera = this establish what camera your func_monitor will show
- SetOn / SetOff = use them to switch between cameras always using some miliseconds in the delay of the outputs...

The sequesnce obviously will be:

1. Camera1 > SetOff
2. [func_monitor] > SetCamera > camera2
3. Camera2 > SetOn

And then for reseting the system:
1. Camera2 > SetOff
2. [func_monitor] > SetCamera > camera1
3. Camera1 > SetOn

I gues you get the picture, right?

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

I believe in CS 1.6 it just took your view over completely. It did not just project on a monitor. Also kinda like the security screens in Duke Nuke 'Em 3D.

You'll just use a point_viewcontrol. That's all.

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)
josepezdj wrote:
Hey man, welcome back(?) :D

Thanks, yeah it's been a while :D Your solution wasn't really what I was looking for, but thanks either way :)

TopHATTwaffle wrote:
I believe in CS 1.6 it just took your view over completely. It did not just project on a monitor. Also kinda like the security screens in Duke Nuke 'Em 3D.

You'll just use a point_viewcontrol. That's all.

Yeah, that worked. Thanks! I knew it was ridiculously easy x) I just had to uncheck Start at player and Follow player :)

Never use Logic to solve a puzzle, he's an idiot...

Ah, it may 'work' like Duke 3D, but this really reminds me of those Puzzle POV's on the classic Tomb Raider series. Pull a ridiculously oversized lever, and you're given a camera shot of a door being opened, or something to that effect.

Sometimes, you need a view like that in custom Portal 2 maps, so you can figure out what each switch does.

Word of caution, I'd put a 1.0 second delay for when you activate the switch. That's how those POV effects work so well for Lara Croft fans.

Sparky the Telus Pig status:
Fully recovered and kicking ham!
Now if only the snow and mud goes away (pigs truly hate wet mud!).
Naulziator wrote:
Ah, it may 'work' like Duke 3D, but this really reminds me of those Puzzle POV's on the classic Tomb Raider series. Pull a ridiculously oversized lever, and you're given a camera shot of a door being opened, or something to that effect.

Sometimes, you need a view like that in custom Portal 2 maps, so you can figure out what each switch does.

Word of caution, I'd put a 1.0 second delay for when you activate the switch. That's how those POV effects work so well for Lara Croft fans.

It's not for the actual gameplay mate. I'm just using it as a static camera shot, so that if you take a screenshot after pressing the button they will all be in the exact same location. I think you can get a nice effect with transitions from when the map was only a couple of brushes up until the point of release :)

Never use Logic to solve a puzzle, he's an idiot...

Oh, time lapse does sound nifty. It does give me an idea of using this technique for that Tomb Raider POV stuff, though...

Sparky the Telus Pig status:
Fully recovered and kicking ham!
Now if only the snow and mud goes away (pigs truly hate wet mud!).

You are looking for a point_viewcontrol. Check the flag "start at player's view" only if you want the camera to be at the player's position. It can also be elsewhere. Also, I'd check "freeze player".

The Aperture Alpha
A map pack coming soon. - click for more information
Image
Logic wrote:
Naulziator wrote:
Ah, it may 'work' like Duke 3D, but this really reminds me of those Puzzle POV's on the classic Tomb Raider series. Pull a ridiculously oversized lever, and you're given a camera shot of a door being opened, or something to that effect.

Sometimes, you need a view like that in custom Portal 2 maps, so you can figure out what each switch does.

Word of caution, I'd put a 1.0 second delay for when you activate the switch. That's how those POV effects work so well for Lara Croft fans.

It's not for the actual gameplay mate. I'm just using it as a static camera shot, so that if you take a screenshot after pressing the button they will all be in the exact same location. I think you can get a nice effect with transitions from when the map was only a couple of brushes up until the point of release :)

That's brilliant, you need to show us the video when you're done.

Falsi sumus crusto!
FelixGriffin wrote:
That's brilliant, you need to show us the video when you're done.

Will do! :)

Never use Logic to solve a puzzle, he's an idiot...
Page 1 of 2Next