Jump to content
3DCoat Forums

Masking using maps


Lixus
 Share

Recommended Posts

  • Member

Hi all!

Is there a way to masking (a smart material, for example) by using a map?

I´m able to use a map as a stencil, and I also can import maps as curvature, AO, etc

However, I´m not able to find the way to use the map based on the UVs (I also try the Preferred Mapping set as UV mapping, however, the result is this:

1724798259_Capturadepantalla2021-12-19alas18_21_32.thumb.png.e0bde9808b58326cfe78dd6372e64d0f.png

The UVs are correct (I´ve tried them in other softwares). I´m a beginner in 3DCoat, so I´m sorry if this is a really basic question (however I did not find anything in the forums or internet or tutorials.

The same way to import the ID map (In other topic on this forum I saw this tutorial:

It´s useful and I´ve been able to import the ID layers. However, when I apply a Smart material on one of the ID layers I brought, it is applied on the entire object. What I´m doing wrong?

Thank you very much!

Link to comment
Share on other sites

  • Member

Hi Carlosan!

Thank you very much for such quick response!

This tutorial is really useful! I did not how to make masks in this way to reveal layers. Thank you very much. However, what I´m trying is using a black and white layer as a mask. There is no problem if I import it a a stencil, and I can use it perfectly. The problem is that it isn´t maped.

For example, I created in Blender a Curvature map for my object:

407153986_Capturadepantalla2021-12-19alas21_21_48.thumb.png.6025f063f0e20fc27a16df9e035fb96c.png

I´m able to import in Coat3D. But, I´d like, to use it as a mask. For example, I´d like to paint the white areas of this map into blue. I tried creating a Smart material blue, and giving this map as a mask. the problem is that it is not adapting to my UVs:

371473266_Capturadepantalla2021-12-19alas21_25_38.thumb.png.ff2eb69a6bcef8aaa23f8fe6ca52e466.png

Even changing the maping to UV mapping it does not work:

341692441_Capturadepantalla2021-12-19alas21_29_24.thumb.png.a4ec799be2e572441d8c86fc4e0a5e97.png

I can´t figure out what I´m doing wrong.

Thanks in advance!

 

 

 

Link to comment
Share on other sites

  • Advanced Member

What is the name of the imported Curvature map?

If the imported Curvature map is named 'Layer1', 'Layer2', it will not work.

Change the name of the layer to 'CurvatureMap'.
3DC will automatically recognize it as a Curvature Map and apply it to Smart Material and painting.

1459824294_bandicam2021-12-2013-55-32-014_.thumb.jpg.3df7c8ba914f3b6e86936af532079ff9.jpg

 

If you only want to work with the brush, you can change the Condition Top of the menu.

▼ Information about Conditions is on the wiki. ▼

https://3dcoat.com/dokuwiki/doku.php?id=general:paint_workspace:materials&s[]=condition

https://3dcoat.com/dokuwiki/doku.php?id=general:paint_workspace:paint_menu:textures_menu&s[]=condition

 

 

1130296756_bandicam2021-12-2013-56-15-776__.thumb.jpg.d8a8334767ff7113b42ab663631650bf.jpg
If you only want to work with smart materials, you can change the Condition here.

 

2032934950_bandicam2021-12-2013-56-39-765___.thumb.jpg.822f5a8ff46131f7dfcb7db8d659a79c.jpg

You can also use a combination of Brush Condition and Smart Material Condition.

  • Like 1
Link to comment
Share on other sites

  • Member

Wow! Great!

It works perfectly!! Thank you very much you two! :D

Just a quick question. It is possible to do something similar in 3D Coat as this video? (import external maps to use them as alpha): 

In the video I used a Curvature Map, but the idea is to do with any map with black and white values.

I can achieve the results that I wanted thanks to your advices, so if it is no possible to do something like the video, it does not matter. But it would be really great!

Thanks again! :D

 

 

Link to comment
Share on other sites

  • Advanced Member
Carlosan
This post was recognized by Carlosan!

Yousung was awarded the badge 'Great Support' and 1 points.

999196618_bandicam2021-12-2113-24-14-486.thumb.jpg.1799c43be9d2d78ae17af8cfe6499a91.jpg

Adjust the following options to control the painting area using the CurvatureMap.
- Overall Cavity Modulator
- Cavity area width
- Additional Cavity width
- Degree
- Contrast

 

If it's not the same as the video, but it's similar, there is a way to use Smart Material's 'Attach to the current layer'.

How to use
1. Right-click on the Smart Material you want to use
2. Click 'Attach to the current layer'
3. You can see that the Smart Material is attached to the selected layer.
- Attached Smart Materials work individually.
4. If you need to edit, right-click on the layer and edit it in the Smart Material Editor.
5. If you need to change to a different material, right-click and use the same Attach to the current layer.

 

1656483372_bandicam2021-12-2115-49-23-354.thumb.jpg.6e455db1367d6aad6ed2d1c95e05e20f.jpg

All of these have the same Smart Material attached, but
The color has been changed on the layer.

  • Like 2
Link to comment
Share on other sites

Try this

Making a smart material that takes Ao or Curv as a condition. This effectively converts the smart material layer to an alpha of the crevices (and another for protrusions.)

These layers can now be referenced by other layers as a clip mask.

  • Like 1
Link to comment
Share on other sites

  • Member
11 hours ago, Yousung said:

999196618_bandicam2021-12-2113-24-14-486.thumb.jpg.1799c43be9d2d78ae17af8cfe6499a91.jpg

Adjust the following options to control the painting area using the CurvatureMap.
- Overall Cavity Modulator
- Cavity area width
- Additional Cavity width
- Degree
- Contrast

 

If it's not the same as the video, but it's similar, there is a way to use Smart Material's 'Attach to the current layer'.

How to use
1. Right-click on the Smart Material you want to use
2. Click 'Attach to the current layer'
3. You can see that the Smart Material is attached to the selected layer.
- Attached Smart Materials work individually.
4. If you need to edit, right-click on the layer and edit it in the Smart Material Editor.
5. If you need to change to a different material, right-click and use the same Attach to the current layer.

 

1656483372_bandicam2021-12-2115-49-23-354.thumb.jpg.6e455db1367d6aad6ed2d1c95e05e20f.jpg

All of these have the same Smart Material attached, but
The color has been changed on the layer.

Awesome! I did not know that you can attatch a Material to a layer.

 

Thank you very much!

Link to comment
Share on other sites

  • Member
4 hours ago, Carlosan said:

Try this

Making a smart material that takes Ao or Curv as a condition. This effectively converts the smart material layer to an alpha of the crevices (and another for protrusions.)

These layers can now be referenced by other layers as a clip mask.

Great!

And how it works? I need to add a AO or Curvature map to the condition parameter?

And then, the layer where I applied the material is a mask layer?

Cheers!

Link to comment
Share on other sites

  • 1 year later...
  • Member
Quote

Try this: import the mask picture to new layer, and use this layer as Paint layer mask

Not work. This is the first thing i did or am i doing something wrong

https://drive.google.com/file/d/1iL6m4esSMF_11gcnF6rQ4lxarP8YmFtq/view?usp=sharing

upd: I understand that you need to import a mask with transparency, then it works and you can further edit it in 3d coat. But now there is a question how to export this edited mask to 3d coat also with transparency? There is an option to use edit layers of the mask through the "synchronize layer" command, then this mask will move to Photoshop and from there it can be saved to a file

 

upd2:I also noticed a strong difference in the quality of the normal map when painting with a mask and when painting on a layer with a depth channel. It does not matter whether this mask is drawn in the 3 coat itself or was drawn in Photoshop and then imported. Is this somehow fixed?

when the resolution is increased to 8k, the difference in the quality of the normal map is even more obvious

image.thumb.png.57ce4bc3f1f4b651f8227f22302d037d.pngimage.thumb.png.906f9862fcebfd07a2aca4c1fe832d7f.png

Link to comment
Share on other sites

  • Member
53 minutes ago, Carlosan said:

This video is showing an outdated version, but the base workflow remains the same

 

quality of paint depends of quality of mask, avoid dithered maps.

Yes, I figured it out. But I didn’t figure out how to fix the noise on the normal map when you draw a mask

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...