huin / kerbcam

Assistant camera pathing tool to assist with filming more elaborate KSP footage.
BSD 2-Clause "Simplified" License
5 stars 5 forks source link

Allow non relative camera control #7

Open supergamervictor opened 10 years ago

supergamervictor commented 10 years ago

Sometimes we need a still camera not relative to any moving ship to take maybe a rocket flying by.Yes you can use another ship to be the relative object but when its out of range it won't work anymore.Maybe increase this range or give an 'independent' camera path that is not relative to any other ships

huin commented 10 years ago

It sounds simple, and it's a common request, but it's not clear how it would work.

If the camera isn't relative to something, then what is the reference frame for it?

Put differently: the ship should "fly past" the camera. There is an implied notion of a reference frame that is at "zero" speed. The only obvious thing that is at zero speed is the planet/SOI itself. Maybe accounting for the surface rotation. This might work at low altitudes, but almost certainly at high altitudes it would get a bit derpy at the relative orbital velocities.

supergamervictor commented 10 years ago

I'm basically trying to make a rocket launch shot as it comes out of the clouds.I cant do this cause the camera needs to be still.Now since I understand that the camera needs a reference frame,is it possible to increase a the range of relative to another ship?

huin commented 10 years ago

There's no actual limit set on the distance of the relative-to thing. However, the limiting factor is how far the active vessel can be from the relative-to vessel before KSP puts the relative-to vessel on rails.

I had a quick look at how to do this, but in all honesty I have frustrating trouble understanding the relevant pieces of code in Kerbcam now.