Hints & Tips

Expert Advice

The following is a compilation of hints, tips, and workarounds, that some of our expert and not-so expert users have sent in.

Using displacement maps

Q: It would be nice to be able to turn the bump feature of displacement off and to be able to view the u,v isoparms as they are truly displaced (sort of like a curve on surface except a curve off the surface).

A: If you turn the surface into a polygonal surface, you will have the exact measure of the displacement. Just keep the polygonal surface as a template to know the position of the displacement.

When animating textures

Q: Can we animate texture maps? Is there some way I can do that right now?

A: As in most of Alias functions, you can set keyframes for the values, in this case your texture, so if you change the values over time you will get an animated texture map.

Also, if you want to have a texture map with a "movie" you can just use the File texture and set keyframes for each image. The following is an example of a workaround:

Time=0

Keyframe=1

use extension=ON

extension 1 -> image.1

Time=1

Keyframe=2

use extension=ON

extension 2 -> image.2

How to create an aurora borealis

Q: Does anyone know of a way to model the Aurora Borealis?

A: Take some simple geometry (a plane or a rough shape) and map blurry noise on transparency and incandescence, either by using a ramp (very flexible) or just plain noise.

Apply color, then turn glow on for the shader, increase the slider value and turn Hide Source ON.

You should get some nice blurry glowing effects. Animating the noise or ramps will make them move. It may be difficult to preview without rendering, but with some tweaking you'll have the effect you're looking for. Don't forget to experiment with the environment glow parameters as these will define the type of halo and glow you'll get.

Using Glow with animation curves

Q: When working with glow, I've had problems with glow suddenly going brighter or dimmer. This usually occurs when a bunch of objects that have shader glow move into the frame. In one frame the object that should glow doesn't and then it will glow super bright in the next.

I've heard that adjusting the glow quality in the environment shader helps. But it doesn't seem to work any more. I noticed that this problem is still occurring in V6. Can someone tell me how to get around this problem? I want a solution that works for sure. This problem is simply driving me nuts!

A: Did you check the animation curve of the shader's glow parameter? Sometimes that's where the problem lies.

Tips on Label Mapping

Here are some tips on using labels. Create labels using a simple degree 1 plane with color and transparency mapping on it (or maybe curved if you're mapping onto curved surfaces). This means you can place the label quite easily on screen and the plane could cover several shaders and surfaces.

This is a bit easier to manage compared to a projection that you have to layer onto another couple of shaders. (This layering could be made easier if there was a way to pick an object and see it's shaders. At the moment you pick the shader and see the objects, but if you layer a shader how would you change the shader underneath that?)

A few things to remember:

Using transparency maps to create windows

Q: I am in the process of modeling a huge mother-spaceship. I want it to have tons of windows with lights glowing through them like any respectable spaceship.

A: Use a checker pattern as a transparency mask for the shader and place a light inside the model. This way, the light shines from inside the ship and very realistically casts checkered shadows on other outside parts of the ship.

To get the exact distribution of windows on your ship, you may have to play around with the checker transparency map parameters and its placement on the model. You may even have to use more than one of these.

Another alternative is to create a texture map to represent the windows, map this on as an incandescent map to your surfaces, then apply shader glow to these surfaces, making sure that your shader glow threshold is high enough so that the whole surface doesn't glow.

Note: If you get shimmering of the glow, turn up the quality of the shader glow in the environment shader.

Questions and Answers about Particles

Tip to remember when looping particles

Seamless animation frame loops of particle effects

The following method allows the creation of looping frame segments for flame and smoke effects.

Turn Time Random OFF on the particle emitter. Particles effects will now cycle at a rate equal to 20 times the turbulence persistence.For instance, if the turbulence persistence is 6.0, a 120 frame animation will loop perfectly without a jump.

The start frame for the particle emission should be equal to minus the particle life-span. Also, if the emitter object is in motion, that motion should be made to exactly loop.

This animation should also be applied to the runup portion of the animation (in the negative frames).

This can be done using Cycle Before on the animation curve in the Action Window (Animation Action window). Any animation on particle parameters( such as particles/sec) would need to be similarly looped using Cycle Before.

Particle Rendering Questions

Q: My smoke breaks apart into spherical blobs. How can I avoid this?

A: If you are modeling smoke and flame effects, the individual particles will need to grow in size with age to mimic diffusion effects. To do this apply a ramp texture to the particle size.

The top of the ramp is the start size, the bottom, the size at the max particle lifetime.

The exact rate of expansion for particles needs to be fine tuned for any given simulation.

For example, if you have a slow particle emission rate(particles/sec) and the particles are long lived and blown around by a very turbulent wind, then the max particle size (value at the bottom of the ramp texture) will need to be very large. Look at how far apart the particles are at different points their lifetime and use that to judge the size values in the ramp texture.

For an effect like a rocket trail, there should be very rapid expansion as the particles leave the rocket nozzle and quickly expand into a puff of smoke. After that the expansion is much slower as the smoke trail hangs in the air, gradually dissipating.

Q: Even after getting the blob sizes to expand properly the smoke still looks blobby. What do I do?

A: Use the blob noise. This applies a solid noise to the density of the blobs, breaking up the blobby effect. If this fails, reduce the size of your particles, lower the density, and increase the particles/sec. Instead of blob noise, you could also try mapping the blob density with a solid texture (blob map). However, a solid texture can create the effect of blobs moving though smoke frozen in the air. You should animate the solid noise if you do this. You could also try a surface texture like Fractal, however with surface textures each blob will appear the same: surface textures are mapped to exactly fit the bounding square of the blob in eyespace.

Q: My particles appear/disappear too suddenly. How can I avoid this popping effect?

A: Texture the transparency of the particle system with a ramp texture. To make the particles fade out smoothly at the end of their lifetime, have the ramp fade smoothly to white at the bottom. The top of the ramp is the transparency at the start of a particles life and the bottom is for the end of the particles life. Note that this mapping is different from that for size.

Size maps across the max particle life-span, so that particles that die early do not get a chance to grow. Conversely, transparency maps to an individual particle's life-span, so that a particle that dies early will still fade out properly.

Q: How do I put highlights on hairs?

A: Use the surface_shade parameter (1 is bright, focused highlights, 0 is no highlights).

Q: How do I avoid banding in hair highlights?

A: Increase the number of hair segments, or lower the surface_shade parameter. (Highlights are constant across hair segment spans).

Particle Motion Questions

Q: My particles are falling up instead of down. What did I do?

A: If the motion_type is HAIR or SOLID then you probably increased the particle size.

A particles density is a function of their mass / size, so increasing the size can lower the particle density to the point where it is lighter than air (see the air_density on the Environment shader). Your particles will behave like helium balloons in air, or air bubbles in water. To fix the problem, increase the mass of your particles.

If the motion_type is GAS, then either the buoyancy is greater than zero, or you have an upward wind force (GAS particles are not affected by gravity).

Q: How can I keep hair from stretching when my object moves? Using the stiffness parameter doesn't help.

A: Particle hair has a time lag such that the ends of hair strands move after the base of the hair moves. The number of frames of lag is equal to the number of hair segments. To avoid this lag, make the number of steps/frame in the simulation equal to the number of hair segments.

You will also have to increase the particles/sec by a corresponding factor to maintain the same number of hairs.

Q: How do I get my wind force, or turbulence to move SOLID particles?

A: Depending on the mass and size of the particles, the wind force intensity may need to be very large(i.e. 1000). As the mass gets lower the particles will be pushed more easily by the wind. Imagine lead shot in a wind storm verses balloons.

Q: How can I get smoke to flow around an object?

A: Put a repulsive wind volume light force where the object is. Make sure to use GAS motion_type for the particles. You could also use a torus shaped volume light if you wanted the smoke to curl around the back of the object (The radial direction vector should be non-zero).

Q: How can I make surfaces emit hair or particles from only a portion of that surface?

A: Texture map the particles/sec. Where the texture is white particles will emit at the rate specified in the particles/sec field. Where the texture is black no particles will be emitted. Where the texture is 50% grey, the particles will emit at half the rate specified in the particles/sec field. This also works for lights, where the texture is mapped according to the projection of the light (pointlights are spherical mapped, directional are planar, etc.).

Q: How can I reverse the direction that particles are emitted?

A: Make the speed negative.

Q: How can I make particles emit from both sides of a surface?

A: Make the speed zero, and the speed_range equal to the desired speed.

Q: How can I have particles already created by frame 1 of my animation?

A: Set the particle start frame to a negative value.

Q: How can I fill large areas of space will particles without large runup times? (for effects like snow, rain, swirling fog, etc.)

A: Use a volume light particle emitter, scaled up to fit the space you wish the particles to appear in. For steady-state effects you can have a ramp texture on the transparency with white at both the top and bottom and with black in the middle. This will cause particles to gradually appear when born, and to gradually disappear when they die.





aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.