aaaah that just made my brain hurt. =P There is not simple way to do that as far as im aware. I came up with something a while ago that might help you out a bit though, if you plug a fresnel into a lerp alpha you can use that to change the texture on the floor that is around the player, I used it a while ago to try and make a death style feature where everything near the player withered and died while you were near it and it worked quite well. Hope that helps
This will only work if the player is center of the screen at all times correct?
if thats the case,,,I guess were lost than >__<
Thanks for the idea though !
Offhand, I'd say you need some Kismet to pass the player's position to the ground material. The ground material would need a Vector3 parameter, and Kismet would handle passing the player's world position to that parameter. You can then do what you please with that Vector3.
Offhand, I'd say you need some Kismet to pass the player's position to the ground material. The ground material would need a Vector3 parameter, and Kismet would handle passing the player's world position to that parameter. You can then do what you please with that Vector3.
Hnmm can't quite figure out how to pass the vector from Get Location and rotation kismet nod to the material instance.
just search around a bit, i haven't don't this exactly via uscript, but i have passed vectors from a actor i made in uscript to a material instance before.
in uscript you can easily set vector parameters using a augment like this
Replies
if thats the case,,,I guess were lost than >__<
Thanks for the idea though !
Hnmm can't quite figure out how to pass the vector from Get Location and rotation kismet nod to the material instance.
Thanks for the hint !
olny way to access the vector parameter of a material instance is animating it via mantinee or via USCRIPT.
in uscript you can easily set vector parameters using a augment like this
just find a way to get the player location and save it to a variable, and drop that intowhere the paramatervalue is.
also if this effect is olny for 1st person, there is a camera position node you could use in the material editor.