Shade 10 Particle Physics

From ShadeCamp

Jump to: navigation, search

Contents

Particle Physics

Particle Physics Overview

Particle Physics is a plug-in used especially for explosions, fountain effects, smoke, flames and similar amorphous objects. Physics-based collision detection can also be used in scenes with particles. Particle Physics in included in Shade Standard and Professional.

Plugin physics-1.png

Creating Particles

Generating Particles

1. Select Particle Physics > Particle Emitter from the Create tool. The particle emitter is the source that generates the particles.

2. Click and drag upwards in the front view like shown below.

Plugin physics-2.png

3. Click OK in the warning dialog that appears. For an explanation of the warning dialog see “Rendering Particles.”

Plugin physics-3.png

4. Open the Motion window by selecting View > Motion. Click Play to watch the particles be generated from the particle emitter.

Generating Particles from Objects

1. Select Rectangle from the Create tool and create a rectangle as shown below.

Plugin physics-4.png

2. Select Particle Physics > Particle Emitter from the Create tool.

3. Click and drag upwards from the rectangle as shown below.

Plugin physics-5.png

4. In the Browser you will see several parts inside the emitter part. Move the rectangle (“Closed line”) you just created inside the objects part.

Plugin physics-6.png

5. Open the Motion window by seleting View > Motion. Click Play to watch the particles be emitted from the rectangle with a movement similar to smoke.

Plugin physics-7.png

Using Wind Objects

Cross Wind

1. Create a particle emitter following the steps in Generating Particles.

2. Select Particle Physics > Cross Wind from the Create tool.

3. In the Front view of the Figure window click and drag diagonally up and to the right as shown below.

Plugin physics-8.png

A cross wind object with the direction and range of influence is created.

4. In the Motion window, click the Play button to watch the movement of the particles.

Plugin physics-9.png

The particles are affected by the cross wind object and move in the direction the cross wind object is facing.

Turbulent Wind

1. Create a particle emitter following the steps in Generating Particles.

2. Select Particle Physics > Turbulent Wind from the Create tool.

3. In the Front view of the Figure window click and drag a box around the particle emitter as shown below.

Plugin physics-10.png

4. In the Motion window, click Play to watch the movement of the particles.

Plugin physics-11.png

The particles are affected by the turbulent wind object and move randomly inside the turbulent wind object.

Tornado Wind

1. Create a particle emitter following the steps in Generating Particles.

2. Select Particle Physics > Tornado Wind from the Create tool.

3. In the front view of the Figure window click and drag upwards as shown below.

Plugin physics-12.png

4. In the Motion window, click Play to watch the movement of the particles.

Plugin physics-13.png

The particles are affected by the tornado wind object and move in an upwards swirling motion.

Gravitational Pull

1. Create a particle emitter following the steps in Generating Particles.

2. Select Particle Physics > Gravitational Pull from the Create tool.

3. In the front view of the Figure window click and drag across the particle emitter as shown below.

Plugin physics-14.png

4. In the Motion window, click Play to watch the movement of the particles.

Plugin physics-15.png

The particles are affected by the gravitational pull object and move toward the it as if they are being sucked in.

Collision Detection

Physics-based collision detection can be used in scenes with particles. Physics calculations are done for the particles and objects in the scene and the mutual effects based on their interactivity are determined.

Collision Detection Settings

1. Create a particle emitter following the steps in Generating Particles.

2. Select Particle Physics > Physical Object Initialization from the Create menu. A new Particle Physics (Physics Object) part is created in the Browser.

Plugin physics-16.png

3. Select Sphere from the Create menu and draw a sphere in the Figure window.

Plugin physics-17.png

Move the sphere inside the Physics Object part in the Browser.

Plugin physics-18.png

4. With the sphere selected, select Physics Settings from the Custom tool. The Object Physics Settings dialog appears.

Plugin physics-19.png

The Material pull-down menu lists the available materials for the object. Select Air.

5. In the Motion window, click Play to watch the movement of the particles.

Plugin physics-20.png

By setting the sphere’s material to Air in the Physics Settings dialog, the collision detection causes it to float upwards. If you set the sphere’s material to Wood instead, it moves downward as if falling.

Plugin physics-21.png

Collision Detection for Bounces

1. Open the sample file PM_particlephysics01. shd from the Documentation - Sample tab in ShadeExplorer.

Plugin physics-22.png

2. Select Particles Physics > Physical Object Initialization from the Create tool. Next move the sphere and closed line objects in the scene inside the newly created Physical Object part.

Plugin physics-23.png

3. Select all the closed line objects that make up the walls and floor, and select Physics Settings from the Custom tool. In the Object Physics Settings dialog turn off Receive Force and click OK.

Plugin physics-24.png

4. Now select the sphere in the Figure window and again select Physics Settings from the Custom tool. From the Basic Shape pull-down menu choose Sphere, and from the Material pull-down menu choose Wood.

Plugin physics-25.png

5. In the Motion window, click Play to watch the movement of the particles. Because the walls and floor were set not to receive the force of other objects, they stand rigid when the sphere collides into them. On the other hand, the sphere receives the force of the walls and bounces off them.

Plugin physics-26.png

Collision Detection Using Initial Velocity

1. Open the sample file PM_particlephysics02.shd.

Plugin physics-27.png

2. Select Particle Physics > Physical Object Initialization from the Create tool. Now move all the line objects and the sphere inside the newly created Physics Object part.

Plugin physics-28.png

3. Select the closed line object that functions as the floor in the Figure window, and select Physics Settings from the Custom tool. Clear the Receive Force checkbox and click OK.

Plugin physics-29.png

4. Now select the sphere in the Figure window and again select Physics Settings from the Custom tool. From the Basic Shape pull-down menu choose Sphere, and from the Material pull-down menu choose Wood. Set the Initial Velocity to 0, 3 and 5 from left to right. These values are the velocity, in meters per second, of the object’s initial velocity in the X, Y and Z directions respectively.

Plugin physics-30.png

5. In the Motion window, click Play to watch the movement of the particles. Because we set the initial velocity of the sphere, its speed at the start of the animation causes it to collide with the blocks as if being thrown.

Plugin physics-31.png

Turning the Physics Preview On/Off

The Particle Preview checkbox on the control bar can be cleared if you do not wish to draw the wireframe preview for physics calculations. The Particle Preview checkbox does not affect rendering.

Plugin physics-32.png

Rendering Particles

In order for Particles Physics to be rendered properly, the correct rendering settings need to be specified. When creating a particle emitter, a dialog appears asking you whether you wish to enable Particle Physics rendering. Click OK to automatically apply the necessary rendering settings.

Plugin physics-33.png

If you click Cancel in the above dialog, you will need to make the following rendering settings:

1. Open the Image window by selecting View > Image window.

2. Click the triangle button to open the rendering settings. On the Effects tab, select Particle Physics from the Effector pull-down menu.

10-plugin physics-34.png

Both still and animation rendering will now work for Particle Physics as for normal rendering.

Plugin physics-35.png

Particle Physics Applications

Applying Motion Blur

Motion blur adds an after-image (blur) effect along the path of particles set in the Billboard. Motion Blur is applied in the Image window. To apply Motion Blur, on the Effects tab select Particle Physics from the Effector pull-down menu. Click the Set button to open the Particle Physics Effector Settings dialog.

Enable motion blur by turning the Motion Blur checkbox on, then choose the number of frames, from 1 to 16, you wish to blur from the Frames pulldown menu.

Plugin physics-36.png


Plugin physics-36-1.png

Left: No blur. Right: Motion blur applied to 8 frames

Adding Images to the Billboard

By assigning a custom image set in the Billboard as a particle, you can use any image you like as a Billboard.

Plugin physics-37.png

The original image is a 128 x 128 pixel RGBA image

Using Meta Particles (Shade Professional)

Choose Particle Physics > Meta Particle from the Create tool to create a sphere that can be used with the Meta Particle Renderer. The Meta Particle Renderer supports Ray Tracing and Path Tracing.

Plugin physics-38.png

By placing the Meta Particle sphere inside the Particle Emitter part, the sphere will be rendered as a blob particle.

Plugin physics-39.png

To add physics calculations for a part that is already applied to the Meta Particle Renderer, place that part inside the Physics Object - Particle Physics part. By doing so the sphere inside the part will be rendered as a Meta Particle. In this case, physics settings must be applied to the sphere inside the Meta Particle part.

Converting Particles to Objects

To convert particles into standard polygon mesh objects, first select the “Emitter - Particle Physics” part in the Browser. Then choose Convert to Polygon Mesh from the Custom tool or from the Attributes pull-down menu in the Browser.

Particle Physics Reference

Here each of the Particle Physics settings and functionality are explained.

Particle Emitter Settings Dialog

The Particle Emitter Settings dialog is accessible from the Custom tool by selecting Particle Emitter Settings when the Particle Physics emitter part is selected in the Browser.

Plugin physics-40.png
Preview Checkbox

Displays particle motion set in the Motion window in the Figure window. Particles are shown as an aggregation of spheres.

Render Checkbox

The particles are rendered along with other objects.

Basic Settings Tab

Emission Angle Slider and Textbox

Sets the angle at which the particles are emitted. The axis passing through the center of the particle emitter cone is considered 0.0.

Number Textbox

Sets the number of particles emitted in one second. In a 30 frames-per-second animation, this number divided by 30 will be the number of particles emitted per frame.

Emission Velocity Textbox

Sets the initial velocity of the particles in meters per second (m/s).

Variation Slider and Textbox

Varies the life and emission velocity of each particle for a more natural look.

False Start Textbox

Delays the emission of the particles by the specified number of seconds.

Animation Tab
Plugin physics-41.png

Size Textbox

Sets the maximum initial size of the particles, in meters. The graph measures 0 to 100%, making it possible to animate the particles’ size.

Life Textbox

Sets the lifetime of the particle from its generation until it disappears, in seconds.

Gradation Bar

Plugin physics-42.png

Sets the color variation of the emitted particles. Up to six new markers can be added by clicking on the gradation bar. To move a marker, click and drag it along the gradation bar. To delete a marker, click and drag it up or down, away from the gradation bar. The markers on each end cannot be moved or deleted.

Markers

Plugin physics-43.png

Marks the thresholds along the gradation bar for the color, size, transparency and glow.

Lifecycle Graph

Displays the size, transparency and glow of the particles over time. The markers are represented by points on the graph.

Plugin physics-44.png

Color Picker Box

Click on the box to select a new color for the currently selected marker.

Size Slider and Textbox

Sets the size ratio.

Transparency Slider and Textbox

Sets the transparency ratio.

Glow Slider and Textbox

Sets the glow ratio. 0.0 means no glow, 1.0 means the particle will be the specified color.

Effects Tab
Plugin physics-45.png

Receive Light Checkbox

Sets the particle emitter to receive light. When off, the particles are not affected by lights in the scene and keep the color set by the billboard. Objects set as particles do not receive light.

Blend Glow Checkbox

Blends the particles set by the billboard with the glow values set in the Animation tab using an addition blend. Creates a sparkling effect.

Drop Shadow Checkbox

Drops shadows from a light source. Distant lights, point lights and spot lights are supported. Objects set as particles do not drop shadows.

Wind Settings Dialog

Settings for all the wind effects (Cross Wind, Turbulent Wind, Tornado Wind and Gravitational Pull) can be made from the Wind Settings dialog. Wind settings can be previewed in the Figure window. To open the Wind Settings dialog, select the Wind Particle Physics part, and select Wind Settings from the Custom tool.

Cross Wind
Plugin physics-46.png

Enable Checkbox

Clear this checkbox to disable the cross wind effect.

Radius Textbox

The radius of the wind object centered around the start point.

Wind Velocity Textbox

The wind velocity at the start point of the wind object.

Effective Angle Textbox and Slider

The angle of the wind object’s end point from its start point.

Attenuation Textbox and Slider

Measures how fast the wind velocity drops with distance from the start point.

Turbulent Wind
Plugin physics-47.png

Enable Checkbox

Clear this checkbox to disable the turbulent wind effect.

Range Textboxes

The size of the turbulent wind area in meters, measured in the X, Y and Z directions.

Wind Velocity Textbox

Measures the maximum wind velocity inside the turbulent wind range.

Tornado Wind
Plugin physics-48.png

Enable Checkbox

Clear this checkbox to disable the tornado wind effect.

Initial Radius Textbox

Defines the radius of the tornado at the start point.

Terminal Radius Textbox

Defines the radius of the tornado at the end point.

Wind Velocity Textbox

Measures the maximum wind velocity at the start point.

Attenuation Slider and Textbox

Measures how fast the wind velocity drops with distance from the start point.

Spin in Reverse Direction Checkbox

Enable this checkbox to reverse the direction of rotation, so that the tornado spins counter-clockwise as viewed from above. Normally the tornado wind spins clockwise.

Gravitational Pull
Plugin physics-49.png

Enable Checkbox

Clear this checkbox to disable the gravitational pull effect.

Radius Textbox

The radius of the circle centered around the start point. The terminus of the gravitational pull is the base point.

Strength of Gravitation

Defines the strength of the gravitational pull at the start point.

Effective Angle Slider and Textbox

The angle of the end point of the gravitational pull from the start point.

Attenuation Slider and Textbox

Measures how fast the strength of the gravitational pull drops with distance from the start point.

Object Physics Settings Dialog

The Object Physics Settings dialog is accessible by selecting an object inside the “‘physical - Particle Physics” part in the Browser and choosing Physics Settings from the Custom tool.

Plugin physics-19.png
Preview Checkbox

Displays the object with the applied Object Physics Settings in the Figure window.

Render Checkbox

Renders the selected object after applying the Object Physics Settings.

Receive Force Checkbox

Enables the object to be affected by other objects with collision settings applied, effective between the Start Frame and the End Frame. If both the Start Frame and the End Frame are set to 0, the object will receive forces from other object throughout the animation.

Basic Shape Pull-Down Menu

Sets the preview shape displayed in the Figure window. Sphere, Box or Mesh shapes can be selected. Preview objects are marked by a “p” in the Figure window.

Accuracy Pull-Down Menu

Sets the number of subdivisions of the preview object. Select from Coarse (no subdivision), Normal (8 subdivisions), Fine (16 subdivisions) and Very Fine (32 subdivisions).

Material Pull-Down Menu

The type of material determines the Mass Density, Bounce and Friction values. Choose from Gold, Uranium, Lead, Copper, Iron, Aluminum, Magnesium, Water, Wood, Air or Smoke, or select Custom to specify other settings for the Mass Density, Bounce and Friction of the object.

Mass Density Pull-Down Menu

The average density of the particle. Choose from Gold, Uranium, Lead, Copper, Iron, Aluminum, Magnesium, Water, Wood, Air or Smoke, or select Custom to specify a value.

Bounce

Sets the amount of bounce exhibited by the particles.

Friction

Sets the coefficient of friction for collisions.

Initial Velocity

Sets the initial velocity of the object in the X, Y and Z directions (from left to right respectively), in meters per second (m/s).

Particle Physics Settings Dialog

The Particle Physics Settings dialog can be opened by selecting the Billboard - Particle Physics part in the Browser and choosing Physics Settings from the Custom tool.

Plugin physics-51.png
Basic Shape Pull-Down Menu

Sets the preview shape displayed in the Figure window. Sphere, Box or Mesh shapes can be selected. Preview objects are marked by a “p” in the Figure window.

Accuracy Pull-Down Menu

Sets the number of subdivisions of the preview object. Select from Coarse (no subdivision), Normal (8 subdivisions), Fine (16 subdivisions) and Very Fine (32 subdivisions).

Note: Billboard particles are always set to a Sphere basic shape and Coarse accuracy.

Material Pull-Down Menu

The type of material determines the Mass Density, Bounce and Friction values. Choose from Gold, Uranium, Lead, Copper, Iron, Aluminum, Magnesium, Water, Wood, Air or Smoke, or select Custom to specify other settings.

Custom Material Settings

Select Custom from the Material pull-down menu to enable the custom material settings.

Mass Density The average density of the particle. Choose from Gold, Uranium, Lead, Copper, Iron, Aluminum, Magnesium, Water, Wood, Air or Smoke, or select Custom to specify other settings.

Bounce

Sets the amount of bounce exhibited by the particles.

Friction

Sets the coefficient of friction for collisions.

Collision Detection

Collision Detection

Particles will be affected by the collision detection of other objects.

Collision Detection of Particles

Particles will be affected by the collision detection of other particles.

Particles Disappear after Colliding

Particles that collide with other objects or particles will disappear.

Billboard Settings Dialog

The Billboard Settings dialog is accessible by selecting the Billboard - Particle Physics part in the Browser and selecting Billboard Settings from the Custom tool.

Plugin physics-52.png

Particle Physics Settings Dialog

The Particle Physics Settings dialog can be accessed by selecting Particle Physics from the Effector pulldown menu on the Effects tab of the Image window and clicking Set...

Plugin physics-53.png
World Information

Gravity

Select Custom to specify another value for gravity.

Air Resistance

Motion Blur

Motion Blur

Enables motion blur.

Number of Frames

The number of frames for which motion blur is enabled.

Effector

Drop Shadow

Sets the strength of shadows dropped by billboard particles.

Particle Physics Limitations

Physics calculations for particles and physics objects will be recalculated if the sequence in the Motion window is moved. Immediately after loading a scene, the Figure window will not calculate or draw the preview. If the Motion window sequence is moved backwards the physics calculations will be redone from the first frame. If the Motion window sequence is moved forwards then only the physics calculation of the accumulated difference is done.

Hierarchical Physics Objects parts cannot be placed inside the Physics Object - Particle Physics part in the Browser. It will be read as a single part.

When using a custom image as a movie for the Particle Billboard, drop shadows are not supported.

Motion blur for particle billboards does not support shadows.

Shadows and light generated by particle billboards only support distant lights, point lights and spot lights. |

Personal tools