Author Topic: Corona Layered MTL after update to ver.6  (Read 5053 times)

2020-09-02, 11:01:17

teamwhd

  • Active Users
  • **
  • Posts: 9
    • View Profile
I am not able to find out how to make it work, please see attachments. The correct one is from max 2019 and corona 5 I think. Now I cannot make logo and all materials appear the same way.
« Last Edit: 2020-09-02, 11:22:03 by teamwhd »

2020-09-02, 11:11:45
Reply #1

Giona

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 156
  • 3D - MTB - Photography
    • View Profile
    • Giona Andreani 3D Visualization
I have a similar problem with a layered material. The mask texture of layer 1 has the "no tile" option active. And it produce the wrong effect in corona 6.
Try to use a standard bitmap and it should work as expected.
I sent a bug report about that..
« Last Edit: 2020-09-02, 11:19:35 by giona4 »

2020-09-02, 11:32:54
Reply #2

teamwhd

  • Active Users
  • **
  • Posts: 9
    • View Profile
Same story :-/

2020-09-02, 11:40:08
Reply #3

teamwhd

  • Active Users
  • **
  • Posts: 9
    • View Profile
Hopefully I found out…...just switched two things (see attachment)….thanks god :-)

2020-09-02, 12:38:48
Reply #4

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
Hi. I think the new "Clamp" tiling mode in v6 CoronaBitmap is what you are looking for.
So instead of choosing "No Tiling" choose "Clamp".

Hope it helps

2020-09-02, 14:49:12
Reply #5

rowmanns

  • Corona Team
  • Active Users
  • ****
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi. I think the new "Clamp" tiling mode in v6 CoronaBitmap is what you are looking for.
So instead of choosing "No Tiling" choose "Clamp".

Hope it helps
Hi,

Yeah PROH is right here :)

Let us know if you still have problems even when using the clamp mode.

Cheers,

Rowan
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2020-09-02, 16:11:05
Reply #6

teamwhd

  • Active Users
  • **
  • Posts: 9
    • View Profile
Standard bitmap solved it pretty nice, so I left the corona bitmap solution. I tried Clamp and it did not worked for me. My friend (see attachment) used composite to get rid of Alpha from png. Maybe to avoid usage of png files is better way...dont know.

2020-09-02, 18:26:25
Reply #7

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 838
  • George
    • View Profile
Standard bitmap solved it pretty nice, so I left the corona bitmap solution. I tried Clamp and it did not worked for me. My friend (see attachment) used composite to get rid of Alpha from png. Maybe to avoid usage of png files is better way...dont know.

Hi I was unable to reproduce your issue (granted that I am not missing something), it works fine with clamping can you please send me a small reproduction scene?
George Karampelas | chaos-corona.com
Chaos Corona QA Specialist | contact us

2020-09-03, 10:09:36
Reply #8

5ran

  • Users
  • *
  • Posts: 3
    • View Profile
Hi all. The problem with the original tap scene was caused by different behavior of standard bitmap vs coronabitmap and "no tilling" option. Clamp tilling didnt worked, because mask was cropped in a way, that it had no "bleed" and there are both black and white pixels on the edge. (see picture for better understanding) In crop mode black and white pixels on the edge are stretched to infinite and creates stripes on the object.

There are 3 solutions:
1. use some "bleed" on the masks, so all pixels on the edge of the bitmap are black. Then crop option in tilling mode will work well. (best option)
2. use standard bitmap for masks
3. use composite map to comp mask with black color background. Then you can use "no tilling" option in coronabitmap.

Attachments: original mask with bad cropping + reproduced problem on simple scene
« Last Edit: 2020-09-03, 10:19:36 by 5ran »

2020-09-03, 10:15:31
Reply #9

teamwhd

  • Active Users
  • **
  • Posts: 9
    • View Profile
Here is the file...I was not succesful...but did not try hard :-)
https://www.uschovna.cz/zasilka/CE24HAB83RXNJJ8J-5BE/BBZ32CVHSL

2020-09-04, 13:14:54
Reply #10

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 838
  • George
    • View Profile
Hi all. The problem with the original tap scene was caused by different behavior of standard bitmap vs coronabitmap and "no tilling" option. Clamp tilling didnt worked, because mask was cropped in a way, that it had no "bleed" and there are both black and white pixels on the edge. (see picture for better understanding) In crop mode black and white pixels on the edge are stretched to infinite and creates stripes on the object.

There are 3 solutions:
1. use some "bleed" on the masks, so all pixels on the edge of the bitmap are black. Then crop option in tilling mode will work well. (best option)
2. use standard bitmap for masks
3. use composite map to comp mask with black color background. Then you can use "no tilling" option in coronabitmap.

Attachments: original mask with bad cropping + reproduced problem on simple scene
Here is the file...I was not succesful...but did not try hard :-)
https://www.uschovna.cz/zasilka/CE24HAB83RXNJJ8J-5BE/BBZ32CVHSL


Thank you both I will take a look to make sure we didn't miss something or if there is something that can be improved.
George Karampelas | chaos-corona.com
Chaos Corona QA Specialist | contact us

2020-09-09, 14:25:50
Reply #11

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 838
  • George
    • View Profile
Bump, reported.

The current functionality will be reconsidered to be more flexible.

(internal id=562074384)
George Karampelas | chaos-corona.com
Chaos Corona QA Specialist | contact us

2020-09-10, 14:23:01
Reply #12

jasond

  • Active Users
  • **
  • Posts: 36
    • View Profile
Seems I've run into this issue as well with layered materials in version 6. Is there any other workaround besides the three options listed above? Switching to standard bitmap or increasing/creating bleed around the image works but I have a hundred or so labels in many layered materials and max files so making changes such as the ones suggested will be very tedious. Setting tiling mode to clamp doesn't always work.

For some reason, ghosting of sorts of the masked png appears if you don't follow the workaround(s). Coronabitmaps here are set to clamp. It never did this in Corona 5. See attached... just a simple 4 layer/mask material.


2020-09-14, 09:11:08
Reply #13

5ran

  • Users
  • *
  • Posts: 3
    • View Profile
I would use batch action in photoshop for all your bitmaps to add some bleed

1. create new photoshop action using edit>canvas size 101% (with black background color preselected)
2. File>automate>batch with target folder containing your bitmaps

This can be done in a few minutes for hundreds of images at once.

EDIT: Do the same for your diffuse, bump, refl. etc. bitmaps as well, so you dont have to mess with different size/uv. And backup your files before :-)
« Last Edit: 2020-09-14, 09:15:35 by 5ran »

2020-09-14, 14:13:59
Reply #14

jasond

  • Active Users
  • **
  • Posts: 36
    • View Profile
In some cases, I create planes to place labels on flat objects rather than create layered materials. It's much faster this way when you have to add 50+ labels to a model. Unfortunately if I were to resize all my bitmaps, I'd have to also increase the size of the planes I put labels on.

Seems that until our friends at Corona can implement a fix for this, I need to revert back to standard bitmap instead of coronabitmap :(