Sensor live data feed into dynamic texture

I am looking to connect live sensor data to a plane or mesh. I want it to be able to accept live data feeds. I have researched setInterval(), however I am not proficient enough to solve. Has anyone attempted this before and or know a good direction for me to consider? Ultimately may add heat maps based upon live data and or just show the number values on the mesh. Any input welcomed.

It totally depends on how you receive the data cause if they were a one to one mapping they could be connected directly to the meshes info for instance.

As it is generally not the case though, I would consider updating the babylon data everyframe with the most recent available infos.

Sebavan,
Thanks for the prompt response. I am looking to have sensor data like room occupancy and have that graphically shown in a three dimensional room model in the web browser. I may have the data flow through signalR or some other streaming service that connects to a room sensor. Are you saying that scene update or another draw call method is best for this? I was wondering about performance for streaming data from devices. Ultimately I want to show both number info and heat map based upon live sensor data. I hope that makes sense. I am not a proficient programmer so examples are best for me to see how to code this process. Kind Regards
Not to confuse the question but here is an example of using phone sensor data in a web model using signalR.
You Tube Video on signalR streaming data from phone

I was more thinking about the update method. Wether you use signalR, socket.io or other real time communication framework does not matter as much as how you pass those infos to the babylon scene.

As long as they are only transform infos it is all good to apply them directly (in most cases). Now creating the heat map per frame might be a bit much (even in term of data transfer) meaning you might need to think about update the map per tile in order to prevent blocking the rendering with long operations.

Sebava,
Do you know of a good example / resource that I should take a look at? I have done a fair amount of searching, but having difficulty getting good info on this topic.

Thank you for your input.

Unfortunately not that I can think about but i bet @Wingnut or @JohnK might have some playgrounds links to share :slight_smile:

Thank you. I look forward to seeing what Babylon.js can do.

Cheers!

Hi guys. I think maybe @Deltakosh might be useful here. Heā€™s a former Kinect godā€¦ and Kinect isā€¦ what? A thingā€¦ for live-connecting thingsā€¦ to other things.

But, no, I donā€™t have any playgrounds or demo scenesā€¦ that used streamed-in data to affect scene things.

Really, thoughā€¦ a mouse or gamepad IS a data-stream, I suppose. Other streamed things MIGHT connect to BJS sceneā€¦ in similar ways. Whatever you can do with a mouseā€¦ you can do with a stream of packets from anything else, whether across a network or coming from local-machine into local scene (like our mice).

Ok, Iā€™m at the border of MY knowledge on this subject (in fact, ICE is looking suspiciously at me, as if I might have stepped across the line already). :slight_smile: Interesting subject, though. Love it. I think a guy should at least LOOK AT Kinectā€¦ get its storyā€¦ steal some code. :slight_smile:

Oh yeah, thereā€™s also @nasimiasl 's http://500blog.com/ (maybe hold the ā€˜Wā€™ key for a few secsā€¦ when you first arrive)ā€¦ which is the only full-time BJS ā€œworld serverā€ that I know-of. It surely hands some packets around, but I know NOTHING about how it happens.

Topic-wander: I think ā€œNazā€ once offered ALL OF USā€¦ opportunity to build a personal place on that Planet 500, if we wish. Why send a personal forum message to me, when you can browse http://500blog.com/wingoffice and 3d live-chat with me, near my fireplace, in my VR ā€œhomeā€? FUN! Someday.

I donā€™t know if that offer is still valid, but it sure is/was a cool thing to offer us. (Wingy hugz Naz)

1 Like

Thanks :slight_smile:

I wonder also if guyz doing multiplayer games could come in as it is totally the same idea.

i see dream projects wanna catch me and kill me :slight_smile: but i close to finish 2 of them after that maybe i have time to back and be a useful a bit :frowning:

1 Like

No probs, Naz. No work to do, here. We are just talking about data-passing into BJS scene, or maybe about scene requesting data from outside. Just Wingy talking without any education. Normal. :smiley:

1 Like