Announcement

Collapse
No announcement yet.

"Foce back face culling" local use.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Foce back face culling" local use.

    I want to set up "Foce back face culling" per object.
    It is not global.

    Emulation is possible at V-RayMaterial?
    Last edited by flat; 10-04-2014, 02:31 AM.

    OakCorp Japan - Yuji Yamauchi
    oakcorp.net
    v-ray.jp

  • #2
    You can emulate this with f.e. an OSL texture shader for the opacity that would return full transparency on the back side. I might get one of the guys to show an example tomorrow.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      As it turns out a GLSL shader looks really simple and does the job Vlado suggested.

      As the GLSL support help index states:
      "vec4 gl_Color returns white for front facing primitives and black otherwise."
      This is strongly specific for our V-Ray implementation of GLSL.

      I have attached an example, just rename the extension to .frag and load it in a VRayGLSLTex texture.
      Then use it as an opacity map for the V-Ray material.
      Attached Files

      Comment


      • #4
        Thank you!
        It is a simple code. interesting.

        Old style Toon outline can be created.
        Click image for larger version

Name:	toon_outline.jpg
Views:	1
Size:	64.6 KB
ID:	851792

        OakCorp Japan - Yuji Yamauchi
        oakcorp.net
        v-ray.jp

        Comment

        Working...
        X