# Angled Near Clipping Plane?

**URL:** <https://forums.unrealengine.com/t/angled-near-clipping-plane/382988>\
**Category:** Cinematics & Media\
**Tags:** scenecapture2d, clipping, unreal-engine, Engine-Source-Code, CPP, question\
**Created:** [January 26, 2017, 3:11am UTC](https://forums.unrealengine.com/t/angled-near-clipping-plane/382988 "2017-01-26T03:11:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Proulx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ian\_Proulx](https://forums.unrealengine.com/u/Ian_Proulx)\
**Post date:** [January 26, 2017, 3:11am UTC](https://forums.unrealengine.com/t/angled-near-clipping-plane/382988/1 "2017-01-26T03:11:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![modravrtacka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@modravrtacka](https://forums.unrealengine.com/u/modravrtacka)\
**Post date:** [December 29, 2022, 11:52am UTC](https://forums.unrealengine.com/t/angled-near-clipping-plane/382988/2 "2022-12-29T11:52:55Z")

</div>

Hi, did you find the solution for this?
