Stratus3D

A blog on software engineering by Trevor Brown

Website Relaunch

The Stratus3D website was hacked about six months ago and I haven’t had time to put it back up. I rebuilt the site and launched it on 1/1/2014. The new version is simplier than the old one. It also lacks some of the things the old site had such as sections for 3D models and tutorials. The site currently doesn’t have a section dedicated to 3D models and the Blender tutorials are now listed under the blog. I will be working on adding the missing content back to the site over the next couple of months.

Enjoy the website!

Guide to Volumetric Shading in Blender 2.50

In this tutorial I will explain what every setting in Blender 2.5’s volumetric shader does and how it works.

I am using Blender 2.50 Alpha 1.

In Blender 2.5 there are many new features in the properties window. In the material tab you will find a new set of four buttons. These are four different types of material available in Blender 2.50. Three of these have been around for a couple of years, but the volumetric shader is a new feature in blender 2.50. When you select this option a whole set of new buttons, input boxes, and sliders appear. I list below what each button does and what each slider controls. I also show several images of each different option.

Density Panel

There are two input boxes/sliders. The “Density” box controls the overall density of the shader. Range=0 to 1

Density1Density2

The “Density Scale” box controls the scale of the density. Basically it serves as a multiplier for the density value. Range= 0+

DensityScale1DensityScale2

Shading Panel

The settings in this panel control the color, shading, emission, and reflection of the material. There are five different groups of settings. First is the Scattering value. The higher the value the denser the material, works similar to the density value. Range= 0+

Scattering1Scattering2

The Asymmetry value controls how the object gets shaded. Anything near zero looks like regular shading. Values closer to 1 and -1 appear flatter and slightly darker. Range=-1 to 1

Asymmetry1Asymmetry3Asymmetry2

The Transmission color controls the color of the material that is shaded or is receiving scattered light through the material.

Transmission_redTransmission_green

The Emission color and value work just like “Emit” value in surface shader materials. Range= 0+

Emit_whiteEmit_red

The Reflection color and value work just like the “Diffuse Reflection” color and value in surface shader (solid) materials. Range= 0+

Reflection1Reflection2Reflection3

Lighting Panel

The parameters here control the shading and shadows of the material. The Lighting Mode drop down box contains five different lighting methods. Shadeless, this option renders the material with out shadows or shading. The material still casts shadows.

Shadeless

The Shadowed option works similar to the shadeless option but lets the material receive shadows as well.

Shadowed

The Shaded option renders the material with shading, it will not receive shadows from an outside object (for some reason if another object is inside a object with this material it will cast a shadow) unless the External Shadows option is turned on. The Light Cache option saves the shading to a voxel grid saving render time. This is less accurate but faster. The resolution value controls the resolution of the voxel grid. Higher values are better quality but slower. If the shadows option is enabled the shadows will be unscattered (sharp) as it passes through the material.

Shaded1Shaded2

Multiple Scattering option renders the material with shading scattered in multiple directions. The shading appears like it has been blurred. There is something very peculiar about the multiple scattering option: it does not receive shadows from outside sources except when you choose the shaded option and click “External Shadows” and then select the Multiple Scattering option from the dropdown menu. The Multiple Scattering option can take significantly longer to render than the other shading options (The images of the volumetric sphere took on average 10 seconds to render, the ones below took about 35 seconds to render.

Scattered1Scattered2

There are several parameters, the first being Diffusion, this value controls the strength of the “blurring” effect. A lower value will result in less blurring, or sharper shading. A value of 0 results in no scattering. Range=0+

Diffusion1Diffusion2

The next parameter is the Spread value. The spread value works similar to the Asymmetry value. Values close to one appear normal while values further from one, .5, 1.6, appear flatter and slightly darker and make the volume appear as if it had been shaded with the Oren/Nayer shader. High Spread values take a very long time to render. Range=0+

Spread1Spread2

The last value is the Intensity value. This controls the intensity of the scattering. A low value near zero results in no light/shadows on the material, while a high value results very bright lighting. It works just like the reflection parameter but only for the scattered light. Range=0+

Intensity1Intensity2

The Shaded + Multiple Scattering option combines both scattering options together. I am not sure why you would need this when both options have everything that you would need.

ShadedScattered

Transparency Panel

There are only two options. Z-Transparent. This option works fine most of the time, but it won’t look right in raytraced reflections. Raytrace. This option only works on scenes that have raytracing enabled.

Integration Panel

The options here control sampling frequency and cutoff. The Step Calculation dropdown menu has two options for step calculation: Randomized or Constant. There are also two input boxes. The Step Calculation dropdown option Randomize causes the step calculation to be random while the Constant option causes the step calculation to be constant. I would not use Constant calculation because it causes banding anytime the step value is higher than .15. You might however, want to use it if you were rendering with a small step calculation, in which case it would be noise free.

ConstantRandom

The next parameter is the Step Size value. This value controls the size, or distance between, the volume depth samples. A higher value means poorer quality and faster rendering. Higher values will have more banding if you are using Constant Step Calculation or more noise if you are using Random Step Calculation. Range=0+

StepSize1StepSize2

The Depth Cutoff value controls when the step calculation is stopped. The value controls when the calculation is stopped based on the transmission of the material. When the transmission drops below the cutoff value the calculation is stopped. This speeds up rendering in large, dense volumetric objects, but with less accuracy. Range= 0-1

cutoff1Cutoff2

There are several other articles on Volumetric Shading in Blender 2.50, here are two of them:

Download The PDF

Improve the Performance of Your PC

Command_Prompt_Window

You can improve the performance of your PC by killing unnecessary processes. Those unnecessary processes use a small amount of processing power and eat up a good portion of your memory. Just bring up the control panel and see how many processes there are. How many of these do you really need when doing resource intensive tasks like 3D rendering and gaming? Not many.

If (using windows XP) you go to: Control Panel < Administrative Tools < Services you can see a description of what each process does. Over half the processes are unnecessary for rendering and baking scenes in Blender. You can stop a process by selecting the process and clicking “Stop”. By stopping the processes you don’t need you can speed up your render time by three or 4 percent. That might not seem like a big improvement, but when rendering takes three or four hours, it is definitely worth it.

Ok, now you have started to stop processes by manually clicking stop for every process. This is a pain! If you double click on the process in the Services window, a dialog comes up with several options. There is a drop down box with the startup type options. You can set the process startup to automatic or manual. By setting the process startup type to manual the process will not start unless you start it manually. This is fine if you are never going to need the process. But some processes you need to use most of the time and only need to turn off for resource intensive tasks(processes like your anti-virus program), so these you will still need to manually start and stop in the Services window.

So I will show you a better way to manage your processes.

You can create a MS-DOS Batch file to stop all the processes you don’t need. You can also create a Batch file to start them again once you’re finished rendering. Creating a Batch file is easy. First, get the name of all the processes you don’t need (use the name at the top of general tab in the properties dialog, not the name of the process in Services window). You can find a list of all the unnecessary processes at OptimizingPC.com, check it out. There are dozens of processes you think you need but don’t. You could even stop the Explorer process while rendering or gaming! (I would not recommend it, but you could). To now create the MS-DOS batch file, right click on your desktop and create a new text file. Rename it to StopProcesses.bat. Now right click on it and click edit. In notepad write the following line of code for each process you want to stop (_processname _being the name of the process you want to stop) :

net stop _processname_

Add a new line of code for each process, then save the file. Now when you run the file it will stop all the processes you don’t need! You can also create another file to start the processes again. Just type this line of code for each process you want to start.

net start _processname_

You now can stop and start all the processes you don’t need by just running a batch file!

Note: I learned this from an IT guy. I am not an IT guy so if you see anything that is not completely accurate or incorrect please let me know. I am using XP so I am not sure how this works on Vista or Windows 7.