Movable Sky_Camera

I’m currently working on a map that takes place on a train, and was thinking about a good way to create detailed terrain moving past (NPCs don’t like moving objects, so moving the train is out). In this thought process I went through the idea of a moving skycamera, allowing for displacements in the terrain. This is obviously impossible as the sky camera is unparentable, but it did get me wondering if there is any reason why it can’t move, and if it is actualy possible to make it move (modifying some code somewhere. I don’t know, I have no experience coding).

So my question is, is it possible?

I don’t think it’s possible at all, even if it was you’d get a seam effect when it repeats it’s course of motion. Your best bet is to use an animated texture on the surrounding displacements.

On the subject of moving trains, this video has something similar, although not perfect: https://www.youtube.com/watch?v=5lMXPRhcJ0g

The only real reason I want the moving sky_camera is so I can include displacements (as far as I know they are immobile.) Otherwise, I can easily use models and brushes.

The video basically illustrates what I’m going to do.

Rather than trying to move the camera, you could try moving the environment around the camera.

Yes, Yes, I got it. Although I’m not sure if you would necessarily get a seam. We’ll find out, sans displacements, when I get around to doing it. Someday. Later.

Why not use a model instead of displacements?

Because I can’t model.

i often wondered how 2do this and i know it is possible since i used to play on an old css zombie server where u was on a train moving thru a tunnel.

havent used hammer in a good year so im a bit rusty on things mapping related

The Stalker train in EP1 is also made in the way that the environment is moving while the train stays in place. Check the developer commentary in the train.

EDIT: here it is:

commentary\stalkertrainmodels.wav

Only that sequence doesn’t have displacements, it uses models and brushes. His question was about an open environment. You could try using Logic_measure_movement, assuming it works on sky_camera the collision issues shouldn’t be a problem, since it’s just the 3D skybox.

Nevermind. Delete post please.

Sky_cameras can’t have names, so it won’t work.

Then try adding a name, or using the classname. Always try everything you can think of before giving up on an idea.

I didn’t think of that. Thanks for the idea.

Founded in 2004, Leakfree.org became one of the first online communities dedicated to Valve’s Source engine development. It is more famously known for the formation of Black Mesa: Source under the 'Leakfree Modification Team' handle in September 2004.