Jump to content

Tracking a lok / exiting at location


Empfohlene Beiträge

This is complex,     When you enter the cockpit of a Lok and drive somewhere in it, the lok changes location, (x, y, and Z).  when you exit the cockpit, and go back to the 3D camera, you go back to the old location (where the Lok started).   Is there a way to change the coordinates of the 3D Camera so that upon exiting the lok, you are at the new location, and can see the lok.?

 

Dies ist komplex, Wenn Sie das Cockpit einer Lok eingeben und irgendwo darin, die lok Änderungen Lage (x, y und Z) fahren. wenn Sie das Cockpit verlassen und zurück in die 3D-Kamera gehen, gehen Sie zurück zum alten Standort (wo die Lok gestartet). Gibt es eine Möglichkeit, die Koordinaten der 3D-Kamera zu ändern, so dass die lok beim Verlassen Sie am neuen Standort sind, und die lok sehen können.?

Link zu diesem Kommentar
Auf anderen Seiten teilen

Haven't got the time to try this in the specific context, but:

You can attach any model to a loco (or other rolling stock) and pull it along together with the train. Usually used for ferrying goods around. But to my knowledge the attached item can also be a camera. Don't group the item with the train. Instead, use the chain link button in the properties section to attach the item to a loco, waggon etc.

Link zu diesem Kommentar
Auf anderen Seiten teilen

Hello Curt,
(deutsche Kurzfassung am Ende dieses Beitrags)

the cockpit camera is always directly coupled with the corresponding locomotive. Therefore, this camera changes its position automattically whenever the locomotive moves. In contrast, the "free 3D camera" can never be connected to any objekt. It only can be moved by the mouse or the arrow keys. Therefore, it is quite plain why the free 3D camera keeps its position when the cockpit camera is moved together with the corresponding locomotive.

If you want to follow the train also from outside, you must add a user-defined camera and connect it to the train to be followed. Let the camera also track the object, so that it shows always to the train and does not look to any direction elsewhere.

For some realized examples look for the layouts "Gotthard Nordrampe (in Betrieb)" and "20-Zug-Anlage (Betrieb)" within the Online-Catalog. Both layouts are already "in run" after they have been loaded.

In the first layout "Gotthard Nordrampe (in Betrieb)" you find 10 pre-defined camera views, which can be selected from the upper button row. Cameras 1, 2 and 5 are connected each to a vehicle (train car or street car), which is also selected to be followed from the camera. At camera view 0, the camera is connected to another vehicle of the train than the train car to be followed. Therefore, the camera view can better follow the train or trackline when driving through a curve.

Kamera Zugverfolgung 0.jpg

The picture above shows the train to be followed by the camera. Within the picture below the green line shows to which wagon ("Eurofima TEE 10") the camera (red square) ist connected. The blue line shows in which direction (to wagon "Eurofima TEE 4", blue point) the camera looks. You can also find the camera name ("Kamera Zugverfolgung"), the connection (when moving the mouse over the chain link) and the track object in the property window of the camera.

Kamera Zugverfolgung 1.jpg

Cameras 3 and 4 are fix positioned cameras without following: they show a fix field of view. Please ignore in view 4, that the car shuttle train scenario currently doesn't work. There is a new error, which is not yet found.

A more complex camera view scnario is realized with view 6, where the followed steam train is viewed from different perspectives depending on the geometry of the track line currently passed.

Kamera Dampfzug 0.jpg

The considering camera ("Kamera Dampfzug") ist controled by 2 further "adjustment" cameras, which are connected and followed one another.
In the picture below, the 1st adjustment camera ("Justierkamera 31", red square) is connected to the last wagon of the train ("Pullmanwagen 9"). This camera tracks the "Pullmanwagen 6" (green point) in the mid of the train along the green line. Continue the green line to find the position of the 2nd adjustment camera ("Justierkamera 32", green square). This is connected to the 1st adjustment camera "Justierkamera 31" and therefore everytime lying on the green line specified by this camera and "Pullmanwagen 6", independent of the position and curvature of the train.

Consider now "Justierkamera 32", which follows "Lok_13", the 1st steam engine (blue point) of the double heading at the front of the train. With continuation of this blue line, find the final "Kamera Dampflok" (blue square), which is connected to the "Justierkamera 32" and follows the 2nd steam engine (yellow point) along the yellow line. This is the final view 6 from the list of views within the button list above the program window. Because of this coupling mechanism of different cameras, the "Kamera Dampflok" view may vary around "straight forward" between a little bit left side and a little bit right side depnding on the curvature of the train (try it out by selecting this camera).

Kamera Dampfzug 1.jpg
Kamera Dampfzug 2.jpg

Some further constructs with a little bit complexity are the views 7, 8 and 9. Within view 7 a street car is followed from almost straight above, Within views 8 and 9 the view from "whitewater kayaking" down the Reuss river is simulated.

If you have loaded the 2nd layout "20-Zug-Anlage (Betrieb)", you can select the camera "#-Hubschrauber" (helicopter view) from the "View"-menu. The specific character of this view is, that the camera is connected to one train and follows another train. Try also the other views from this layout which can also be selected by use of the "View"-menu (when this layout was realized with an older version of 3D TrainStudio, the camera preview buttons did not yet exist).

A further variant of camera usage you can find in the video "Schneetreiben am Gotthard" (snow drift at the Gotthard region):

Here, the camera is fix positioned above the Reuss valley near Wassen and follows a train climbing up the Gotthard ramp locating the train directly above the "Säcken-Viadukt" between Amsteg and Gurtnellen, and losing the train when passing the "Ahorn-Steinkehle-Galerie" quite below Göschenen. While the train was automatically followed by the camera, the variation of the zoom levels was done "by hand".

Many greetings
BahnLand

 

Deutsche Kurzfassung:
Um einen ZUg mit einer Kamera von außen verfolgen zu können, benötigt man eine Benutzer-definierte Kamera. die entweder direkt oder über eine "Gelenk-Konstruktion" mit dem Zug verknüpft wird. Die beiden bebilderten Beispiele zeigen Situationen von der Anlage "Gotthard Nordrampe (in Betrieb)", bei der in der Button-Leiste 10 vordefinierte Kamera-Einstellungen hinterlegt sind. Die ersten beiden Bilder beschreiben die Kamera-Einstellung "0", bei der die Kamera oberhalb des letzten Wagens des TEE-Zuges positioniert und mit diesem verknüpft (grüne Linie), aber auf einen Wagen in der Zugmitte ausgerichtet ist (blaue Linie). Die Kamera verfolgt somit den Zug im "Vogelflug".

Das in den nächsten zwei Bildern dargestellte Kamera-Konstrukt beinhaltet neben der eigentlichen Verfolger-Kamera "Kamera Dampflok" zwei zusätzliche "Justier"-Kameras ("Justierkamera 31" und "Justierkamera 32"), mit deren Hilfe ein "Hebel-Mechanismus" zu Steuerung der eigentlichen Verfolgerkamera gebaut wurde: Die Justierkamera 32 (rotes Viereck) ist mit dem letztem Wagen verknüpft und an einem Wagen in Zugmitte ausgerichtet (grüne Linie), Die Justierkamera 31 ist in Fortsetzung der grünen Linie positioniert (grünes Viereck), mit der Justierkamera 32 verknüpft und auf die führende Dampflok ("Lok_13") ausgerichtet (blaue Linie).  Die eigentliche Verfolgerkamera ist in Fortsetzung der blauen Linie positioniert (blaues Viereck), mit der Justierkamera 32 verknüpft und auf die zweite Deampflok ("#Lok_14") der Doppeltraktion ausgerichtet (die Einstellungen im Eigenschaftsfenster aller Kameras sind unterhalb der Bilder aufgelistet). Durch diesen Hebelmechanismus wird bewirkt, dass sich die Verfolgerkamera "Kamera Dampflok" in Abhängigkeit von der vom Zug durchfahrenen Gleiskrümmung vor dem Zug seitlich hin und her bewegt und damit automatisch eine Variation der Kamera-Einstellung vor dem Zug entsteht.

Eine weitere Variante der Kamera-Führung ist in der Anlage "20-Zug-Anlage (Betrieb)" realisiert. Die Benutzer-definierte Kamera "#-Hubschrauber" ist an einen Zug angeheftet, verfolgt aber einen anderen Zug, wodurch im Verlauf des Anlagenbetriebs die unterschiedlichsten Kamera-Einstellungen zustande kommen.

Als letzte Kamera-Einstellung sei noch jene aus dem Video "Schneetreiben am Gotthard" erwähnt, bei der die Kamera an einem festen Punkt über dem Reusstal nahe Wassen schwebt und einen bergan fahrenden Zug das Reusstal entlang vom Säckenviadukt zwischen Amsteg und Gurtnellen (gerade hinter dem Berg nicht mehr sichtbar) bis zur Ahorn-Steinkehle-Galerie kurz vor Göschenen verfolgt.

Viele Grüße
BahnLand

 

Link zu diesem Kommentar
Auf anderen Seiten teilen

Success, (of a sort).  I found I can place a camera in a specific location, and when stopping the train there, switch to that camera instead of the 3D camera.  I can then operate the switch controls there (seen from the camera I placed there), and then return to the Locomotive camera and resume speed.

 

Erfolg, (eine Art). Ich fand ich eine Kamera in einem bestimmten Ort platzieren können, und wenn es mit dem Zug zu stoppen, schalten Sie auf dieser Kamera anstelle der 3D-Kamera. Ich kann die Schaltersteuerungen arbeiten dann dort (von der Kamera gesehen, die ich dort platziert), und kehren dann in die Lokomotive Kamera und Fortsetzen Geschwindigkeit.

Link zu diesem Kommentar
Auf anderen Seiten teilen

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...