Search Unity

animation on real time

Discussion in 'Animation' started by nasviasi, May 15, 2018.

  1. nasviasi

    nasviasi

    Joined:
    May 15, 2018
    Posts:
    3
    I need make animation under control of list of parametrs from TCP/IP or text file by doing refreshing text file.
    I am first time on Unity and I ask possible that I wrote this in Unity at all?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    yes, shouldn't be too difficult.
    (but really better do some tutorials first, it will help you get things done faster, https://unity3d.com/learn/tutorials )

    reading and parsing text file uses normal c# stuff, same for tcp/udp
    https://www.dotnetperls.com/file
    https://forum.unity.com/threads/c-tcp-ip-socket-how-to-receive-from-server.227259/#post-1513674

    there are also many ready made networking libraries to help,
    see few listed here https://forum.unity.com/threads/ben...dgren-miniudp-hazel-photon-and-others.512507/
     
  3. nasviasi

    nasviasi

    Joined:
    May 15, 2018
    Posts:
    3
    Thanks!
    Can I make in Unity that things:
    1. There in Unity object like Cube.position (... ... ...)
    Cube.color (... ... ...)
    Cube.rotation. (... ... ...) etc
    ...
    ...
    2. We are seen Cube on screen with (... ... ...)
    3. I put parametrs (... ... ... ) etc into Unity from text file (text file has generated from Python ...somthing else)
    4. Refresh parametrs (... ... ...)
    5. Cube on screen changes its position, color, rotation ... etc
    6. I am refreshing text fle with (... ... ...) by loop from Python by rewrite text file
    7. Cube on screen (magic!!!) moving ????
     
    Last edited: May 19, 2018
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    yes that would work.

    with python its quite simple to send commands with tcp connection too,
    search for python tcp echo server, and how to connect/listen to tcp server with unity.
     
  5. nasviasi

    nasviasi

    Joined:
    May 15, 2018
    Posts:
    3
    Thanks!!!
    Can Unity make autonomous file (like *.exe, *.wrl ... ... *.html (?)) what can work on a computer without personally Unity, making animation on full screen (under external control I was ask early)?
     
  6. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    yes, for windows can publish as an .exe or webgl (html)
    *but webgl version has limitations to filesystem, threading etc.

    for networking, also websocket works, there are easy websocket plugins to unity and for python. (to send messages)