x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Realtime file reading while ingame

Hello, I am completely new to UE. I would love to use this engine for my project. I am developing my own positional tracking system for Oculus. Therefor there will be an outside application doing all calculations and determining cameras (head) position. I would love to ask how and if it is possible to make some tunnel to parse XYZ positions realtime (from my application) into the game while ingame (probably trough reading some text file)? Thank you!!

Product Version: UE 4.8
Tags:
more ▼

asked Jun 16 '15 at 03:56 PM in Using UE4

avatar image

Kubiak54
1 1 2 1

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first
more ▼

answered Jul 14 '15 at 09:32 PM

avatar image

josephoracle
6 1

avatar image Tropid Jul 14 '15 at 09:46 PM

As far as I know, the data has to be imported before playing. So no real-time reading of a csv file is possible. Please correct me if I'm wrong ;)

(comments are locked)
10|2000 characters needed characters left

What you want to do is called IPC (https://en.wikipedia.org/wiki/Inter-process_communication). I'd suggest one of the following two solutions:

1) You can take a look at named pipes (basic OS functionality). They are usually implemented as file descriptors which allow writing to one side and reading from the other side. There should be a way to do this asynchronous easily.

2) Another possibility may be to create a socket and transfer the data using TCP/UDP on the loopback interface 127.0.0.1.

I'd probably prefer the second one.

more ▼

answered Jul 14 '15 at 09:43 PM

avatar image

Tropid
6 1 2

avatar image Kubiak54 Dec 11 '15 at 02:09 PM

Oh thank you so much for this :) I would love to ask, when I am streaming data trough IPC, how can I catch them in unreal engine? Thank you!

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question