Results 1 to 8 of 8

Thread: How to make a digital speedometer in cabview

  1. #1

    Default How to make a digital speedometer in cabview

    Hi,guys
    I am making a EMU' cabview.I saw the ACELA and many other locos have a digital speedometer display in Cabview. I have opened the acela engine .bin file to see the controls .It's a bit complicate, I just wonder know how to build models of digital speedometer and their animations ?I think I should build each number as individual objects,but how to position them,and set the animation?Could anyone give me some tips? Or is there a guide ?

  2. #2
    Join Date
    Jul 2007
    Location
    .
    Posts
    12

    Default

    Hello, I will try to explain this with my bad english. First, you need 10 nodes for each position, 10 nodes (one polygone with the number) for units, 10 nodes for tens and 2 or 3 nodes ofr hundreds (if you train has a max speed of 200 mph, you will only need 3 nodes in hundreds position, the 0, 1 and 2)

    Of course, each node of the each position go in the same position, just crete one poly and clone it 9 times, then you can change the material ID for each node so you will have a different number textured for all the nodes.

    This system doesn't need any animation, in the engine blueprint you need create one custom control for each position, you can call them like UnitsControl, TensControl, and HundredControl, for each new control you need create elements interfaces of the kind "Interior Visibility Object" and set them according the name of the nodes and the number expected. For example, for the node called unit_01 you need put the name of the node in the Transform name field of the interface and give it the value 1. In summary, you will want that the control show only the node which match with the value of the control. And hide the rest of nodes, of course. After it, you need a routine in the script to extract the values for each control from the value of the speedometer.

    You can find that routine in the script of the Acela, if you can not find it or it is too hard to understand, let me know and I will write the routine here. I did the Acela and I was the first developer who achieved a digital speedometer for the Class 67 DLC, a few years ago. So i am happy if I can help you with him. Please sorry for my bad english.

    best regards.

    Ricardo Reppo Rivera.
    Last edited by Repo; 11-06-2012 at 12:35 PM.
    The man who doesn't follow his vocation betrays himself and condemns himself to unhappiness.

  3. #3
    Join Date
    Apr 2006
    Location
    Chicago, IL
    Posts
    661

    Default

    there is nothing wrong with your english

  4. #4

    Default

    Hi, Ricardo,
    Big thanks to you .I have made it work in game.
    Best regards!



    Quote Originally Posted by Repo View Post
    Hello, I will try to explain this with my bad english. First, you need 10 nodes for each position, 10 nodes (one polygone with the number) for units, 10 nodes for tens and 2 or 3 nodes ofr hundreds (if you train has a max speed of 200 mph, you will only need 3 nodes in hundreds position, the 0, 1 and 2)

    Of course, each node of the each position go in the same position, just crete one poly and clone it 9 times, then you can change the material ID for each node so you will have a different number textured for all the nodes.

    This system doesn't need any animation, in the engine blueprint you need create one custom control for each position, you can call them like UnitsControl, TensControl, and HundredControl, for each new control you need create elements interfaces of the kind "Interior Visibility Object" and set them according the name of the nodes and the number expected. For example, for the node called unit_01 you need put the name of the node in the Transform name field of the interface and give it the value 1. In summary, you will want that the control show only the node which match with the value of the control. And hide the rest of nodes, of course. After it, you need a routine in the script to extract the values for each control from the value of the speedometer.

    You can find that routine in the script of the Acela, if you can not find it or it is too hard to understand, let me know and I will write the routine here. I did the Acela and I was the first developer who achieved a digital speedometer for the Class 67 DLC, a few years ago. So i am happy if I can help you with him. Please sorry for my bad english.

    best regards.

    Ricardo Reppo Rivera.

  5. #5
    Join Date
    Jul 2007
    Location
    .
    Posts
    12

    Default

    Quote Originally Posted by ddr2009 View Post
    Hi, Ricardo,
    Big thanks to you .I have made it work in game.
    Best regards!
    My pleasure.
    The man who doesn't follow his vocation betrays himself and condemns himself to unhappiness.

  6. #6
    Join Date
    Jun 2008
    Location
    Godinjak (Croatia)
    Posts
    8

    Default

    I need help about making digital speedometer. Here is video with analog instruments that are not working for now.

    https://www.youtube.com/watch?v=MH_rfmkeCIM

    Here are some pictures from my blueprints and blender...

    http://imageshack.us/a/img546/4926/blenderspd0.png
    http://imageshack.us/a/img839/542/digitalbp.png

    I don't know how to consolidate these 2 things (+ LUA) and I don't know how important are these names that are used in blueprints and blender model.

    Any help is appreciated.

  7. #7
    Join Date
    Jun 2008
    Location
    Godinjak (Croatia)
    Posts
    8

    Default

    I solved that. For those who may be going through the same thing I am here is the solution.

    So, reffering to text that was written by Reppo...

    I have made next:

    All parts like on picture are in blender...
    http://imageshack.us/a/img547/6065/digitalspeedobl.png

    Settings like on picture are in engine blueprint...
    http://imageshack.us/a/img59/2340/digitalspeedobp.png

    Very important: Name of parts in blender that make units, tens and hundreds has to be unique and has to be called same like that in 'Transform name' in engine blueprint.

    The result is here...

  8. #8

    Default

    Hi guys. Can someone please help me with an example of what has to be put in the lua script in order for the digital speedometer and a digital clock to work? Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •