Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 JoPich · Jan 24, 2013 at 07:15 PM · texturevideodynamicstream

Dynamic texture / Video stream ?

Hello,

I need to be able to display a texture created in real time by an external proprietary application running on the same PC (in windows XP or 7).

I thought to several ways but I don't know which is better

1/ My application writes the image on the HDD and I load it from the HDD in unity. I think this is the worst solution as my image may change at high rate (more than 1 time per second) and writing the image on the disk will be very heavy.

2/ My application creates a MapFile in shared memory and writes in it the raw bytes of my image. Then, through a plugin in Unity, I get the image raw bytes from the mapfile, I transform this into a jpg image in memory and transfers it into unity, then I use Texture2D LoadImage to create the texture and then I apply my texture. This seems heavy too.

3/ My application creates an internal webserver in the PC and I use WWW.texture to get my image. I think this way will be heavy as well and will not get good performances.

4/ My application creates a video stream (feed) in memory and unity get access to this video stream and displays it as a texture. this solution sounds the best to me but I have no clue on how to realize it (from unity side)

what do you think ?

Thanks in advance for your help and your replies.

Antoine

Comment
Add comment · Show 2
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 JoPich · Jan 28, 2013 at 09:29 AM 0
Share

Up but I simplify my question

Is it possible to display a dynamic texture co$$anonymous$$g from a video stream generated by an external application on the same PC. This video stream would be "broadcasted" directly in shared memory (map file or anything else) by the external application and displayed as is as a texture by unity (may be through a plugin if necessary).

thanks in advance for your help

Antoine

avatar image DaveA · Jan 28, 2013 at 10:19 AM 0
Share

I have done this with Sockets which basically sets up a socket listener in Unity and your other app sets up a socket sender. There is help in this forum if you search on Sockets.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by thelghome · Jul 02, 2019 at 04:43 PM

If someone is still looking for a solution, this plugin can help.

FM Exhibition Tool Pack | Forum

You can stream game view / webcam / audio between multiple platforms in local network. All written in C# and easy to modify.

Supported Platform: iOS/Android/Mac/PC

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

10 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

Related Questions

Displaying streaming video as a dynamic texture. 0 Answers

Dynamicaly load a video on a GameObject 1 Answer

Dynamic render with paint splatter effect 0 Answers

My Dynamic texture not showing up in the Build??? 0 Answers

RTMP Video Stream in Unity 2 Answers


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