Author Topic: CoronaDECAL masked by Vertex Paint  (Read 2077 times)

2022-05-19, 16:10:58

szymon.bochenek

  • Active Users
  • **
  • Posts: 25
    • View Profile
    • Instagram:
Hi!

Is it possible to somehow mask CoronaDecal by VertexPaint ?
I just would like to paint this Decal mask in 3dsmax instead of using ready bitmaps:)
(for example dusty road or path line on grassy field)


BR,
Szymon

2022-05-19, 20:59:02
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9088
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Nope, decals can't be used as masks, nor they can be masked themselves. You can use include/exclude lists to control which object will receive decals, but you can't limit that to specific parts of the object.

I'm not sure if i understand what you're trying to achieve, but it looks like Corona distance might be more suitable for your task.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-05-20, 09:39:29
Reply #2

szymon.bochenek

  • Active Users
  • **
  • Posts: 25
    • View Profile
    • Instagram:

Thank you Romullus.
I meant can I use somehow VertexPaint as a mask for Decal texture?
I attached screenshot.

2022-05-20, 10:23:32
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9088
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I'm afraid that's not possible. Vertex colours is a property of an mesh object and decal is not a mesh, it can't have vertex colours. If your aim is to paint a mask directly in 3ds Max, maybe consider using viewport canvas. Since its output is regular bitmap, there should be no problems of using it with decals.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-05-20, 11:33:28
Reply #4

szymon.bochenek

  • Active Users
  • **
  • Posts: 25
    • View Profile
    • Instagram:
Thanks Romullus!

Viewport Canvas is solution for me (instead of VertexPaint).
I can draw mask for Decal directly on 3d model. It works! Decal size should be the same as plane below to fit bitmap size.
I use Decals in this case because its very easy to manage displacements while making complex terrain models.
File in attachement. (the only thing is that IR is not working while I`m painting but its not big problem:) )


Thanks again!!
« Last Edit: 2022-05-20, 11:41:04 by szymon.bochenek »

2022-05-20, 11:58:38
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9088
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Glad to see that it helped :]

I think Corona Team has plans to add more funcionality to decals in the future, so if you have some suggestions or wishes, feel free to express them in feature request board.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-06-01, 10:29:27
Reply #6

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13153
  • Marcin
    • View Profile
Maybe you could use a workaround with Corona Distance?
The Layered Mtl is applied to the ground object.
The distance is calculated from the box.
We are not using Decals here, so there may be some limitations to this method that could be overcome with Decals (e.g. it will work with simple box and plane, not sure about more complex shapes).

But we will also consider your feature request as it makes sense.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-06-01, 10:55:25
Reply #7

Aram Avetisyan

  • Corona Team
  • Active Users
  • ****
  • Posts: 786
    • View Profile
Hi,

There can be different workarounds with vertex/viewport canvas paint and distance maps but the important thing to understand here is that decal gets masked first by itself, then gets projected onto a surface, without connection to the base object material/maps.

So a feature request I see here is to have base object mask adding - masking (or adding to the existing one) the decal after it has been projected.
So there is map which masks the decal - projecting leaves with opacity e.g. - and then an enable/disable option for masking the projection further with base object related material/mask.
This will also cover the cases where decal is projected with different angles and will grant a more convenient texture/projection mapping workflow.

The feature request will be logged.
Aram Avetisyan | chaos-corona.com
Chaos Corona QA Specialist | contact us

2022-06-01, 11:33:05
Reply #8

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9088
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Object based masking in addition to decal based masking, would be very nice feature to have indeed!
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-06-01, 14:21:15
Reply #9

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13153
  • Marcin
    • View Profile
logged:
(Internal ID=907398449)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-06-01, 15:44:13
Reply #10

BSimon

  • Active Users
  • **
  • Posts: 21
  • IG: @szymon.bochenek.studio
    • View Profile
    • My portfolio on Instagram

Exactly!:)
It would be very handy and useful feature!
BR,
Szymon


Hi,

There can be different workarounds with vertex/viewport canvas paint and distance maps but the important thing to understand here is that decal gets masked first by itself, then gets projected onto a surface, without connection to the base object material/maps.

So a feature request I see here is to have base object mask adding - masking (or adding to the existing one) the decal after it has been projected.
So there is map which masks the decal - projecting leaves with opacity e.g. - and then an enable/disable option for masking the projection further with base object related material/mask.
This will also cover the cases where decal is projected with different angles and will grant a more convenient texture/projection mapping workflow.

The feature request will be logged.
My portfolio on Instagram:
@szymon.bochenek.studio