Announcement

Collapse
No announcement yet.

Wireframe render on Sub-D model.

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

  • Wireframe render on Sub-D model.

    Hi, I'd like to render out wireframe of my model, and find that V-Ray Edges material renders all trigons on Sub-D models.

    How to set the parameter to render polygon wireframe on sub-D models using V-Ray?

    Thanks,
    Kent

  • #2
    Hi,
    I am very interested too,

    Thanks.

    Comment


    • #3
      You will have to add the V-Ray Geometry Properties package to the mesh item with your Sub-D model.
      Then enable either OpenSubdiv or V-Ray Subdivision.

      When the native MODO sub-division is used, the MODO API doesn't provide the information how the polygon cage corresponds to sub-divided triangles.
      So you are seeing the wire-frame of the sub-divided triangles.

      Other situations when you must switch to V-Ray subdivision:
      - if you are using the V-Ray PTex texture
      - if you are applying a Variation texture in Mesh Parts mode - this is because the MODO sub-division API will slice the mesh into artificial parts that you probably don't want to shade differently

      Greetings,
      Vladimir Nedev
      Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

      Comment


      • #4
        Thanks Vladimir!

        I also noticed that the wireframe rendered in V-Ray doesn't align with wireframe in MODO, which may due to your saying that MODO API doesn't provide the information how the polygon cage corresponds to sub-divided triangles. In most situations, I can render relatively same model shape by adding one more sub-d level, which means wireframe would be denser but that's fine.

        But there are times that I can't add sub-d level:
        Click image for larger version

Name:	2016-07-11 15 01 04.jpg
Views:	1
Size:	482.5 KB
ID:	862588
        Click image for larger version

Name:	2016-07-11 15 01 32.jpg
Views:	1
Size:	490.1 KB
ID:	862589


        Kent

        Comment


        • #5
          I forgot about that, with OpenSubdiv you will see the wireframe of the polygons after sub-division is applied.

          With 0 as the level, you are not applying any sub-division.
          There must be a high vertex polygon in your model, possibly something that loops over itself (for example the letter o would do this), which trips up our OpenSubdiv integration.

          Can you try using V-Ray Subdivision ?
          Performance wise, it might be worth to enable Static subdivision and displacement near the bottom of the V-Ray Geometry Properties.

          In MODO, are you using normal Subdivision or Catmull-Clark (which is the same as OpenSubdiv) ?

          Greetings,
          Vladimir Nedev
          Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

          Comment


          • #6
            Thanks!

            My model is a normal Catmull-Clark sub-d model.
            It works fine with V-Ray subdivision, all wireframe aligned.
            I noticed that several edges are rendered heavier than others, which doesn't happen when OpenSubdiv enabled.

            I'd checked and quite sure there is one edge on each thicker line.

            Click image for larger version

Name:	2016-07-13 14 12 18.jpg
Views:	1
Size:	489.6 KB
ID:	862604

            Kent

            Comment


            • #7
              That might be just how the current edge rendering algorithm works.
              One of our developers was looking into writing an improved version, not sure when(if) that might be ready.

              It will be nice to have this mesh for testing, both the thick V-Ray edges issue and the OpenSubdiv problems.
              If you would like to help us, you can send it to vladimir.nedev [at] chaosgroup.com

              Greetings,
              Vladimir Nedev
              Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

              Comment


              • #8
                No Problem. Project sent.

                Kent

                Comment


                • #9
                  Thank you for the scene.

                  Greetings,
                  Vladimir Nedev
                  Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

                  Comment


                  • #10
                    The problem with OpenSubdiv is caused by my export code. There is a curve in the mesh that confuses it.
                    If you delete the curve, the OpenSubdiv sub-division will work correctly.
                    The edges seem to look much nicer with 1 level of OpenSubdiv.

                    Click image for larger version

Name:	opensubdiv_and_vray_subdiv.PNG
Views:	1
Size:	487.2 KB
ID:	862612

                    Greetings,
                    Vladimir Nedev
                    Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

                    Comment


                    • #11
                      I noticed you enabled OpenSubdiv and V-Ray Subdivision simultaneously.
                      Why do you check both than just choosing one of them?

                      Besides, would you please tell me which curve cause that problem. It might be helpful avoid doing it again when modeling.

                      Thanks,
                      Kent

                      Comment


                      • #12
                        I noticed you enabled OpenSubdiv and V-Ray Subdivision simultaneously.
                        Why do you check both than just choosing one of them?
                        I checked OpenSubdiv to subdivide the mesh a little so the V-Ray Edges textures would work better, to get edges with more consistent thickness.
                        I checked V-Ray Subdivison, because with OpenSubdiv, the V-Ray Edges texture always shows the final subdivided polygons.

                        Besides, would you please tell me which curve cause that problem. It might be helpful avoid doing it again when modeling.
                        When I fix it, you won't have to avoid it.
                        But for now:
                        Click image for larger version

Name:	curve.PNG
Views:	1
Size:	297.0 KB
ID:	862626

                        Greetings,
                        Vladimir Nedev
                        Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

                        Comment

                        Working...
                        X