Stacking Materials

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

User avatar
skoeth
Licensed Customer
Posts: 67
Joined: Sat Sep 27, 2014 12:48 pm

Hi guys,

im just wondering if it's possible to stack multiple materials on one object in Cinema.
Like with the native material system it was possible to e.g. put a material with an alpha over a plain material
so you can see something "alphaed out" over the plain texture.

Using Octane it will only show one material and ignore the other.
Using MixMaterial fades them together but thats not what i want.

I have like a fresnelled plain texture and wand to put another "glassy coat" material over it.
Any ideas how to achieve this?


thanks you,
j_p
MacPro5,1 OS X 10.10.3 | GTX TITAN Black, GTX 970, 3x GTX 780Ti, GTX 780
pBarrelas
Licensed Customer
Posts: 68
Joined: Tue Jun 29, 2010 6:12 pm

You have the Mix Material for that.
Inside the Mix Material, you have Material 1, Material 2 and an Amount parameter.
Material 1 is your base material and Material 2 is your coat, in the effect you're trying to achieve. Having a Float Texture in the amount, works as a slider to control how much you want from either materials.
Win 8.1 Pro 64-bit| i7-4930k 3.4GHz | 32 Gb RAM | GTX 980 4Gb| Driver Version 344.75
User avatar
skoeth
Licensed Customer
Posts: 67
Joined: Sat Sep 27, 2014 12:48 pm

thanks for your reply.

If i'm understanding you right that means you can only like blend the visibility of the materials.
What i want is both materials have 100% visibility but the "coat" has an alpha e.g. a typo.
MacPro5,1 OS X 10.10.3 | GTX TITAN Black, GTX 970, 3x GTX 780Ti, GTX 780
User avatar
NVN
Licensed Customer
Posts: 504
Joined: Tue Jun 08, 2010 8:10 pm

i ask the same question long time ago.
Mix Materials are bullshit......

for ur problem.
use a octane fresnel shader for blending.
User avatar
atome451
Licensed Customer
Posts: 285
Joined: Mon Feb 22, 2010 8:04 pm
Location: Brussels - Belgium
Contact:

That's what explained pBarrelas.
With a black and white texture (like an alpha or a grayscale bitmap) in the amount of your mixTexture or mixMaterial, you'll be able to do what you want.
With a mixMaterial, the white of the amount will show the material 1 and the black of the amount will show the material 2.
It's reversed for the mixTexture (i don't know why...): the black will show the texture 1 and the white the texture 2.

OF course, all intermediate greyscales between black and white will show an amount of the first and the second material/texture.
Win10 64bits | 3x 980 + 2x 670 + 1060 | Cubix XPander + network | Core i7 3600 MHz | 32GB | 1300w PSU
Sorry for my bad english...
User avatar
skoeth
Licensed Customer
Posts: 67
Joined: Sat Sep 27, 2014 12:48 pm

atome451 wrote:That's what explained pBarrelas.
With a black and white texture (like an alpha or a grayscale bitmap) in the amount of your mixTexture or mixMaterial, you'll be able to do what you want.
With a mixMaterial, the white of the amount will show the material 1 and the black of the amount will show the material 2.
It's reversed for the mixTexture (i don't know why...): the black will show the texture 1 and the white the texture 2.

OF course, all intermediate greyscales between black and white will show an amount of the first and the second material/texture.

thank you very much, solved my problem!
MacPro5,1 OS X 10.10.3 | GTX TITAN Black, GTX 970, 3x GTX 780Ti, GTX 780
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

I like to do a explain about stacking materials. Why some features are hard to implement in our plugin?
Cpu renderers can do this much easier because directly can sample materials in their plugins.

But we have to create and store each materials and register to Octane engine. And we have to keep this copy until render session is active.
For stacking, we would have to create some complex mixed materials by assigned tags for each stacked assignment. And we have to keep this virtually created mix materials. I'm thinking about this for a while. Therocially that's possible, i like to spend some time to test it.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
pBarrelas
Licensed Customer
Posts: 68
Joined: Tue Jun 29, 2010 6:12 pm

Why not making a layer material, similar to the Mix material but up to 10 materials (as an example), where the mixing factor would be accessible next to each material entry by either using a float or a texture?
Win 8.1 Pro 64-bit| i7-4930k 3.4GHz | 32 Gb RAM | GTX 980 4Gb| Driver Version 344.75
waterthinking
Licensed Customer
Posts: 67
Joined: Fri May 28, 2010 8:27 am

i am with NVN.. mix materials is not good enough; what if I have a piece of wood with a thick gloss coating? Stacking should be the way to go on an unbiased renderer imho. I find there is a lack of quality/realistic images on octane forum (compared to indigo/corona) that might have something to do with the shaders behaviour and or tonemapping (although hard to put the finger on it)
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

pBarrelas wrote:Why not making a layer material, similar to the Mix material but up to 10 materials (as an example), where the mixing factor would be accessible next to each material entry by either using a float or a texture?
If i create a layer material, it could be done by mixing 10 materials. Octane have not layered material. This can be done virtually by plugi. But as i said on my previous message that, this kind of efforts is hacked way and can cause some problems on plugin. Also there is no any mixing filter.

Personally i prefer to wait a little about new improvements of Octane engine.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Post Reply

Return to “Maxon Cinema 4D”