Announcement

Collapse
No announcement yet.

How to make a digital speedometer in cabview

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    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, 01:35 PM.
    sigpicThe man who doesn't follow his vocation betrays himself and condemns himself to unhappiness.

    Comment


      #3
      there is nothing wrong with your english

      Comment


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



        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.

        Comment


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

          Comment


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



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




            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.
            https://railworks.com.hr/

            Comment


              #7
              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...


              Settings like on picture are in engine blueprint...


              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...
              https://railworks.com.hr/

              Comment


                #8
                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

                Comment

                Working...
                X