Author Topic: [solved] CoronaMultiMap and Displacement  (Read 5799 times)

2018-07-18, 11:37:04

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
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?
« Last Edit: 2018-12-17, 11:16:13 by maru »

2018-07-18, 11:52:22
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9254
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-07-18, 11:57:03
Reply #2

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
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

2018-07-18, 12:07:02
Reply #3

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
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?

2018-07-18, 12:07:44
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9254
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Ok, i've tested it and indeed it seems like a bug. Moving this topic to appropriate board.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-07-18, 12:12:34
Reply #5

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
Damn haha, I was relying on this working for the entire project

2018-07-18, 12:13:57
Reply #6

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
Although UVW Randomizer seems to be helping a bit, at least I can randomize Rotation and V-Offset

2018-07-18, 14:11:38
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9254
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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 :]
« Last Edit: 2018-07-18, 14:15:53 by romullus »
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-07-18, 14:22:31
Reply #8

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
@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

2018-07-18, 15:39:06
Reply #9

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
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

2018-07-18, 15:49:24
Reply #10

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9254
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-07-18, 15:57:34
Reply #11

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
MultiMap in Displacement Slot
The same bitmap ‘copied’ into each slot
Each copy of the bitmap has a different V offset


2018-07-18, 15:58:44
Reply #12

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
UVW Randomizer is working though so i’m happy with that

2018-07-18, 16:10:03
Reply #13

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9254
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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 :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-07-18, 19:23:48
Reply #14

dj_buckley

  • Active Users
  • **
  • Posts: 1055
    • View Profile
Ok that’s what i can’t get to work.