Can Anybody Tell Me How to add PASSENGER VIEWS?

Discussion of rolling-stock creation & re-painting.

Re: Can Anybody Tell Me How to add PASSENGER VIEWS?

Unread postby Chacal » Mon Jul 22, 2013 12:06 am

A passenger view is like a cab view.
It is a camera (defined as x,y,z position, x,y,z angle and x,y,z freedom of movement) pointed at a 3D model.
If the car has a visible interior (most passenger cars have one), even the low-res one that is part of the car model, you're good to go. Otherwise you'll have to build your own 3D model, good luck with that.

The camera part is easy, it can be copied from an existing blueprint, and then adjusted manually.
Open the blueprint for a passenger car that you know has a passenger view. Look for a "CarriageInteriorInterface" node. It looks like this:

Code: Select all
               <CarriageInteriorInterface>
                  <cControlContainerBlueprint-cInteriorInterface>
                     [b]<InteriorGeometryID d:type="cDeltaString">RSC\F40PHPack01\RailVehicles\Passenger\Amtrak phII\Coach\[00]Coach_01_Interior</InteriorGeometryID>[/b]
                     <NumberOfCabs d:type="cDeltaString">eSingleCab</NumberOfCabs>
                     <InteriorCamera>
                        <iBlueprintLibrary-cAbsoluteBlueprintID>
                           <BlueprintSetID>
                              <iBlueprintLibrary-cBlueprintSetID>
                                 <Provider d:type="cDeltaString">RSC</Provider>
                                 <Product d:type="cDeltaString">F40PHPack01</Product>
                              </iBlueprintLibrary-cBlueprintSetID>
                           </BlueprintSetID>
                           <BlueprintID d:type="cDeltaString">[b]RailVehicles\Passenger\Amtrak phII\Coach\SL CoachCab.xml[/b]</BlueprintID>
                        </iBlueprintLibrary-cAbsoluteBlueprintID>
                     </InteriorCamera>
                     <CabOcclusion>
                        <iBlueprintLibrary-cAbsoluteBlueprintID>
                           <BlueprintSetID>
                              <iBlueprintLibrary-cBlueprintSetID>
                                 <Provider d:type="cDeltaString"></Provider>
                                 <Product d:type="cDeltaString"></Product>
                              </iBlueprintLibrary-cBlueprintSetID>
                           </BlueprintSetID>
                           <BlueprintID d:type="cDeltaString"></BlueprintID>
                        </iBlueprintLibrary-cAbsoluteBlueprintID>
                     </CabOcclusion>
                  </cControlContainerBlueprint-cInteriorInterface>
               </CarriageInteriorInterface>


This node informs you that the 3D model for the interior view is a file named Coach_01_Interior.GeoPcDx.

Code: Select all
<InteriorGeometryID d:type="cDeltaString">RSC\F40PHPack01\RailVehicles\Passenger\Amtrak phII\Coach\[00]Coach_01_Interior</InteriorGeometryID>

If you don't have a separate 3D model for your car, put the name of the GeoPcDx file for the car model itself here.

Next, a "BlueprintID" line informs you that the passenger view cameras are defined in another blueprint named "CoachCab.xml" or more probably "CoachCab.bin". This blueprint defines the two interior cameras' position, direction and movement. These can be edited manually following this article on the RWA web site. Or you can buy Claudio's camera utility mentioned in the article.

So, to answer the original question, you need to:
- copy a populated CarriageInteriorInterface node to your car's blueprint;
- copy the relevant camera blueprint to the same folder;
- modify the CarriageInteriorInterface node for the name of your .GeoPcDx file;
- modify the camera blueprint to achieve the desired camera configuration.

Hope this helps. Using this technique, I added a passenger view to the Britkits Russell snowplow.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6611
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Can Anybody Tell Me How to add PASSENGER VIEWS?

Unread postby Chacal » Tue Nov 12, 2013 1:10 am

I just noticed this: the camera blueprint MUST be compiled into a .bin file, for some reason the game won't read a .xml file for this one.
So I recommend editing the camera blueprint directly in RW_Tools.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6611
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada


Return to Rolling-Stock Design

Who is online

Users browsing this forum: No registered users and 2 guests