How to send native texture ptr from Unity web player to a browser plug-in?

Posted by user2928039 on Stack Overflow See other posts from Stack Overflow or by user2928039
Published on 2013-10-31T10:20:37Z Indexed on 2013/10/31 15:53 UTC
Read the original article Hit count: 728

I have written an NPAPI browser plug-in (using Firebreath) that Unity uses to access Kinect camera. I can retrieve skeleton data from Unity through JavaScript easily since it isn't too big but the problem is in retrieving color image data.

Is it possible to send a native texture pointer (GetNativeTexturePtr) from Unity through JavaScript into the C++ plug-in so that it can write the texture data directly? (tested in standalone version and it works)

Any other suggestions on how to transfer image data from browser plug-ins to Unity web player are very welcome.

Thanks.

© Stack Overflow or respective owner

Related posts about browser

Related posts about directx