工设里世界

隐者艾伦のBLOG

【unreal4】 虚幻引擎中获取虚拟摄像机图像并导入UI(UMG)实时显示

完成目标:在虚幻引擎中实时获取虚拟摄像机的镜头图像,并在GUI中显示,类似于赛车游戏中左右后视镜显示图像,或者摄像头实时采集图像信息显示在GUI界面中,或者在VR中实现摄像机的实时画面采集。

测试版本:4.26(多数版本都可通用)

需要用到的知识:

1、场景捕获组件2D(SceneCaptureComponent2D)

2、画布渲染目标材质(CanvasRenderTarget2D)

3、UI中的图像模块(image)

 

功能实现思路:想要实现获取虚拟摄像机图像并导入UI实时显示,就需要一个实时捕获画面并将其转换为动态材质的方式,通过场景捕获组件2D获得实时画面流,将渲染目标材质转换为普通材质,最后在GUI中创建图像,并为该模块赋予图像材质即可。

(更多…)

UE4: Why is the simulation physics option gray for StaticMesh

In Unreal Engine, what if the simulation physics option of static mesh body is gray?

The solution is: double-click to open the static grid body, click the collision menu above, add the collision according to the actual demand, save, and then come back to see that the simulation physics option is ready to click.

Official explanation:

If true, this body will use simulation. If false, will be ‘fixed’ (ie kinematic) and move where it is told. For a Skeletal Mesh Component, simulating requires a physics asset setup and assigned on the SkeletalMesh asset. For a Static Mesh Component, simulating requires simple collision to be setup on the StaticMesh asset.

 

20220409

www.gongyesheji.org alan

UE4:静态网格体模拟物理选项为灰色怎么办

在虚幻引擎中,静态网格体的模拟物理选项为灰色怎么办?

很简单,造成这个选项灰色的原因是该静态网格体没有碰撞,解决办法为:双击点开静态网格体,点击上面的碰撞菜单,按照实际需求添加碰撞,保存,再回来看就会发现模拟物理选项已经可以点击了。

官方解释:

If true, this body will use simulation. If false, will be ‘fixed’ (ie kinematic) and move where it is told. For a Skeletal Mesh Component, simulating requires a physics asset setup and assigned on the SkeletalMesh asset. For a Static Mesh Component, simulating requires simple collision to be setup on the StaticMesh asset.

如果是勾选状态的,这个物体将使用模拟。如果为取消勾选,将是“固定的”(即运动学),并移动到它被告知的地方。

对于骨骼网格组件,模拟需要一个物理资产设置和分配在骨骼网格资产。

对于一个静态网格组件,模拟需要在StaticMesh资产上设置简单的碰撞。

20220409

www.gongyesheji.org alan

How do I solve the problem that the touch screen and display screen of the Windows operating system are inconsistent

Recently, I encountered a problem: when I use a touchscreen display, the touch function is mapped to my large screen, not the secondary screen, but the touchscreen is actually on the secondary screen. What should I do to solve this problem?

First of all, it should be clear that the misaligned touch screen is not a hardware problem, but a software configuration problem, and Windows offers a perfect solution:

Step 1: Open the control panel

windows的触摸屏和显示屏错位:1.打开控制面板
The Windows touch screen and display screen are misaligned: 1. Open the control panel

(更多…)