Author Topic: Overlap Materials  (Read 5612 times)

0 Members and 1 Guest are viewing this topic.

Offline amrit02

  • Newbie
  • *
  • Posts: 9
Overlap Materials
« on: January 03, 2017, 01:36:43 am »
Hi guys,

Need some help here. I have a single object in Keyshot where i want to apply a mesh lace on the bottom, and a transparent embroidery (diffuse map) on the top. The issue is when i render , the diffuse map is ALWAYS below the mesh, It should be above.

This is how my material graph looks like .
Any ideas how i can solve it ?

Thanks

Offline MWo

  • Hero Member
  • *****
  • Posts: 831
  • Senior Technical Consultant @ INNEO (Germany)
    • german KeyShot page from INNEO Solutions
Re: Overlap Materials
« Reply #1 on: January 03, 2017, 04:38:56 am »
I'm not really sure, that I understood your problem correctly. You've defined a plastic material with a mesh in color and another channel. And you want the inside of this single body showing some kind of mesh and on the outside a color texture with a separate material?!


I think you want this?


Every detail can be analyzed in the attached file.




hope that helps

Offline amrit02

  • Newbie
  • *
  • Posts: 9
Re: Overlap Materials
« Reply #2 on: January 04, 2017, 09:40:10 pm »
Hi Mwo,

Thanks for the reply.
Well , actually close, but not quite right

I want the upper body of this object to show my transparent embroidery texture ,
and below it to show the mesh.

So practically making this fabric :





In my sample, it has 2 problems:
1. The embroidery is showing below the mesh, it should be the other way around.
2. The embroidery is not "masking" the mesh , causing an overlap where the mesh portion exceeds the portion of the embroidery . See attachment (its from another software but its the same concept).



Offline Finema

  • Hero Member
  • *****
  • Posts: 810
  • Designer
    • Delavallade Design
Re: Overlap Materials
« Reply #3 on: January 04, 2017, 11:31:49 pm »
Hi
Have you try with two part ? in my example i use 2 plans
one for the pattern and one for the fabric
see the screenshots

Offline amrit02

  • Newbie
  • *
  • Posts: 9
Re: Overlap Materials
« Reply #4 on: January 05, 2017, 02:19:18 am »
Hi Finema,

By 2 plans you mean 2 separate materials right ?

I tried that , however the issue of overlapping mesh and embroidery wont be solved right?

Offline Finema

  • Hero Member
  • *****
  • Posts: 810
  • Designer
    • Delavallade Design
Re: Overlap Materials
« Reply #5 on: January 05, 2017, 02:50:11 am »
sorry
i haven't understand your problem ???

Offline amrit02

  • Newbie
  • *
  • Posts: 9
Re: Overlap Materials
« Reply #6 on: January 05, 2017, 03:09:42 am »
This is my problem  . I want to acheive this fabric :



MY workflow is :

1. Take an image of my lace using a camera .
2. Since the lace is transparent , i use a green screen
3.  I take out the transparency in photoshop.

This is where i am stuck, at a lens of 50mm too , i cannot capture the detail of the mesh at a high quality enough to render it in 3D.
So i have to take the mesh out , and apply a mesh vector.

This is where the problem arise.

4. My mesh is one image, my embroidery texture (after photoshop so its the embroidery only) is another image. I need to combine and recreate the lace. 

Offline amrit02

  • Newbie
  • *
  • Posts: 9
Re: Overlap Materials
« Reply #7 on: January 06, 2017, 03:55:04 am »
Any response ?

Perhaps i could use the clipping mask, but i couldn't find any tutorials that could help

Offline Esben Oxholm

  • KeyShot Beta
  • Hero Member
  • *****
  • Posts: 1667
  • esbenoxholm.dk/keyshot-video-course
    • Freelance CG Artist
Re: Overlap Materials
« Reply #8 on: January 06, 2017, 06:55:01 am »
Need some help here. I have a single object in Keyshot where i want to apply a mesh lace on the bottom, and a transparent embroidery (diffuse map) on the top. The issue is when i render , the diffuse map is ALWAYS below the mesh, It should be above.
Hi Amrit02. Not sure if I understand your question correctly, but I think what you are asking is to invert the layer order of your two materials?
If so, have you tried to create the mesh material as the base material and then add the diffuse map on the top?

(5 minutes later)
Okay I just tried that, and see that the opacity map for the mesh also affects the embroidery.
To avoid this, a solution is to apply both materials as labels to an invisible emissive material.
Something like this:
https://we.tl/cMj03EukyB

Does it solve your problem?
Best,

Offline amrit02

  • Newbie
  • *
  • Posts: 9
Re: Overlap Materials
« Reply #9 on: January 07, 2017, 04:09:35 am »
Hi Esben,

Does it solve my problem - > Yes and No.
I had to remove the opacity map from one of the "Advanced" materials because it was covering my embroidery.
It looks like this now.

But still doesn't solve the overlap materials . The mesh still exceeds the embroidery. Like the actual fabric, the mesh should only surround (mask) the embroidery, not go over it.

Offline amrit02

  • Newbie
  • *
  • Posts: 9
Re: Overlap Materials
« Reply #10 on: January 12, 2017, 12:24:53 am »
Any replies?

To make it simple, I actually need to use the embroidery as a clipping mask for my the object , so it looks like the actual fabric.

I found this --> http://blender.stackexchange.com/questions/24169/using-an-object-as-a-clipping-mask-for-another-object 

But it is using a different rendering software - Blender. How do i replicate this in Keyshot?