# Mesh using floor texture

**URL:** <https://forums.unrealengine.com/t/mesh-using-floor-texture/458722>\
**Category:** Rendering\
**Tags:** floor, unreal-engine, question, Blueprint\
**Created:** [November 22, 2019, 3:04pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722 "2019-11-22T15:04:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [November 22, 2019, 3:04pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/1 "2019-11-22T15:04:45Z")

</div>

Hi everyone, Guaiamu here.  
Guys, i would like to ask you a help about a attack i’m creating for my character.  
He can create a rock from the ground and throw on the enemies. But i would like to create a cool effect on it:  
The upper part of the rock will have the texture of the floor where he’s standing. Something like: He created a rock using the ground from the place where he is. I made a sketch of it:

 ![292843-sketch.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/9/6d91349cd93324a1d3fdc0a4257994832de2e6c3.png)

You guys know a way i can do that using blueprints?  
Thanks!

---

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [November 22, 2019, 3:32pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/2 "2019-11-22T15:32:33Z")

</div>

I do remember a few particle effects of rocks in the market for free, check there I think I remember something like that there but I doubt that because its a little bit complex what you want to do.

---

<div class="post-metadata">

**Author:** ![koda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/koda/32/692574_2.png) [@koda](https://forums.unrealengine.com/u/koda)\
**Post date:** [November 22, 2019, 4:13pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/3 "2019-11-22T16:13:32Z")

</div>

You might be able to use destructible meshes. Check out [here](https://forums.unrealengine.com/development-discussion/content-creation/42567-destructible-chunks-not-textured). Another option would be to make or use a pre made rock mesh, then make a material for it that has the proper mapping. That might take some reading up on texture mapping, etc.

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [November 22, 2019, 4:28pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/4 "2019-11-22T16:28:43Z")

</div>

Hi DDemon! Thanks! I will look on it!

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [November 22, 2019, 4:33pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/5 "2019-11-22T16:33:13Z")

</div>

Hi kori.dacosta! Thank you, It looks like this guy did it and what i want is something similar, with your hints i can look for something, thanks again!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 22, 2019, 6:00pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/6 "2019-11-22T18:00:42Z")

</div>

What @kori.dacosta said is probably closer to what you need. It does not need to be destructible at all (but it can, of course). It does not even require _that_ advanced of a setup. In UE4 static meshes have material slots - each happy to display a different material.

 ![292850-annotation-2019-11-22-174903.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/9/e9973e16c98f7011ecc5b9df594ff4f096a16a6b.png)

Not sure how this is achieved in other 3d modelling software, but in 3ds Max you can assign IDs to each poly (and optionally name them). FBX exporters preserve those.

When you hit the ground (with a trace) you can sample its material and apply it to the relevant _top ID_ of the extracted rock. There’s a bunch of nodes that help with that:

![292851-annotation-2019-11-22-180242.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/6/5d6000942ffeb4ab810334e94b70d758dda22e48.png)

* * *

I once posted (years ago) a step-by-step for this here on AH but can’t find it. 😑

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [November 22, 2019, 6:14pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/7 "2019-11-22T18:14:09Z")

</div>

Hi Everynone! Oh thank you so much for your response and the images i think we’re getting there \o/!  
I can model the rock in 3ds max and make the place i want to be the “ground texture” as a separated material^^  
You know if there’s a function i can make the trace load the ground’s material?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 22, 2019, 6:20pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/8 "2019-11-22T18:20:18Z")

</div>

Untested but should (fingers crossed) work:

 ![292852-annotation-2019-11-22-181800.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/5/e75acb9e301e5e565c381d754cb8e252f7940754.png)

You may want to add a couple of things to this, for example ensure that we hit ground only; you do not want to accidentally hit someone’s face with this - it just extracts the texture from whatever it hits and puts it on the target mesh.

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [November 22, 2019, 6:30pm UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/9 "2019-11-22T18:30:54Z")

</div>

You’re so awesome! I will test when i get in home! \o/

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [November 23, 2019, 2:12am UTC](https://forums.unrealengine.com/t/mesh-using-floor-texture/458722/10 "2019-11-23T02:12:37Z")

</div>

IT WORKED!! THANK YOU!!!

![292860-texture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/7/3c7402d3fede13b44b6e5e04bbfa6a22baee1332.png)
