Angled Near Clipping Plane?

Ian Proulx
Thu, 26 Jan 2017 03:11:45 +0000
Cinematics & Media

I am trying to create a Portal effect and have the modified the engine (SceneCaptureComponent and SceneCaptureRendering.cpp) to expose the nearClippingPlane of captureComponent2ds. This works. However, I need to also be able to make the nearClippingPlane clip at angle parallel to the portal instead of parallel to the camera. I think I need to modify FPerspectiveMatrix in PerspectiveMatrix.h. Any ideas? Any mathematicians out there that could help me with the matrix transformations?

2 posts - 2 participants