UE4 HOLOLENS2 mixed reality capture unreal无法实现摄像头捕捉只显示绿色泡泡的问题
hololens2开发中一个问题:
如果你按照微软官方的实例,每一步都正确执行,严格遵守HOLOLENS2教程中的 Unreal 进行混合现实捕获(mixed-reality-capture-unreal)这一章节,会和我一样百思不得其解,为什么我的平面上面只有一个丑陋的绿色泡泡图案而没有摄像头的捕捉画面。
隐者艾伦的技术博客
hololens2开发中一个问题:
如果你按照微软官方的实例,每一步都正确执行,严格遵守HOLOLENS2教程中的 Unreal 进行混合现实捕获(mixed-reality-capture-unreal)这一章节,会和我一样百思不得其解,为什么我的平面上面只有一个丑陋的绿色泡泡图案而没有摄像头的捕捉画面。
完成目标:在虚幻引擎中实时获取虚拟摄像机的镜头图像,并在GUI中显示,类似于赛车游戏中左右后视镜显示图像,或者摄像头实时采集图像信息显示在GUI界面中,或者在VR中实现摄像机的实时画面采集。
测试版本:4.26(多数版本都可通用)
需要用到的知识:
1、场景捕获组件2D(SceneCaptureComponent2D)
2、画布渲染目标材质(CanvasRenderTarget2D)
3、UI中的图像模块(image)
功能实现思路:想要实现获取虚拟摄像机图像并导入UI实时显示,就需要一个实时捕获画面并将其转换为动态材质的方式,通过场景捕获组件2D获得实时画面流,将渲染目标材质转换为普通材质,最后在GUI中创建图像,并为该模块赋予图像材质即可。
Objectives: Real-time acquisition of virtual camera lens images in Unreal Engine and display in GUI, similar to left and right rearview mirrors display images in racing games, or real-time acquisition of camera image information display in GUI interface, or real-time capture of camera images in VR.
Test version: 4.26 (universal for most versions)
Knowledge needed:
1. SceneCaptureComponent2D
2. CanvasRender target material (CanvasRenderTarget2D)
3. Image module in UI
Function implementation approach: to obtain a virtual camera image real time display and import the UI, you need a real-time capture images and convert them into dynamic material, real-time images were obtained through the scene capture the component 2d flow, converts the render target material to ordinary material, finally to create the image in the GUI, and give the image for the module material.