PDA

View Full Version : More shaders



ruediger
April 8th, 2009, 17:10
After receiving a request from a user who had seen shaders that we never released in screenshots, I will post them here in the forum.

These shaders are not part of the official distribution, however they are a good resource to see what kind of shader effects you can create by writing your own MetaSL code. Take a look at the MetaSL code and feel free to create stunning shader networks results with it or just use it as a learning/inspiration resource to write your own shaders.

Installation procedure:


copy the shaders to the directory of your choice.
In mental mill, choose "Edit > Preferences... > Path" and add your shader path where you put your msl shaders.
(optional but highly recommended) Add the shaders to a folder in the treeview toolbox: Right-click and select "Add Shader". The shaders will now show up in your toolbox so that you can create instances. NOTE: If you don't get the option to add a shader to a folder in a toolbox, it is locked. You have to unlock it first to add shaders.


There are two surface shader nodes that are nice to work with as well as a fractal node which shows what other stuff you can do with a shader. Though there won't be many occasions where you need a Mandelbrot fractal texture ;) Nevertheless it's a nice example if you always wanted to know how simple it is to code a fractal.

Some usage hints:

Material_easy_material: if you set the edge falloff to something between 0 and 1, you get a more cartoony looking effect. Making the specular relatively sharp and big and using a too bright color for the highlight, gives a very plastic like looking effect. - Ready to create the shaders for your own Toy story ;)

Material_easy_metallic: The inspect specular weights switch, shows how the specular highlight is contributing to the diffuse surface color: Green means, that it adds intensity, red means that is subtracts color from the diffuse lighting. This is not correct in any physical way, but it gives very nice metallic highlights. Note that the specular even contributes to the backside of the object (which is also not realistic but looks nice). You can control this behavior by using the parameter "Backface specular intensity".

Texture_fractal: You can choose between the Mandelbrot and Julia fractal. To see the original Mandelbrot fractal, you must set both Real Startvalue and imaginary Startvalue to zero. Setting "Max Iterations" to a higher value, will give you more detail in the fractal, but will consume more GPU processing power.
The raminaing parameters control size and color of the fractal.

Have fun with these.

Cheers
Ruediger

PiXeL_MoNKeY
April 18th, 2009, 01:47
Is it just me or does the Artist Edition require you to edit the "mill_toolbox.xmsl" by hand to add new shaders? Version 1.0, build 45261.1949.

-Eric

David Marks
April 18th, 2009, 02:20
Hi Eric,

The Artist Edition is intended for schematic editing of predefined nodes. The Standard Edition is aimed at folks wishing to write custom MetaSL code.

PiXeL_MoNKeY
April 18th, 2009, 04:28
Are there plans to create an Artist Edition forum? The reason I ask is there are going to be other users like me wondering why the stuff posted here doesn't work in the Artist Edition.

-Eric

Olaf Finkbeiner
April 18th, 2009, 07:12
Hi Eric,
at least you will be able to use shaders developed by standart edition users in max...
We have already allocated the funds to buy the standart edition ;)
The artist edition is a "teaser" edition i think...
And its not the only drawback...
But as you say in germany: You dont look into a horeses mouth if it was a present...

Olaf

matic
January 19th, 2010, 20:30
Excellent. The more examples, the better! I would urge you to add as many of these as you can to the mentalmill application downloads, right now the number of example shaders is kind of sparse.

salute
January 13th, 2011, 08:23
Hi

Is it possible to post one of the shaders which is on the cgsociety page (mill brushed metal):

http://features.cgsociety.org/stories/2009_02/mental/F8_mill_brushed_metal.jpg

Best regards
Giovanni

Molt
April 23rd, 2011, 12:01
Just been trying to import these into my shiny new Mental Mill SE and I'm having problems.

Material_easy_material_2.msl and Material_easy_metallic.msl both import fine but when it tries to load Texture_fractal_2.msl it fails as it cannot open a file named stdlib.msl.

Any suggestions?