Announcement

Collapse
No announcement yet.

Vray messages window to include co planar faces warning?

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

  • Vray messages window to include co planar faces warning?

    Hi Vlado,

    I've just done a long run of arch vis bits with two rather bad xsi modellers and as a result there's been a tonne of trashy geometry fed through vray - any time there's major co planar faces it causes the light cache calculation times to shoot up and this is normally my clue that there's objects intersecting badly - I'm not sure if this is something that vray can detect but if it is would it be possible to add something like a red highlighted line in the vray messages similar to the large scene bounds warning?

    Cheers,

    John

  • #2
    Haven't tried it yet myself, but isn't there a tool in max 2010 that'll let you analyze your mesh for these kinds of errors?

    Comment


    • #3
      yes xview for viewport analysis and selection. As a quick test you can also use the stl check but i assume you know that one.

      Regards,
      Thorsten

      Comment


      • #4
        Yep it's generally between different objects so stl is a no go unfortunately - Also I'm living in the past here on max 9

        Comment


        • #5
          if it's between different objects, it doesn't seem trivial to me.
          You'd have, at the very best, to iterate trough all the faces in your scene.
          Just building an array with the faces would likely have maxscript throw a fit.
          The comparison then would be pretty slow.
          Waiting for a render atm, let me see if anything clever can be cooked up from the scripting side...
          Lele
          Trouble Stirrer in RnD @ Chaos
          ----------------------
          emanuele.lecchi@chaos.com

          Disclaimer:
          The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

          Comment


          • #6
            well, lol.
            Instead of doing it bruteForce in mxs, i thought i could do a snapshot of the scene geometry and add an stlcheck to the resulting mesh, like so:

            Code:
            (
                theObjs = for g in geometry collect g
                theNewBigMesh=editable_Mesh()
                theNewBigMesh.name="Blah"
                for o in theObjs do
                (
                    theMesh=snapshotAsMesh o
                    meshop.attach theNewBigMesh theMesh
                )
                update theNewBigMesh
            
                addModifier theNewBigMesh (STL_Check())
                theNewBigMesh.modifiers[1].selection_type=1
                theNewBigMesh.modifiers[1].Select_Faces=1
                theNewBigMesh.modifiers[1].Change_MatID=0
                theNewBigMesh.modifiers[1].Check_now=1
                
            )
            Pity it doesn't seem to work :P
            Last edited by ^Lele^; 24-04-2009, 02:45 AM.
            Lele
            Trouble Stirrer in RnD @ Chaos
            ----------------------
            emanuele.lecchi@chaos.com

            Disclaimer:
            The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

            Comment


            • #7
              Originally posted by ^Lele^ View Post
              well, lol.
              Instead of doing it bruteForce in mxs, i thought i could do a snapshot of the scene geometry and add an stlcheck to the resulting mesh, like so:

              Code:
              (
                  theObjs = for g in geometry collect g
                  theNewBigMesh=editable_Mesh()
                  theNewBigMesh.name="Blah"
                  for o in theObjs do
                  (
                      theMesh=snapshotAsMesh o
                      meshop.attach theNewBigMesh theMesh
                  )
                  update theNewBigMesh
              
                  addModifier theNewBigMesh (STL_Check())
                  theNewBigMesh.modifiers[1].selection_type=1
                  theNewBigMesh.modifiers[1].Select_Faces=1
                  theNewBigMesh.modifiers[1].Change_MatID=0
                  theNewBigMesh.modifiers[1].Check_now=1
                  
              )
              Pity it doesn't seem to work :P

              well points for thinking creatively!
              ____________________________________

              "Sometimes life leaves a hundred dollar bill on your dresser, and you don't realize until later that it's because it fu**ed you."

              Comment


              • #8
                My FindCoinstances script will find coplanar faces and coplanar objects (with multiple objects selected)

                http://www.scriptspot.com/3ds-max/find-coinstances
                Colin Senner

                Comment


                • #9
                  Done on this job now Colin but thanks a million - I reckon more arch vis jobs are to come so this'll be invaluable. Much appreciated.

                  Comment


                  • #10
                    not only that, Colin, but looking through the script i discovered i was doing it pretty wrong when trying the brute-force method, and also why the stlcheck didn't work.
                    Comparing verts only returns exactly identical facases overlapping each other. Normals are the way to go ofc! :P
                    Learnt something new today too!
                    Last edited by ^Lele^; 26-04-2009, 03:13 PM.
                    Lele
                    Trouble Stirrer in RnD @ Chaos
                    ----------------------
                    emanuele.lecchi@chaos.com

                    Disclaimer:
                    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

                    Comment

                    Working...
                    X