Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Animating 3D models with dynamic data coming from a data stream or database

Discussion in 'Animation' started by RCodelove, Aug 9, 2023.

?

Animation 3D models with dynamic data coming from a data stream or database

  1. Possible

    2 vote(s)
    100.0%
  2. Not Possible

    0 vote(s)
    0.0%
  1. RCodelove

    RCodelove

    Joined:
    Aug 9, 2023
    Posts:
    22
    We want to animate a 3D model according to the data set coming real time as well as coming from the database, so is it possible in and what could be best step or procedure to do that in unity as we new to unity.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,283
    its possible, but need more info to be able to help.

    things like,
    - what kind of 3d model
    - what is the dynamic data and where its coming from and what format it is now
    - what target platform
    - and any other details

    if its commercial project and you are in hurry, consider hiring someone
    (since it most likely requires heavy programming, if its custom data)
    https://forum.unity.com/forums/commercial-job-offering.49/
     
  3. RCodelove

    RCodelove

    Joined:
    Aug 9, 2023
    Posts:
    22
    You can imagine it like a cricketer is hitting a ball, so we have to move the bat on the basis of moving cordinates of bat which is somewhere saved in the database or may be real-time,
    Scene is like we have a cricket ground and a player is standing on the pitch and a ball is coming towards the player and the player hit the ball and the bat move accordingly. Our main motto is to move the cricket bat according to the accerelation recorded. I hope you can image that scene.
    Targeted platform would be both web and mobile apps.
     
    Last edited: Aug 10, 2023
  4. RCodelove

    RCodelove

    Joined:
    Aug 9, 2023
    Posts:
    22
    You can see this bat, so we want to move the bat,
    Whole scene is cricket stadium, a cricketer is hitting the bat, the bat can move in any direction that is based on the saved cordinates of acceleration and gyroscopic data
     

    Attached Files:

  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,283
    yeah, that sounds like a lot of work.

    if you want to try doing it yourself as new user (which might be difficult),
    try to split all the work into very small steps..(then you can try googling & asking those specific questions separately).

    starting from basics (if you haven't done anything yet, and check unity learn Editor basics tutorial too)
    - how to import 3d model into unity
    - how to move gameobject with script
    and so on.. then getting into features
    - how to load CSV data
    - how to load data from server
    and much more
     
    RCodelove likes this.
  6. RCodelove

    RCodelove

    Joined:
    Aug 9, 2023
    Posts:
    22
    Hello mgear,

    One thing I want to add in this Stadium and everything in model in still only player is hitting the bat,
    and cricket bat move accordingly, rest is still and we are going to use into our mobile app and web app too.
    So what could be the best possible way to do this.
     
  7. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,283
    How new you are to unity?
    Know how to use editor basics (what is scene hierarchy, prefab, import models, textures, setup scenes?)
    Know c# programming?

    If not, start with unity Learn or youtube tutorials.
    (in youtube can search how to import models into unity for example or any other topic that you need to know).

    then if get stuck, can ask in the forums.

    Or, hire someone to instruct/support or to do the whole project.
    check https://www.upwork.com or https://www.fiverr.com/ sites also, could find affordable help.
     
  8. RCodelove

    RCodelove

    Joined:
    Aug 9, 2023
    Posts:
    22
    Started learning unity for a week ago, I created a jump game and learned about modelling, I am an experienced programmer and but new to unity. So by creating this simple I got to know the basics how it's work but still have to explore lots of things and core thing is to play bat like a cricketer do. After some explorations we may seek some unity devs to develop that model we want
     
    mgear likes this.
  9. RCodelove

    RCodelove

    Joined:
    Aug 9, 2023
    Posts:
    22
    Hello mgear,
    I successfully move the object with sensor data coming from the serial port but still the movement is not exactly what we need, I think there would calculation of the plain like width or area and it's measurements, so could please help in this, or can you share some article or code so we can do this. I am getting my sensor data in unity and 3d models moves, but that's not like the way bat swing. It's just going here and there.