Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by bluesyhfang · Apr 07, 2014 at 04:29 PM · real-timedata visualization

Real-time data visualization in Unity. Possible?

Hi there,

I am new to Unity and I am looking for a solution to visualize data (XYZ coordinates) in Unity in runtime.

Basically, we have a remote sensing network that can track the location of objects and out put the data. I want to visualize this data in Unity in real-time. Its like reconstructing the movement of the tracked objects in Unity simultaneously.

Does anyone know is Unity capable to do something like this? or any experience in similar process?

Many thanks in advance.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ffxz7ff · Apr 08, 2014 at 09:42 PM 0
Share

Transfer the location data using network sockets to a program that displays them using the Unity engine.

avatar image bheydari · Jul 04, 2016 at 09:10 AM 0
Share

Hi, what was result of your try on unity? did you find a way to visualize timed positions wrote in file with unity ?

avatar image rorybowcott · May 07, 2019 at 02:41 PM 0
Share

Hi,

How did you get on with using an external data source to drive the positions of the GameObjects?

I have a text file full of X,Y,Z coordinates that i'd like to read and change the position of a GameObject. Did you manage to achieve such a thing.

Thanks.

avatar image Bonfire-Boy rorybowcott · May 07, 2019 at 04:10 PM 1
Share

@rorybowcott On the face of it, that's not a difficult thing to do at all. But it does have a few elements to it, and your situation is slightly different (the networking aspect of this question is I$$anonymous$$O the most complex part of it, but you're working with a text file).

So, I would recommend posting a new question describing your situation in more detail, together with what you've tried and which aspect(s) of it you're having trouble with (eg reading the data from the file, setting the GameObject's positions, etc).

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Sisso · Apr 07, 2014 at 05:22 PM

Think unity3d as a library. You can do whatever you want and integrate with any library. With Unity Free you could not directly access native (compiled dll for a driver, for example), but with c# you can do whatever you want, like use rest or sockets to connect in a server with the realtime data.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bluesyhfang · Apr 08, 2014 at 06:48 PM 0
Share

Thank you Sisso for the prompt reply.

I will be using Unity Pro for my project. Could you please explain a little bit more about accessing native or using rest or sockets? Have you even seen any examples similar to my application?

Excuse me if my questions sound silly. I am really new to this area.

Thank you :)

avatar image Sisso · Apr 08, 2014 at 09:09 PM 0
Share

The problem is that it really depends how do you will provide your data, once you have your data, it simple fact of update your scene.

Some crazy examples and see if I hit what you need:

a) By native plugin

If you alread have a driver (like a 3d position hardware), you can integrate its dll using unit3d native plugin. http://docs.unity3d.com/Documentation/$$anonymous$$anual/Plugins.html

 [DllImport ("__Internal")]
 private static extern float[] GetTrackerPosition();
 
 void Update() {
    var pos = GetTrackerPosition();
    transform.position = new Vector3(pos[0], pos[1], pos[2]);
 }

b) local file

You could have some script that collect its data and write into a file.

 import System.IO;
 
 void Update() {
   using (StreamReader r = new StreamReader("/tmp/lastPosition")) {
      var text = r.ReadToEnd();
      var pos = text.Split("\t");
      transform.position = new Vector3(float.parse(pos[0]), float.parse(pos[1]), float.parse(pos[2]));
   }
 }

c) Request into a web

https://docs.unity3d.com/Documentation/ScriptReference/WWW.html

d) Sockets

http://stackoverflow.com/questions/17719541/writing-and-reading-using-socket-in-unity-3d

And it could go on....

avatar image
0

Answer by gaminggal39 · Jan 13 at 11:52 AM

Please see this tutorial : https://www.youtube.com/watch?v=QrsBwc6HesU Easy method to create 3D graph

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

28 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is Unity3D capable of handling a MMo 3 Answers

desktop and mobile pairing 0 Answers

Variable not changing on real-time problem 2 Answers

multi Coloured Audio Waveform? 1 Answer

How do I make one object appear when I mouse over another object? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges