Hello, I’ve searched youtube for an effect that animates a certain material with the start point at the hit location, here is what I need:UDK - Shield Effect - YouTube
I asked FreeTimeCoder (the owner of the video) and he didn’t remember exactly what he did… =( He supplies the code for this effect but it is on UDK 3 and I don’t have it. Also, he did it using C++, but I’m I want to make it on Blueprints only (but I know C and C++).
Before I saw this video I’ve manage to make a hit effect and spawn an emitter on the hit point but the effect on the shield material always start at the same place (0,0 of the material texture UV). I can’t manage to make it start on the hit spot. I don’t think that is the right approach though. After I saw the comments and the video, I changed my code to spawn a sphere with collision bound, invisible to the user. The sphere created at the collision point have intersection points with the sphere of the shield. I don’t know how to make my invisible sphere change the material from the shield (target). The sphere I create is on world 3D coordinate space and it is created outside the shileld sphere, like another sphere.
Well, so what I really want?
I want to send a projectile to an sphere that is a Translucent material (so I can’t use Decals to paint the hit area). At the hit point location I need to start an animation on the shield material using blueprints, like the video from the FreeTimeCoder. I need it to be able to create multiple animations at once.
What I did so far:
- Created the Translucent Material
- Animated the material using Panners, Normal maps, Refraction.
- Trigger an animation using RADIAL GRADIENT EXPONENTIAL that starts a circle with emitter effect at UV (0,0) and goes around the sphere and fades.
- This approach can’t make multiple effects like the video from FreeTimeCoder, because if another hit happens the effect restarts instead of creating a new one.
- I don’t know how to change the coordinates of the start point of this effect to the hit point.
Ideas so far:
- Make a sphere of collision bound what intersects the sphere of the shield material. At the intersection points start an animation. This way I can make an blast radius effect, like the video did.
My final goal is not exactly a shield, but this effect is perfect for what I want.
Sorry for the confusion, I’m not good to express my ideas… hehehehe