# Looking for better solution to collect texture pixel color at collision point?

**URL:** <https://forums.unrealengine.com/t/looking-for-better-solution-to-collect-texture-pixel-color-at-collision-point/677079>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint\
**Created:** [October 25, 2022, 10:35pm UTC](https://forums.unrealengine.com/t/looking-for-better-solution-to-collect-texture-pixel-color-at-collision-point/677079 "2022-10-25T22:35:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rhadley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rhadley/32/759257_2.png) [@Rhadley](https://forums.unrealengine.com/u/Rhadley)\
**Post date:** [October 25, 2022, 10:35pm UTC](https://forums.unrealengine.com/t/looking-for-better-solution-to-collect-texture-pixel-color-at-collision-point/677079/1 "2022-10-25T22:35:48Z")

</div>

The Goal: To collect the color of the (closest?) pixel at the intersection point on a collide-able mesh…to use in a Niagara system to color debris mesh. UE5 Blueprint.

This is what I’m using and it works BUT we are seeing a heavy drop in FPS when using. We are pretty sure it’s the capture pixel and read pixel that cause the drops.

 ![unknown](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/a/c4ae61bf0270a248df196017b41a20eea2947f3f.png)

Are there better / more efficient methods to collect this this collision color information?

Video example:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/d/21d985151f9d0b9812dd2bc0839da94ab282cc02.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/d/21d985151f9d0b9812dd2bc0839da94ab282cc02.mp4)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 26, 2022, 12:56am UTC](https://forums.unrealengine.com/t/looking-for-better-solution-to-collect-texture-pixel-color-at-collision-point/677079/2 "2022-10-26T00:56:49Z")

</div>

> [@Reading texture color data using UV values](https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888/15):
>
> Here is an solution: Notice you should have “Trace Complex” and “Support UV From Hit Result” check-boxes turned ON both! “Trace Complex” check box is in your Line Trace node. “Support UV From Hit Result” you can find in: Setting\>Physics\>Optimization\>Support UV From Hit Result.

---

<div class="post-metadata">

**Author:** ![Rhadley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rhadley/32/759257_2.png) [@Rhadley](https://forums.unrealengine.com/u/Rhadley)\
**Post date:** [October 26, 2022, 3:07pm UTC](https://forums.unrealengine.com/t/looking-for-better-solution-to-collect-texture-pixel-color-at-collision-point/677079/3 "2022-10-26T15:07:07Z")

</div>

Oh look at that! Let me try this today! Ty for the approach.

---

<div class="post-metadata">

**Author:** ![Rhadley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rhadley/32/759257_2.png) [@Rhadley](https://forums.unrealengine.com/u/Rhadley)\
**Post date:** [October 28, 2022, 3:23pm UTC](https://forums.unrealengine.com/t/looking-for-better-solution-to-collect-texture-pixel-color-at-collision-point/677079/4 "2022-10-28T15:23:42Z")

</div>

**Update:** Using Gbuffer in a custom Niagara module in GPU particles has proved the best solution for now. Can’t see a performance difference (yet).

 ![2022-10-28_11h22_15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/1/bd1e6a9e9a14c06dca5886a74fb5cc897609c18d.png)

---

<div class="post-metadata">

**Author:** ![Nonlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nonlin](https://forums.unrealengine.com/u/Nonlin)\
**Post date:** [January 4, 2023, 1:08am UTC](https://forums.unrealengine.com/t/looking-for-better-solution-to-collect-texture-pixel-color-at-collision-point/677079/5 "2023-01-04T01:08:06Z")

</div>

Can you go into more detail with that solution?
