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 NameZero912 · Feb 15, 2013 at 09:00 AM · texturemoviereal-time

Best method to stream large still image stream as movie-like texture

Hi,

I have the following scenario:

  • Input: sequence of large still images (~ 3000x1000 px) incoming at 30 Hz from a camera (connected via Firewire). This camera does not appear as webcam to the operating sytem (at least not out of the box, I suppose one could code a fake webcam). Format is e.g. JPEG, but I could do any format conversion in a separate process.

  • Wanted: whenever a new still image was grabbed from this camera, use it as texture in Unity (the texture is mapped to a mesh) with as little delay as possible

  • Platform: Camera and unity render client are all on the same Windows 7 x64 machine.

I'm looking for suggestions how to approach this problem for this particular situation (e.g. I don't give a rats ass how performance would be on Mac, Android etc.). So far, I understand that unity supports:

  • import of textures from a webserver (I can't imagine that this solution will be performing well, I'd expect the requests over HTTP to take longer than the ~33ms of time that are available)

  • having my separate process encode the still image sequence as movie, and use a movietexture (unsure about performance, but I'd like to rule it out because of the high latency).

  • writing a program that fakes a web-cam device, using the WebcamTexture feature of unity (is that a good idea?)

  • your suggestions!

I hope you guys can help me out :).

Cheers!

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by NameZero912 · May 07, 2013 at 03:54 PM

The last option works reasonably well.

An even better option is to work with shared memory. Let the host application write the image to shared memory, and write a native plugin that reads that image. Look at the example at the bottom of this page to see how a plugin can write pixels to a texture.

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

9 People are following this question.

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

Related Questions

Time.deltaTime or Time.fixedDeltaTime for animated textures, such as a movie without sound (sequenced textures) 1 Answer

Unity Movie Texture Audio Black Screen 1 Answer

MovieTexture Quality 0 Answers

Assigning UV Map to model at runtime 0 Answers

Swap Custom Cursor for Animated Movie Texture or Sprite Sheet? 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