Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: dj_buckley on 2018-07-18, 11:37:04

Title: [solved] CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 11:37:04
I'm having a hard time getting the MultiMap to work in the displacement slot.

I've got a wood grain pattern on a plank.  I then need to create multiple versions of that plank and offset the wood grain per plank.  I thought simply loading the wood grain displacement into a multimap and changing the offset/rotation for each would work.  It doesn't, all the planks are using ID2 in the Multimap?
Title: Re: CoronaMultiMap and Displacement
Post by: romullus on 2018-07-18, 11:52:22
It really should work like you described. Try to plug multimap into diffuse slot and see if it works here - maybe you just set wrong mode in multimap?
On the other hand, if you want to randomize UV offset of single texture, then you'd better use CoronaUVRandomizer node - it let's you do randomization much more easily since you only have to deal with single map.
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 11:57:03
Yeh I've just switched to UVW Randomizer.

The Multimap works fine in Diffuse as I've got a fully procedural setup for colours, distributed via a noise map, which is inside a Multimap, randomized by phase, so each plank has a random colour application
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 12:07:02
Is 'Instance' mode the same as 'By Element' or 'By Object'?

Do the objects need to be copies of each other or instance or do they need to be attached?
Title: Re: CoronaMultiMap and Displacement
Post by: romullus on 2018-07-18, 12:07:44
Ok, i've tested it and indeed it seems like a bug. Moving this topic to appropriate board.
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 12:12:34
Damn haha, I was relying on this working for the entire project
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 12:13:57
Although UVW Randomizer seems to be helping a bit, at least I can randomize Rotation and V-Offset
Title: Re: CoronaMultiMap and Displacement
Post by: romullus on 2018-07-18, 14:11:38
It seems that i mad mistake in my test. I was in a hurry, sorry for that.  So i wanted to make proper report out of it and found that multimap and displacemet is working as expected. I'm attaching rendered result, as well as a test scene. If you could download, give it a try and then report back if it works for you too, i could move the topic back to the original board :]
Title: Re: CoronaMultiMap and Displacement
Post by: PROH on 2018-07-18, 14:22:31
@dj_buckley: instance mode is "by object". Corona doesn't support "by element" yet. But a workaround is to use the "Material by element" modifier, and then use the "Mat ID" mode in Corona multimap.

Hope it helps
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 15:39:06
Thanks Romullus, does it also still work if you’re using the same displacement map and just changing the offsets?

Proh, i can’t use MaterialByElement as the material in question is already part of a multi-sub
Title: Re: CoronaMultiMap and Displacement
Post by: romullus on 2018-07-18, 15:49:24
You can't change uv offset when using single map, unless you use Corona uv randomizer. Or did you mean, altering uv offset at object level? In that case, it should work without problems.
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 15:57:34
MultiMap in Displacement Slot
The same bitmap ‘copied’ into each slot
Each copy of the bitmap has a different V offset

Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 15:58:44
UVW Randomizer is working though so i’m happy with that
Title: Re: CoronaMultiMap and Displacement
Post by: romullus on 2018-07-18, 16:10:03
MultiMap in Displacement Slot
The same bitmap ‘copied’ into each slot
Each copy of the bitmap has a different V offset

Yes, that would work without issues.

I'm moving the topic back :]
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 19:23:48
Ok that’s what i can’t get to work.
Title: Re: CoronaMultiMap and Displacement
Post by: romullus on 2018-07-18, 20:22:33
Would you mind to attach simple scene with the setup that doesn't work for you?
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-18, 21:40:08
Sure i’ll uplod it in the morning when i’m back in the studio
Title: Re: CoronaMultiMap and Displacement
Post by: dj_buckley on 2018-07-19, 08:59:39
Ok so I've just set the scene up again to upload and send over and it's working.  UVW Randomizer gives better variation though so i'll stick with that.  Cheers anyway, my bad :)
Title: Re: [solved] CoronaMultiMap and Displacement
Post by: maru on 2018-12-17, 11:16:53
Multimap and UVW randomizer should work fine with displacement.
Currently there is one known issue (displacement does not work correctly with multimap's "by element" mode) - we are working on a fix.
Title: Re: [solved] CoronaMultiMap and Displacement
Post by: matsu on 2019-10-08, 12:10:45
we are working on a fix.

How is it going? ;)

I am right now designing a material, and was going to randomize displacement with "element" mode, but wasn't able to. Using "MaterialByElement" kind of works, but it then appears as if the Gamma Randomization has no effect. It would be absolutely great if this worked. Thanks.