New Feature: Multiple Interior Views

View previous topic View next topic Go down

New Feature: Multiple Interior Views

Post by leezer3 on Sat Nov 11, 2017 2:26 pm

Still a mild WIP, but I've been busy again Razz



These have been added via the train.xml format, but when complete will allow you to add a dedicated interior view for any car of the train!

Code sample:
Code:
<?xml version="1.0" encoding="utf-8"?>
<openBVE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Car>
        <Length>20.8</Length>
        <Width>2.6</Width>
        <Height>3.6</Height>
        <MotorCar>True</MotorCar>
        <Mass>80000</Mass>
        <FrontAxle>6.5</FrontAxle>
        <RearAxle>-6.5</RearAxle>
        <Object>External\D1015.animated</Object>
        <Reversed>False</Reversed>
        <FrontBogie>
            <FrontAxle>1.85</FrontAxle>
            <RearAxle>-1.85</RearAxle>
            <Object>External\bogie_f.animated</Object>
            <Reversed>False</Reversed>
        </FrontBogie>
        <RearBogie>
            <FrontAxle>1.85</FrontAxle>
            <RearAxle>-1.85</RearAxle>
            <Object>External\bogie_f.animated</Object>
            <Reversed>True</Reversed>
        </RearBogie>
        <InteriorView>CabView.animated</InteriorView>
        <DriverPosition>-0.7,2.7,-2</DriverPosition>
    </Car>
</openBVE>

Whilst I'm still testing these before pushing to a public build, will hopefully have them in a nightly by the start of next week Smile

Also, my thanks to Graymac for 'borrowing' the interior of one of his MK1s for this video- Much easier than running up an interior of my own Razz

leezer3

Posts : 996
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: New Feature: Multiple Interior Views

Post by Delsin on Sun Nov 12, 2017 8:07 pm

I love to set camera to an internal view sometimes, so this'll be handy, awesome  Very Happy
avatar
Delsin

Posts : 54
Join date : 2016-08-20

Back to top Go down

Re: New Feature: Multiple Interior Views

Post by leezer3 on Mon Nov 13, 2017 1:21 pm

Now in this build onwards:
https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2017-11-13.zip

Switching Between Views:
Change to the external camera & use the previous / next POI keys to change the camera car.
Changing back to the internal view will either use the car's interior view, or snap back to the driver's car if this is not defined.

Flaws:

  • Switching between internal views is not currently implemented.
  • This only currently supports a single internal view per car (e.g. The front car of an EMU cannot have a passenger and cab view, the passenger view must be attached to the second car)
  • Sound volumes may require tweaking, need some feedback on this one please.

leezer3

Posts : 996
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: New Feature: Multiple Interior Views

Post by Phonteus Nevolius on Mon Nov 20, 2017 11:03 pm

This is quite an exciting feature, I'm looking forward to trying it around the weekend.
avatar
Phonteus Nevolius

Posts : 10
Join date : 2017-10-05
Location : Hungary

https://phonteusnevolius.wordpress.com

Back to top Go down

Re: New Feature: Multiple Interior Views

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum