This example scene shows Paint Effects trees and grass used to create a forest along with some fog. In order to get the lighting in the clearing the way I wanted I used several very bright spotlights with fairly high resolution shadow maps. The leaves and branches are animated using the built in turbulence on the pfx brushes. I used translucence on the leaves so they would back light and as well edited the shadow color on some lights to allow more light to penetrate through the leaves, simulating scattering a bit. Note that the render is rather longish, partly due to all the shadow maps( it draws the entire pfx scene for each shadow map).
The scene has the stroke display quality settings low to make updating a bit faster and use less memory. In addition displayAsMesh is toggled off for grass and brush, which reduces memory overhead a bit. Note that trees and blowing grass update during playback, because they have turbulence animations. For fast playback one could set paint effects to "interactive" in the performance options. Then the pfx would not animate during playback.
There is a slight flicker problem during animation that perhaps a bright user could fix. I think this must be due to the brightness of the lights combined with the depth map resolution limits... perhaps made worse by having a non-black shadow color. As the leaves animate the combination can result in holes suddenly opening up in the shadow map allow light to pop on for those bits. A real scene would tend to not have this problem due to multiple scattering of light through the leaf canopy. I tried converting everything to poly and had the same problem, so I'm pretty sure its the way the lights are defined... they have rather extreme intensities, but in real life a forest is quite dark compared to the sky and outer illumination.
Forest Road using Paint Effects

Fog illumination seen without Paint Effects
I used the physical fog "atmospheric" setting ( see envFogMaterial node ) with a low airLightScatter value and careful placement of the fog's sun position. (the physical fog has a single simulated sun that illuminates the fog, but not objects in the scene) The low airLightScatter causes the fog to be brighter where one looks more in the direction of the sun. By positioning the sun to the right of the scene I was able to create the brightness gradient in the fog that I wanted, without resorting to full volumetric shadowing. One can do nice volumetric shadowing with Maya Fluids, but they do not integrate well with paint effects at render time, while the environment fog has special code that makes it work well with paint effects.
In an actual forest the light scattered through the leaves would illuminate the fog, giving the fog a greenish tinge, so I make the fog slightly green to simulate this.
Additionally I wanted the background to be very bright from overhead. To simulate this bright background I created a box(nurbsCube1) with a surface shader that had a bright outColor(value set to 4.5 in color editor) and positioned it around my scene. The bright color punches through the fog where it is nearer to the eye.
Finally I added a small amount of depth of field, focusing near the camera to simulate the way dense fog slightly blurs distant objects.
The trees in this scene are have been modified from existing presets. If you want to make any tree or bush in this scene a preset it is easy. Select the tree and then do "Paint Effects:Get settings from selected stroke", followed by "Paint Effects:Save Brush Preset". If you want to create an icon for the preset you can paint a stroke of the brush in the paint effects panel, then in the save preset box select "grab icon" and drag the mouse over the region in the panel to become the icon, then save the preset. One can also create icons from the render view window by using "View:Grab Swatch" from its menu.
You can find the Scenefile and SourceImages below.
In an actual forest the light scattered through the leaves would illuminate the fog, giving the fog a greenish tinge, so I make the fog slightly green to simulate this.
Additionally I wanted the background to be very bright from overhead. To simulate this bright background I created a box(nurbsCube1) with a surface shader that had a bright outColor(value set to 4.5 in color editor) and positioned it around my scene. The bright color punches through the fog where it is nearer to the eye.
Finally I added a small amount of depth of field, focusing near the camera to simulate the way dense fog slightly blurs distant objects.
The trees in this scene are have been modified from existing presets. If you want to make any tree or bush in this scene a preset it is easy. Select the tree and then do "Paint Effects:Get settings from selected stroke", followed by "Paint Effects:Save Brush Preset". If you want to create an icon for the preset you can paint a stroke of the brush in the paint effects panel, then in the save preset box select "grab icon" and drag the mouse over the region in the panel to become the icon, then save the preset. One can also create icons from the render view window by using "View:Grab Swatch" from its menu.
You can find the Scenefile and SourceImages below.
editPfxOnPolyPath.mel
parentToSurface.mel
nClothBook.ma
dynamicFollow.mel
cameraFollow.mel
cameraFollowScene.ma
lightOcclusion.ma
fireball.ma
itsSlinky.ma
TunShu_BindClothSkin.zip
confettiFall.mb
simpleConfetti.ma
roundConfetti.ma
partyStreamers.ma
waterTank.ma
nClothWater2.ma
nClothWater.ma
waterPlayground.ma
sunsetLeaf.zip
oakBigLeaf.mel + oakBigLeaf.mel.icon
ribbonTwist.ma
bagOfMarbles.ma
toonOcean.ma
buckySphere.ma
thickSlab.ma
phoneChord.ma
forestRoad.ma
bark.iff
basicLeafHC.jpg
birchBark.gif
grassRoad.jpg
leafSerrate.tif
WhiteBark.tif
sideleaf.rgb
parentToSurface.mel
nClothBook.ma
dynamicFollow.mel
cameraFollow.mel
cameraFollowScene.ma
lightOcclusion.ma
fireball.ma
itsSlinky.ma
TunShu_BindClothSkin.zip
confettiFall.mb
simpleConfetti.ma
roundConfetti.ma
partyStreamers.ma
waterTank.ma
nClothWater2.ma
nClothWater.ma
waterPlayground.ma
sunsetLeaf.zip
oakBigLeaf.mel + oakBigLeaf.mel.icon
ribbonTwist.ma
bagOfMarbles.ma
toonOcean.ma
buckySphere.ma
thickSlab.ma
phoneChord.ma
forestRoad.ma
bark.iff
basicLeafHC.jpg
birchBark.gif
grassRoad.jpg
leafSerrate.tif
WhiteBark.tif
sideleaf.rgb
In order to post any comments, you must be logged in!
great job!
i’ve never used Paint FX so heavily...because i use Mental Ray
Shall we see Paint FX on MR without converting that stuff in polygons ??
I hope that we will see it soon…
Thanks!
Andrea
I can only hope to start doing scenes like this… I’ve only recently started using Maya myself (and I can recommend the Digital Tutors training material for any beginner out there!) and Maya has captured my imagination like you cannot believe. I’ve been drifting in out of all different sorts of Computer Industries, from programming, to web design to system administration… this is the first time something’s held my imagination.
Thanks for a great tutorial… hopefully it won’t be too long before I understand what you did!




