Material ID render

For all the users of Twilight Render (V1 & V2), to ask questions and get started
Mnvital
Posts: 17
Joined: Fri May 18, 2018 8:48 am

Material ID render

Post by Mnvital » Thu Mar 28, 2019 2:59 am

Hi!

How can I create a material ID render? It’s useful when working on photoshop or gimp, to create quick and effective masks, for instance.

VRay does it (attached images)

Thanks!
Attachments
Flat colors by material IDs.
Flat colors by material IDs.
676B8EE8-9498-4D19-A080-19C4AE84BE35.png (16.46 KiB) Viewed 9966 times
Useful to fast mask selections.
Useful to fast mask selections.
3719F784-1423-4439-BD10-665CBFEB88B8.jpeg (33.32 KiB) Viewed 9966 times

Fletch
Posts: 12906
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2023
Contact:

Re: Material ID render

Post by Fletch » Thu Mar 28, 2019 8:28 am

Hello, :welcome: Mnvital

Yes, it's useful. Unfortunately we do not have Material or Object ID rendering option in Twilight's render engine.
We have several different render passes available, they are found in the "Tech" area of the Render Presets

You will need to render the alpha for the objects you want to isolate. This is easily done, but is an extra step or two.
  1. Select an object.
  2. Choose in the Render Dialog, "Render Preset>Tech>Specialized>Alpha Mask
  3. Start the rendering.
  4. When asked to render only selected objects choose “yes”.
  5. A black and white image will be created of the object.
  6. Save the rendered mask image.
It is suggested to render masks at double the resolution of the original to minimize any halo or ghosting effect around the mask from Anti Aliasing.

Mnvital
Posts: 17
Joined: Fri May 18, 2018 8:48 am

Re: Material ID render

Post by Mnvital » Thu Mar 28, 2019 12:29 pm

Hi Fletch!

I was trying to follow your steps (the red prism was selected, believe), but no success :wall:
renders.png
renders.png (423.26 KiB) Viewed 9948 times
But... I randomly tried another setting in Tech (Diffuse Texture), and it worked fine!

I think is this I need ;) Maybe, as you said, render twice the resolution, to avoid dents or artefacts.

What do you think?
diffuse-texture-render.png
diffuse-texture-render.png (469.97 KiB) Viewed 9948 times

Fletch
Posts: 12906
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2023
Contact:

Re: Material ID render

Post by Fletch » Thu Mar 28, 2019 2:08 pm

diffuse texture will work just like you want it to in some cases, but renders transparent materials like glass and water as black and it renders metal as black

It looks like you disabled the question it should be asking you about "do you want to render selected objects only?"
You can reset your dialog questions inside the Extensions>Twilight V2>Options dialog. Then you should see the question about rendering selected objects only.

That said, we will be looking into this to see if there's a solution we can come up with to get you a Material ID render pass.

Mnvital
Posts: 17
Joined: Fri May 18, 2018 8:48 am

Re: Material ID render

Post by Mnvital » Sat Mar 30, 2019 5:06 pm

Great, Fletch! I'm trying to understand render settings xml params (to customize this diffuse), but i don't find any documentation about it. Is there any resource to study about it?

Thanks again!

Mnvital
Posts: 17
Joined: Fri May 18, 2018 8:48 am

Re: Material ID render

Post by Mnvital » Sat Mar 30, 2019 5:40 pm

I reset dialog box and, ok, it reapperead. But i tried to render only selected object, and it didn't work. Rendered as black.
render-alfa.png
render-alfa.png (1.09 MiB) Viewed 9933 times
What am I doing wrong?

Fletch
Posts: 12906
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2023
Contact:

Re: Material ID render

Post by Fletch » Sat Mar 30, 2019 6:38 pm

This could mean there is a problem with the Mac version and rendering selected only.

tuna57
Posts: 885
Joined: Wed Jul 09, 2014 11:54 pm
OS: MacOSX 10_11
SketchUp: SU 2015Pro SU2018Pro

Re: Material ID render

Post by tuna57 » Sat Mar 30, 2019 7:20 pm

Fletch, No issues rendering "Alpha Mask - Selection Only" on my iMac. Twilight V 2.12.8 Pro. The iMac OS is 10.11.6 . Thought this might help in tracking down the O.P.'s issues.
TwilightPro V2.11

Mnvital
Posts: 17
Joined: Fri May 18, 2018 8:48 am

Re: Material ID render

Post by Mnvital » Sat Mar 30, 2019 10:54 pm

tuna57, sorry the question, but what is O.P.?

tuna57
Posts: 885
Joined: Wed Jul 09, 2014 11:54 pm
OS: MacOSX 10_11
SketchUp: SU 2015Pro SU2018Pro

Re: Material ID render

Post by tuna57 » Sun Mar 31, 2019 1:08 am

Mnvital, no problem.... you are the O.P. - "original post or original poster" :^:
TwilightPro V2.11

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 7 guests