Hello,
I am trying to implement a transparency scaler and emission scaler within Mental Mill. Any ideas?
Thanks!
Hello,
I am trying to implement a transparency scaler and emission scaler within Mental Mill. Any ideas?
Thanks!
Hello Mill Worker,
Could you explain more precisely what you exactly mean, please?
- You you want to have a shader were you are able to scale its transparency (=alpha) value between 0 (fully opaque) and 1 (fully transparent), right?
- About the emission scaler: You want to add some color on top of your illumination node?
Best Regards,
Ruediger
Hello ruediger,
Correct, I am looking for a way to control the transparency of the shader via its alpha channel. I found a cgfx shader that does this and the emissive power, however I was unsuccessful in appending my shaders with snippets of that code.
Attached are examples of the transparency and emissive features I am trying to copy (taken from a 'Default' shader in FX Composer.)
Hi,
it's best to build a Phenomenon to achieve this effect. I have attached an example of how to assemble the nodes that you need.
Note: When you rename an interface parameter (=the input parameters on the left) of the Phenomenon, make sure to rename also the internal name: This is the name of the variable that is going to show up in FX composer (prefixed with the name of the Phenomenon).
You can easily rename an interface parameter by right-clicking it and select "Rename '<parametername>' ".
For the transparency, you have to hand-massage the generated output of the Phenomenon by adding the following lines into the pass statement (this is CgFX):
Please read thread http://forum.mentalimages.com/showth...t=transparency for a detailed discussion of transparency.Code:pass P0 { ... BlendEnable = true; BlendFunc = int2(SrcAlpha, One); ... }
Best Regards,
Ruediger
Thanks ruediger, that helps quite a bit!