Tuesday, January 27, 2015

Viewport Mouse Focus & Focal Point Sampling

There's been a feature out in max since 2013 called "AutoFocus Viewport" that allows you to maximize a viewport from a multi-view display, based on the current location of your mouse (with the hot key for maximizing a viewport (Alt+W)). In other words, you can maximize a viewport simply based on whether your mouse cursor is currently in that viewport. Previously you had to R-Click to activate a viewport before maximizing. This functionality can be enabled/disabled from the "Mouse" tab of the "Customize UI" options.The "Mouse" tab was implemented in release 2013 and also contains some other features including some old favorites that used to be in the "Viewport" tab of the "Preferences" options.


There have been some additional issues reported by users related to a new 2015 viewport navigation feature (not documented very well IMO) to resolve some older viewport navigation complaints. Any long time user is familiar with max's perspective view problem zooming and panning in large scenes. For example, after a lot of zooming in to an object, the increment of zoom and pan becomes very small and you are forced to zoom extents to re-establish an appropriate increment based on your current view/proximity. "Viewport Focal Point Sampling" was implemented to try and fix this, but apparently didn't work very well. You can follow some of the threads about this here: Focal point Sampling Issues. It is reportedly fixed in Serve Pack 3, though one of the user comments on the SP 3 release states that it is not fixed. SP3 is included in Extension 2 for subscription user and can also be downloaded here available from here:

Monday, November 17, 2014

New Maxscript: Disable Edged Faces on Selected

I've written a new maxscript to disable the default viewport feature which shows Edged Faces on any selected object. As far as I know, this feature was NOT enabled in previous versions of Max but suddenly seems enabled by default in 2015. Maybe I've done something without realizing it, but I don't like this feature enabled for each viewport by default. I love Edged Face mode, but I want control over when I use it.
I've written a new Maxscript to "Disable" this feature on a Max "Start", "Reset", or File "Open" command. You can still enable this feature during your work session on a viewport by viewport basis (as it is implemented) even if you run this script.
Go to http:\\www.digitalanimation.net  for the download

Forest Pack "Hidden" Render Nodes

Rendering With Forest Pack???
Have you noticed that sometimes itoo's Forest Pack wants to create some "nodes" just before rendering? Not sure what causes this, but I've seen it now in a Max 2015 scene with a large Forest using Mental Ray Proxies. Max throws a warning upon rendering if the current ACTIVE LAYER is hidden. Make sure your current active layer is NOT HIDDEN and can be written to for these temporary Forest Pack nodes before submitting for render. These Forest Pack nodes are deleted as soon as the render is finished, however, they can create an extra layer too that is suddenly empty when the render is finished. Not sure what specific scene/forest pack/max settings are creating this odd occurrence or if this is something endemic to Forest Pack now. Anyway, it seems like a strange thing I came across and wanted to pass on. Happy Rendering!

Sunday, October 19, 2014

Displacement and Falloff

If you've used the Displacement option on a material with the  Mental Ray renderer then you've probably been frustrated when trying to use it within an animation. You can use the "View" option which will limit the effect to your current camera (or perspective view) and this works fine for still images. Over the last few years I have on occasion wanted to use Displacement to help create grass in an animation. Of course the "View" option will create all kinds of artifacts and flickering under this scenario, regardless of your render settings, as MR re-computes the Displacement effect each frame and it ends up just slightly different each frame. I have not had luck unchecking Displacement, being willing to eat the render overhead as the effect is computed for the entire scene.
You might think to try using a "Falloff Map" map to control the effect over distance as I did. However, for whatever reason, Mental Ray will not respect this and it still computes the effect over the entire surface. I've even tried using a black and white "Mask" Map to control the physical location of the effect on the surface and this fails also. Below is a sample rendering with this technique. In this case the Black diffuse colored grass is in the foreground and shows what should be the limit of the displacement effect, yet the effect continues on to the horizon as shown with the green colored grass.
I would have to assume that the "View" option in the renderer precludes the use of any other technique that might do the same thing.



I have yet to find an acceptable solution and it's sad because this technique can be used to quickly add detail where needed, but apparently only in still images. If you come across this post and have a solution, please let me know.

Wednesday, September 24, 2014

DAS Tree Creator Maxscript

Progress continues on the DAS Tree Creator Maxscript for creating fully 3-dimensional trees using opacity/cutout mapped "Branchlets" or "Fronds" for the primary leaf regions. The script is very robust yet easy to use, giving the artist control over the structure of the tree, the level of detail and mapping, plus the ability to edit the tree as a mesh object. Below is a capture of the current UI from the script:



The script is intended to make good looking trees for real-time applications, not to try and replace existing programs like Onyx Tree Storm, Laubwerk, or X-Frog trees which make photo-realistic trees for pre-rendered applications. Trees generated from the script can look very good with as few as 1500 poly's but the user can control the level of detail and create better looking trees at the expense of poly counts.The user has control over the shape, size and detail of the trunk as well as the number, shape, size and detail of branches. Using your own created "Branchlets" (several examples will be included with the script) you can customize the canopy shape and density. The script has the ability to make conifers as well as deciduous trees and even bushes. Below is a screen capture of a test making a Birch tree. The total number of polys is less than 1700 (the viewport stats include a few hidden entities).


Though most rendering engines have gone away from opacity mapped trees, it is still needed in the real-time applications where millions of polys for foliage is unacceptable.
A release date is not set but it is my intention to make this a commercial script.

FBX exporter Maxscript for UE4 by Tom Shannon

Tom Shannon http://www.tomshannon3d.com/ has written a Maxscript to assist with the tedious process of exporting scene objects to FBX for use in Unreal Engine 4. I came across Tom's script while doing some research online, but haven't had a chance to try it out yet.You can find info and a download link here:
http://www.tomshannon3d.com/2014/07/tstools-first-release-ue4-mass-fbx.html

There are several youtube video links posted as well.
Thanks Tom!

UVW Unwrap for Unreal Engine 4

Users of Epic's Unreal Engine 4 will know that you need a UVW layout with no overlapping faces for static mesh shadow computations. By default this is UVW channel 2 but you can change it to whatever channel you want inside UE4, especially if you have some complex mapping using several channels already. It couldn't be easier to setup in Max. First, just apply a new UVW Unwrap Modifier to your object and change the Map Channel to the last unused number. Then open the UVW Editor and under the "Mapping" menu item choose "Flatten Mapping..." Typically you can accept the default settings and your done! Below is the result with a Standard Max Teapot Primitive:


If you're not happy with the results you can try "Unfold Mapping..." and/or the "Pack UV's.." option from the "Tools" menu. The integrity of the layout doesn't really matter since it's just being used for shadow casting. It's not really important that these UV's be packed efficiently. The only critical issue is that none of the UV's can overlap or the shadow casting algorithm will fail, you'll get a warning from Unreal and there will be no shadows computed for that mesh.