Moving View

Tutorial collection, comprehensive listings on main site.

Moving View

Postby Tutorial on Fri Jun 03, 2005 2:06 pm

category
General Half-Life 2/Effects

description
Move the players view, works great for cinematic introductions.

keywords
moving, view, point_viewcontrol, camera.

What were going to do here is have a moving point_viewcontrol. We’re going to have it track Barney where ever he walks. What this is good for is having a movie like cut scene or making your own in game machinima. This is really easy so lets get started.

Image

The first thing your going to need is, you guessed it, is something to track. In this case we are going to use Barney. So put in a generic_actor entity and make it the Barney model and give it the name of Barney. Next you are going to need your point_viewcontrol entity. So put that in your level (in my example map its right in front of Barney). Here is the list of keyvalues to change.

Name: point_viewcontrol
Pitch Yaw Roll: click on the Point At button and point it at barney's eyes
Entity to Look At: barney
Target Attachment Name: eyes
Path Corner: path_track01

Under the Flags tag check only Freeze Player and Infinite Hold Time.

Now that we have our point_viewcontrol ready we need to get it to move. To do this we need a path_track entity. When you put this in your level it needs to be in the same space that your point_viewcontrol is. This is because when you trigger the point_viewcontrol and want it to start moving you’re going to have the point_viewcontrol playing catch up to the path_track. It’s easier to have the path_track and the point_viewcontrol right with each other so you how its going to move. Here is the list of keyvalues to change.

Name: path_track01
Next Stop Target: path_track02
New Train Speed: This is up to you. Example map is 90

I should point out that you can also use path_corner in place of a path_track or both. The nice thing about using a path_corner is that it has a Wait Here value so you could pause your point_viewcontrol.

And that’s about it. In the example map I have it set up to start as soon as you walk into the trigger. Once triggered, your view will switch to the point_viewcontrol. It and Barney will start moving and the point_viewcontrol will track barney.

As you can see there are endless ways to use this. The one thing that I haven't got working yet is how to control the speed that the point_viewcontrol looks at what you have it set to look at. It seems to have just one speed. For example, if you set the point_viewcontrol in one spot and have Barney walk right pass it, it will not speed up to keep tracking right on barney's eyes. It will move at its set speed and sort of play catch up. If anyone knows how to fix it please let me know.

Example Map

To have it exit the viewcontrol just add an output from whatever you want (such as the last path_track) to disable the viewcontrol. Once disabled, the player will be in control again.

booker
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby Sauce on Mon Dec 05, 2005 7:49 am

The folks over at Rooster Teeth Productions will just HAVE to make some HL2 machinima now... :-D
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby verballydecapitating on Mon Dec 05, 2005 12:20 pm

Well for machinima there is a seperate mod just for that, and you can have a moving camera in demos.
Image
verballydecapitating
1337 p0st3r
1337 p0st3r
 
Joined: Tue Apr 26, 2005 1:09 pm
Location: New Zealand

Postby Nick99 on Mon Apr 17, 2006 9:31 pm

Nice. P.S. The link is broken :D
Nick99
Member
Member
 
Joined: Sun Jan 08, 2006 1:45 am

Postby Nick99 on Mon Apr 17, 2006 9:38 pm

Also, it doesn't follow the woman(I usede a woman instead of barney)
Nick99
Member
Member
 
Joined: Sun Jan 08, 2006 1:45 am

Postby Yzzelliot on Sun May 21, 2006 5:14 pm

how if i want to change the speed movement of the view control?

hope anyone tell me the answer
Yzzelliot
Member
Member
 
Joined: Fri May 12, 2006 4:20 pm

Postby Sander on Fri Jul 07, 2006 11:06 am

tut_point_viewcontrol.zip

Does anyone still have that example map on their disk? The link is dead for some time already and I really want to take a look at it.
Sander
Member
Member
 
Joined: Tue Apr 26, 2005 7:48 am
Location: The Netherlands

Postby Ale on Fri Jul 07, 2006 3:33 pm

Sander wrote:tut_point_viewcontrol.zip

Does anyone still have that example map on their disk? The link is dead for some time already and I really want to take a look at it.


Why dont you just follow the tutorial and learn ? :wink:
Image
User avatar
Ale
May Contain Skills
May Contain Skills
 
Joined: Fri Jul 29, 2005 9:03 am
Location: Earth

Postby Sander on Fri Jul 07, 2006 3:35 pm

DreAz wrote:
Sander wrote:tut_point_viewcontrol.zip

Does anyone still have that example map on their disk? The link is dead for some time already and I really want to take a look at it.


Why dont you just follow the tutorial and learn ? :wink:


Hehe, I already did the tutorial.. However, this tutorial does not cover everything. But I got it to work so far. :)

To see the zip-file would be nice though.
Sander
Member
Member
 
Joined: Tue Apr 26, 2005 7:48 am
Location: The Netherlands

Postby bobthehobo on Wed Jul 12, 2006 2:17 am

Example map not found. :(

Oh look, somebody else looking for it too.
Image
Do the internet a favor: proof read your posts.
XBL: Doctor Fifer
User avatar
bobthehobo
Pheropod
Pheropod
 
Joined: Thu Sep 08, 2005 9:27 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users