BVEStation

Author Topic: Vx, Vy, Vz  (Read 5720 times)

Offline Jarell074

  • New Recruit
  • *
  • Posts: 24
  • Gender: Male
  • BVEStation Member
    • View Profile
Vx, Vy, Vz
« on: January 06, 2015, 08:28:02 pm »
I do know that Vx means the line is horizontal, Vy is vertical and Vy is I believe front wards and backwards. Now when wiki.bvestation.com reads that negative values are left, down and backwards and positive values are right, up and forward, will it be coded in that direction or a different direction?  E.g. If I type -0.11 in a vertex, will it move 11  :meters to the left, down and backwards? :D
« Last Edit: January 06, 2015, 08:30:55 pm by Jarell074 »

Offline ipac

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 646
    • View Profile
Re: Vx, Vy, Vz
« Reply #1 on: January 06, 2015, 09:53:31 pm »
I guess I'm not sure what you are asking, but if you are saying you simply type the number -0.11 as a vertex, then it is technically invalid and won't be parsed.  If it is parsed, then -0.11 may be parsed as the x-axis value, with y and z being 0.

You need to provide it with a full set of coordinates, with a x,y and z value in order for it to be valid.

Also 0.11 is not 11 meters, it would be 0.11 meters.

BVEStation.

Offline BeeRyDavis

  • New Recruit
  • *
  • Posts: 89
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: Vx, Vy, Vz
« Reply #2 on: January 06, 2015, 11:32:08 pm »
negative integers or decimals on the x axis mean to the left, on the y axis they mean below, and on z I will take a guess and say it would be how many degrees to the left objects (and most likely only objects) are rotated to the left. And then obviously positive integers or decimals are the opposite. Hope that helps

Offline Manuel18

  • New Recruit
  • *
  • Posts: 35
  • Gender: Male
  • BVEStation Member
    • View Profile
    • OpenBVE Venezuela and High Speed Trains development
Re: Vx, Vy, Vz
« Reply #3 on: January 07, 2015, 01:21:50 pm »
I do know that Vx means the line is horizontal, Vy is vertical and Vy is I believe front wards and backwards. Now when wiki.bvestation.com reads that negative values are left, down and backwards and positive values are right, up and forward, will it be coded in that direction or a different direction?  E.g. If I type -0.11 in a vertex, will it move 11  :meters to the left, down and backwards? :D

the negatives values should be read to left - down - backward depending if is X,Y,Z

"0.11 aren't 11 meters" , 0.11 meters are like 0.41 inches

Per Example.
Caracas Metro cars from Venezuela have
3.05 mts of width , 3.52 height , 20.75 long if is "A car"

Then the code should be like this

;;TRAIN FRONT;;
[meshbuilder]
vertex ,1.525,3.5210.375
vertex ,-1.525,3.52,10.375
vertex ,1.525,0,10.375
vertex ,-1.525,0,10.375
face 0,1,3,2
loadtexture front.png
coordinates 0,1,0
coordinates 1,0,0
coordinates 2,1,1
coordinates 3,0,1

;;BACK;;
[meshbuilder]
vertex ,-1.525,3.52-10.375
vertex ,1.525,3.52,1-0.375
vertex ,-1.525,0,-10.375
vertex ,1.525,0,-10.375
face 1,0,2,3
loadtexture front.png
coordinates 0,1,0
coordinates 1,0,0
coordinates 2,1,1
coordinates 3,0,1

;;LEFT SIDE;;
[meshbuilder]
vertex ,-1.525,3.52,10.375
vertex ,-1.525,3.52,-10.375
vertex ,-1.525,0,10.375
vertex ,-1.525,0,-10.375
face 0,1,3,2
loadtexture left.png
coordinates 0,0,0
coordinates 1,1,0
coordinates 2,0,1
coordinates 3,1,1

;;Right Side;;
[meshbuilder]
vertex ,1.525,3.52,10.375
vertex ,1.525,3.52,-10.375
vertex ,1.525,0,10.375
vertex ,1.525,0,-10.375
face 1,0,2,3
loadtexture right.png
coordinates 0,0,0
coordinates 1,1,0
coordinates 2,0,1
coordinates 3,1,1

;;ROOF;;
[meshbuilder]
vertex ,1.525,3.52,10.375
vertex ,-1.525,3.52,10.375
vertex ,1.525,3.52,-10.375
vertex ,-1.525,3.52,-10.375
face 0,1,3,2
loadtexture roof.png
coordinates 0,0,0
coordinates 1,1,0
coordinates 2,0,1
coordinates 3,1,1

As may you see on the code 20.75 / 2 = 10.375 so we will have the car centered on the model Universe, same on width with 3.05 / 2 = 1.525 meters

You must to be soo lucky if the face looks on the correct side. as may you see the only what do you need to do

 if
Face =  a,b,c,d  invert it to "= b,a,d,c "
or  = "d,c,b,a"


« Last Edit: January 07, 2015, 01:24:29 pm by Manuel18 »
It doesn't matter who did it , if how he did it.
Myself :P

Offline Jarell074

  • New Recruit
  • *
  • Posts: 24
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: Vx, Vy, Vz
« Reply #4 on: January 07, 2015, 07:25:03 pm »
Thanks guys!!!!!!!!!!!!!!!!!! By the way Manuel, what does mts stands for?

Offline Manuel18

  • New Recruit
  • *
  • Posts: 35
  • Gender: Male
  • BVEStation Member
    • View Profile
    • OpenBVE Venezuela and High Speed Trains development
Re: Vx, Vy, Vz
« Reply #5 on: January 07, 2015, 10:09:26 pm »
Ops  :'(

short name of "MeTerS"

Meters - MTS - M . However u can't use mt then you will have a problem with MounTain meaning haha
It doesn't matter who did it , if how he did it.
Myself :P