Height command in OpenBVE

View previous topic View next topic Go down

Height command in OpenBVE

Post by Locomotion on Tue Apr 11, 2017 3:19 pm

Hi all,

I'm struggling a bit, trying to understand how the height command works in openBVE. From the Dennis Lance tutorials it seemed to make sense, until I tried getting it to work on my own route!

My own route is very simple, largely at ground level, with the exception of a rail underpass about 2500m into my route (the rail needs to pass under a ground level road). So some pitch commands set up the descent, and the ground "steps" down, presumably because the default height = 0 is used at each 25m increment along the route. I really want the ground to be lower at this point, but if I put a 'height' command into the file at around 2500m, (say of 5m height), it sets the entire route 5m up. I expected it to only affect the ground level from the point of insertion. What have I missed?

Locomotion

Posts : 12
Join date : 2015-05-28

Back to top Go down

Re: Height command in OpenBVE

Post by Delsin on Tue Apr 11, 2017 5:22 pm

I guess it sets absolute height of the staring point above sea level, since BVE does atmosphere pressure calculations and probably something else.
avatar
Delsin

Posts : 38
Join date : 2016-08-20

Back to top Go down

Re: Height command in OpenBVE

Post by MattD6R on Tue Apr 11, 2017 11:39 pm

The .Height command sets the height above the ground of the running rail and all objects but not the ground. In the tutorial it does say in Tutorial 3-4:



To overcome this, we need to raise the tracks off the ground, using the height command;

.HEIGHT X,

Where X is the height of the running rail from the BVE datum height (0metres).

It is vital to remember that the height of all objects except grounds are referenced to the running rail, so when we alter the height of the running rail using the height command, everything else will move except the ground.
 

The official documentation says:
This command defines the height of the player's rail above the ground at the point of insertion. It influences the placement of the ground objects defined via Structure.Ground and changed via Track.Ground. The height is interpolated between adjacent Track.Height commands.

Hope that helps.

MattD6R

Posts : 234
Join date : 2013-06-16
Location : Brisbane, Australia

Back to top Go down

Re: Height command in OpenBVE

Post by Locomotion on Wed Apr 12, 2017 1:09 am

Thanks guys, it was the "interpolated" bit I had missed. my first height command was at the beginning of the route, then the next at 2600m, so what I thought looked like a uniform 5m height was in fact a gentle (stepped) slope. Adding another height command has brought the ground back under control! Thanks again.

Locomotion

Posts : 12
Join date : 2015-05-28

Back to top Go down

Re: Height command in OpenBVE

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