KeyShot Forum

Technical discussions => Materials => Topic started by: cadjockey on May 23, 2016, 01:34:12 PM

Title: Wireframe with hidden internals
Post by: cadjockey on May 23, 2016, 01:34:12 PM
Hi

Is there a way to get a transparent toon material so my models edges are highlighted BUT hide all the internal/backside detail? I want to apply this to an assembly of parts and only want the visible outer edges not all the other internal detail.  I do however want to see other separate models behind the transparent model.
It's to show how a display stand might be used without cluttering the image with unnecessary detail.

Thanks

Rich
Title: Re: Wireframe with hidden internals
Post by: guest84672 on May 23, 2016, 02:25:55 PM
I'm confused. It sounds like the Toon material will do just what you want it to do?
Title: Re: Wireframe with hidden internals
Post by: LayC42 on May 23, 2016, 10:32:52 PM
He might want a CAD like HLR view, I think.
Properly there is a good solution in post pro? Maybe a set of renderings a some masks in PS would help?
Title: Re: Wireframe with hidden internals
Post by: cadjockey on May 24, 2016, 03:04:57 AM
Yes, I was looking for a HLR type option I suppose. If i make the toon transparent I obviously see all of the 'hidden' lines. I want to see other objects behind my toon object, but not hidden lines on the toon itself!    ie. hidden lines removed only on selected objects, but with objects behind visible.

I wondered if there were some trickery in the new material editor which could give this kind of display.  Probably not I guess
I'll have to do it in post unless anyone has a good idea
Title: Re: Wireframe with hidden internals
Post by: INNEO_MWo on May 24, 2016, 05:05:52 AM
Here's a quick solutions. Inside the zip-file you'll find the bip, renderings and the psd)

hope that helps a bit
Title: Re: Wireframe with hidden internals
Post by: cadjockey on May 25, 2016, 12:47:21 AM
Thanks, that's just what I was going for!  I'll do it this way for now

Rich
Title: Re: Wireframe with hidden internals
Post by: bdesign on May 26, 2016, 12:56:04 PM
Here is a Material Graph network for achieving this effect directly within KeyShot:
Set the Transparency of your Toon material to 1, then connect:

Surface Backside Mask>(Input)Color To Number>(Opacity)Toon.

Use the "Output From" and "Output To" parameters of the Color To Number node to control the visibility of the front and backside faces; set them to 1 and 0, respectively. Note that you will have to enable Experimental Features under Edit>Preferences>Advanced in order for the Surface Backside Mask node to be available under Utilities in the Material Graph. Here is a quick example render, and screenshot of the Material Graph network.

Eric



Title: Re: Wireframe with hidden internals
Post by: LayC42 on May 26, 2016, 02:13:11 PM
thx bdesign a lot - your solution is more precise! Now I know what backside mask is useful.

I like the support from this forum.

Tons of thanks for you all!
Title: Re: Wireframe with hidden internals
Post by: bdesign on May 26, 2016, 05:06:26 PM
You're very welcome, LayC42. Always happy to help if I can.

Eric
Title: Re: Wireframe with hidden internals
Post by: INNEO_MWo on May 27, 2016, 12:18:15 AM
Quote from: bdesign on May 26, 2016, 12:56:04 PM
Here is a Material Graph network for achieving this effect directly within KeyShot:
Set the Transparency of your Toon material to 1, then connect:

Surface Backside Mask>(Input)Color To Number>(Opacity)Toon.

Use the "Output From" and "Output To" parameters of the Color To Number node to control the visibility of the front and backside faces; set them to 1 and 0, respectively. Note that you will have to enable Experimental Features under Edit>Preferences>Advanced in order for the Surface Backside Mask node to be available under Utilities in the Material Graph. Here is a quick example render, and screenshot of the Material Graph network.

Eric

Hello Eric.

Many thanks for this solution. I've pushed this material to KeyShot cloud. So everybody can use this. I've named it "wire frame edges HLR (toon, mat. graph)"
Title: Re: Wireframe with hidden internals
Post by: Esben Oxholm on May 27, 2016, 04:05:00 AM
well done, bdesign!
I tried myself to crack the nut, but without succes.

Glad you managed to  8)
Title: Re: Wireframe with hidden internals
Post by: richardfunnell on May 27, 2016, 07:08:05 AM
This is super! Well done :D
Title: Re: Wireframe with hidden internals
Post by: bdesign on May 27, 2016, 08:44:53 AM
MWo, Esben, and Richard:

Thanks very much guys! I hope it will be helpful. I really enjoy the challenge of trying to, as Esben said, "crack the nut" of sometimes seemingly unattainable effects, with material graph networks. Thanks again, guys.

Eric
Title: Re: Wireframe with hidden internals
Post by: cadjockey on May 28, 2016, 02:07:39 PM
Eric

Thanks so much for this, perfect solution!!!

Rich

Title: Re: Wireframe with hidden internals
Post by: bdesign on May 28, 2016, 03:24:33 PM
Rich-

You're very welcome. Glad to know it is helpful  :)

Eric
Title: Re: Wireframe with hidden internals
Post by: mertmg on June 04, 2016, 06:47:32 AM
this is great. i
Title: Re: Wireframe with hidden internals
Post by: bdesign on June 04, 2016, 01:38:33 PM
Thanks!  :)
Title: Re: Wireframe with hidden internals
Post by: DriesV on June 09, 2016, 06:12:03 AM
Wow, this is ingenious! :D

A quicktip:
You can make this even simpler, by attaching a Color Invert node to the Surface Backside Mask Node. The backside lines will then always be invisible though.
You can use the Outline Width Multiplier in the Toon material to create thicker outlines. This will help the parts stand out more.
See attached Wireframe.png for the Material Graph setup.

Conversely, if you really want to go crazy...
You can connect the previous material chain to another Toon material (also with transparency = 1) and put a Color Composite node between the Color Invert and the Opacity of the base Toon material. By tweaking both Toon materials you can alter e.g. the colors of the front and back lines. By adjusting the Source Alpha in the Color Composite node you can tweak the transparency of the back lines.
See attached Wireframe-crazy.png for the Material Graph setup. A ksp is attached as well.

Have fun! ;D

Dries
Title: Re: Wireframe with hidden internals
Post by: bdesign on June 09, 2016, 10:24:58 PM
Thank you Dries! It is a great compliment coming from a KeyShot master such as yourself! Apparently quite a few people are finding this useful judging by the cloud downloads :) Your additional suggestions are very cool! Thanks again...

Eric