You need to track two points on the gun, one front and one back so you get angle, scale and rotation. Apply that to the null and then parent to your beam.
The gun is so small and the background is so similar to the gun that accurate tracking is going to be difficult.
Ok your advice was helpful, In this video I explain my problem, if you have the time please watch it and explain to me what I am doing wrong.... Ans again the video should be in 720 now but for some reason on youtube it is not, maybe it needs time to process
Your advice about the 2 tracking points in order to get the scale and rotation was helpful, THX a lot
You have a couple of problems. First you don't need to use shift parent, just parent. Second, your red solid is a 3D layer and you have applied 2D tracking info to the solid. Actually, there's another mistake and it is in the tracking. You should also be tracking scale because the gun moves from left to right as well as up and down. This changes the distance between the front and back tracking points.
My workflow with this project would be:
- Track Motion of the front and back of the gun including position, scale and rotation
- Apply the track info to a null called GunTrack or something like that
- Add a solid and apply the beam effect or mask the red solid to simulate the shape of a laser sight
- Change the blend mode of the solid to ADD
- Move the anchor point to the center of the starting point of the laser
- Parent the solid to the Gun Track null
That should do it.
Wow THX a lot for the detailed answer I have made the effect I was talking about already but this sounds to good to be left out so I will redo the whole thing. THX agan use SHIFT Parent?
P.S. when do you use SHIFT Parent???? an example maybe.....?