Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

Shotgun Pellets flying towards camera

Cow Forums : Adobe After Effects
Shotgun Pellets flying towards camera
by Gregory Hooker on Mar 16, 2008 at 7:37:48 pm

I have an airsoft sawed off shotgun I want to have pelltes fly toward the camera. I created a seamless texture used for a metal pellet. I use the sphere plugin to create a sphere. I there a way to have it fly use an emitter to have them fly towards the camera? Or do I have to have a bunch of layers? Or would it be better to do this in a 3d application? I am learning Max @ the moment. By learning I mean I am in the first few lessons of the LYnda courses.

Respond to this post   •   Return to posts index

Re: Shotgun Pellets flying towards camera
by mike park on Mar 17, 2008 at 7:43:26 pm

I think the answer to your question depends on what type of shot you want and what look. If you shot is full speed, then the bullets would be nothing more than motion blurs. For this effect, you could animate a layer with pictures of bullets moving toward the camera at high speed with an alpha channel and motion blur turned on. Or you could use a plugin like Trapcode Particular and have true 3d balls flying at your camera. You say you have access to 3d max. Depending on how good you are with max, you could create small spheres animating toward the camera in slow motion or use a particle generator such as pflow or one the the simple emmitters in max. Simply, put, there are a bunch of ways to create this in both afx and max, and it largely depends on what software you are comfortable with and what look you need. Both programs excel at different things.



Respond to this post   •   Return to posts index

Re: Shotgun Pellets flying towards camera
by Gregory Hooker on Mar 17, 2008 at 8:22:24 pm

I am wanting the pellets in slow motion with a displacement map or warp to fly from around the pellets. I want it to look as if the air is distuebed around them.

I created a pellet in Max. I applied to rust material. I am not happy with the rendered look though. I am going to try to use the emmitter suggestion.

All suggestions would be appreciated.



Respond to this post   •   Return to posts index


Re: Shotgun Pellets flying towards camera
by mike park on Mar 18, 2008 at 1:44:34 pm

Try this. Make a pellet in max using a geosphere and map it with a material. You can search the net for a good refrence pic. the ones I saw were dark grey with some specular and relatively glossy. Set up a pf source emitter in max. go to the particle flow rollout and change "shape" to "Shape Instance." Pick your geosphere as the instanced object. Now change the pflow emitter to emit 15 and start at 0 and end at 1. Change the velocity to whatever speed fits your scene. Also remember to change the direction of the emitter to along arrow in the speed section. Now you will see 15 objects emitted over one frame from the pf source travelling along one axis. You can change the divergence and spin to taste. Render it out as .pngs and import into afx. Apply whatever distortion you want behind the pellets. If you want to do it all in max, you can search for tutorials which use the "matrix" bullet effect and I know there are some tutorials out there which will demonstrate how to generate the distortion behind the pellets that you want.

Hope this points you in the right direction
Cheers



Respond to this post   •   Return to posts index

Re: Shotgun Pellets flying towards camera
by mike park on Mar 19, 2008 at 8:07:57 pm

Ok, check this out - here is an easier way (faster) to do the effect you want using the best of both max and after effects.

In 3ds Max

Part I - Create the Bullets (pellets)

The first thing we need to do is make a bullet. We will create a geosphere, make a texture, then roughen up the spherical shape using a displacement map.

1. Make a new plane the aspect ratio of your footage ie. 4x3 or 16x9 or some multiple.
2. Create a new targeted camera and place the camera target in the middle of the plane
3. Go to the material rollout and under a new material change the diffuse color map from none to bitmap and choose your footage
4. Now create a new geosphere the size of the shotgun pellets you want to use - use trial and error for size, you can change later - make the sphere 4 segments
5. Next go back to your material editor and choose a new material slot. Call this material bullet. Under the diffuse map change it from none to noise. Change the noise colors from black and white to a dark grey and mid grey - darker on top - my values dark rgb = 42,42,42 and mid rgb = 160,160,160. Change the noise type to turbulence. I also scaled down the size from 25 to 10.
6. Go back up to the top of the material and copy the diffuse map to a new material slot by dragging the diffuse rollout button to a new map. Choose instance.
7. Back in the bullet material, under the map rollout, drag the diffuse map to the bump map and leave it at the default 30. Also click on the reflection map and choose bitmap and then your footage. Decrease the value from 100 to 10.
8. Finally on the bullet material, increase the specular to 115 and the glossiness to 40.
9. Add a displace modifier to the geosphere and set the strength to 0.15. Drag your noise map from the material rollout to the map under image and change the map type to spherical.
10. Apply this material to the geosphere. Test render to see if you like the look and adjust the material to taste

Part II - Create the initial pellet blast

What we are going to do is take the bullet you made above and use it as geometry for particle flow to use multiple times to generate your blast.

11. Create a new PF source and align it toward the camera.
12. Open the particle view and add a spin operator and change from 360 to about 50 - this controls how fast the individual pellets will rotate. You can change the variation of the spin to they spin at different speeds - I used 20
13. Next, replace the shape operator with shape instance. On the right, click pick object and select your bullet in the view port
14. Go to the birth operator and change it so that the bullets emit over only one frame. The default has them emitting from frame 0 to 30. Also change the amount to something reasonable for a shot gun. This will depend obviously on what size shot you are using, but I chose about 15.
15. Delete rotation as you are already using spin to control rotation.
16. Under speed, change the default to whatever looks good to you and add some small variation so that the pellets are not all aligned in one plane. Also make sure the direction is along icon arrow which will allow you to change the direction of the pellets by rotating the pf emitter in the main window. Also give it a little divergence - about 13-15 - this will spread out the shot pattern. Adjust to taste and shot.


Part III - Create the ripples

Now, the real fun. We will add a spawn event to the main particles which we will render and export and pull into afx as the source for a displacement map - Cool huh - this is much faster and easier than trying to displace the background in max. If you want to try the difference in time, change the material by adding a raytrace to the refraction map - then expect really longer render times - this way uses the best of both programs.

16. Add a spawn test to the main particles in particle flow. Choose per second and change the rate to about 30. Change the offspring to about 10, variation 20. Inheritance 10, variation to 25, divergence to 30
17. Create a new event by dragging a shape instance node onto the pflow workspace. Connect the spawn event handle to this new event.
18. In the main window, create a new geosphere, about 1/3 the size of the main particle. Change the segments to 1, and apply a turbosmooth modifier. Next open up the material browser and apply a plain grey material to the geosphere.
19. Back in particle flow, pick the new geosphere as the object in the new event.

You should now have smaller particles streaming out of the main pellets. You will use these to drive a displacement of you footage in afx.

Hide your bg plane and render out your bullets alone and then the trails. Make sure to render at the same resolution as your footage so that things line up properly. I use pngs with alphas.

Fire up After effects.

Import you footage, your bullet pngs and your trails.
Drag you footage to a new comp and then drag and drop on both our bullet footage and trails. Bullets on top, trails next and finally your footage. Hide you trail footage.
Select your footage and choose Effect>Distort>Displacement map
Change the displacement map layer to your trails. Change the red and green to luminence and adjust the horizontal and vertical displacement to taste.

There you go

You may also want to add a blast effect, like a powder explosion with a few sparks coming out of the barrel. Check out www.detonationfilms.com for some ideas and free footage.

Let me know if you need any more help, or if you would like for me to send you my max file or afx file

Cheers

Respond to this post   •   Return to posts index

Re: Shotgun Pellets flying towards camera
by Gregory Hooker on Mar 19, 2008 at 8:58:35 pm

That is awesome Mike. A very detailed tutorial. Thank you so much. I would love the project files. I can use them as a reference following your tutorial. Once again thank you so much for this.





Respond to this post   •   Return to posts index


Re: Shotgun Pellets flying towards camera
by mike park on Mar 19, 2008 at 10:51:05 pm

Here are the files.

http://www.mediafire.com/?evrjot3mdty

It is a little big with all the rendered files, but hey, why not?

Look at the readme file

If you want, you could upload your footage to mediafire.com and send me the link via email. I could take a look at the acutal footage you are using and help you get things worked out. I enjoy helping others learn, I learned everything about graphics from others willing to share their time and experience.

my email is

park_mike@yahoo.com

Cheers

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]