Hello
I hope this finds yall well.
I have a question about position based materials in UDK. I have seen the information on player position based materials but I am looking for something a little different.
Is it possible for an UDK material to get the location of an object (let's say a plane), then sample said material underneath said plane, then add sampled material to the plane.
I would like the sampled material have the same tiling as the material below (so if you are looking down at the plane, I would like for the plane to blend into the surrounding landscape) but if the plane is moved, the texture does not change.
I believe I can use the object world position node to get the position of the plane but that is about as far as I got. I thought of using a node like DestColor but those materials have to be transparent and I would like my material to look solid.
thanks for your time!
Replies
If you can, try and set up a render texture or environmentsampler or something to grab the surrounding, and write and use that.
I don't know if you could do it many other ways, because otherwise you could end up with your plane over two materials, and it may not have the verts or UVs to support it having 2 materials (if you could even get it to pick up and assign both properly).
@tharle i need the texture on the plane to change cause it is not spawned with the level, a mechanic will spawn the plane where the player wants it.
@brendan thanks for the ideas, i will head down those paths and see what I can come up with.