我是vuforia的新手,我需要一些关于这个主题的帮助.
有人能告诉我它是否可以在PC应用程序中使用vuforia和网络摄像头?
我在平面纹理上得到了网络摄像头帧,我试图将这些纹理传递给vuforia,但我还没有完成它. @H_502_7@ @H_502_7@我使用WebCamTexture来获取网络摄像头的帧.
@H_404_12@解决方法
有人能告诉我它是否可以在PC应用程序中使用vuforia和网络摄像头?
我在平面纹理上得到了网络摄像头帧,我试图将这些纹理传递给vuforia,但我还没有完成它. @H_502_7@ @H_502_7@我使用WebCamTexture来获取网络摄像头的帧.
我对Vuforia并不熟悉(尽管它看起来很有趣,我本周末会自己尝试一下!),我可能会有一个建议.
@H_502_7@
@H_502_7@有可能Vuforia不知道该怎么做因为图像是WebCamTexture而不是像Texture2d这样的东西吗?
@H_502_7@WebCamTexture是一个纹理(Texture2D,WebCamTexture,RenderTexture都是从Texture扩展但它们不可交换).
@H_502_7@那么,尝试转换你的纹理并将其传递给Vuforia?
@H_502_7@
var tx2d = new Texture2D(); tx2d.SetPixels((go.renderer.material.mainTexture as WebCamTexture).GetPixels());@H_502_7@编辑:我在编辑器中运行的部分下找到了here: @H_502_7@有一个特定的Web Cam Behavior脚本. @H_502_7@
@H_502_7@To use Play Mode for Vuforia in Unity Pro,simply select the attached,
or built-in,webcam that you want to use from the Camera Device menu,
and then activate Play Mode using the Play button at the top of the
Editor UI. @H_502_7@You can also use the standard Unity Play Mode with non-Pro Unity
versions and by setting ‘Don’t use for Play Mode’ in the Web Cam
BehavIoUr component. @H_502_7@To use standard Play Mode,adjust the transform of the ARCamera object to get your entire scene in view,and then run the application in the Unity editor. There is no live camera image or tracking in standard Play Mode,instead all Targets are assumed to be visible. This allows you to test the non-AR components of your application,such as scripts and animations,without having to deploy to the device each time.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。