sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Fix Reversed Face Materials

    Scheduled Pinned Locked Moved Plugins
    80 Posts 25 Posters 111.2k Views 25 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bob JamesB Offline
      Bob James
      last edited by

      TIG/Dave R,
      Thank you for taking the time to address my question.

      So the answer to my question is no: There is no ruby to examine an untextured model and reverse all faces that have the back face showing.

      i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        The texturing or otherwise of faces is irrelevant - a face's back is still its back, irrespective of its 'material' - Monochrome mode is a simple way to view things without materials...

        How is any plugin going to know what is the 'right direction' for a given face?
        The native Orient works fine on connected faces [that have edges with one or two faces each], making them all look the same way, but you must decide what is 'right' to start with.

        Some of the scripts that are available do things like assume that if a visible face that is looking at the camera is a 'back-face' then if needs flipping, but again you'd need to decide where to position the camera to do this - put it inside a correctly oriented box and it'll turn inside out!

        So there are tools to 'globally' flip reversed faces [I've made one!] - however, none of them will 'know' what is 'right' and you can end up with more effort using them than is needed if you've make shortcut-keys to Reverse/Orient with which you can then then quickly tidy faces selected faces as you model [another tip - a face that is highlighted by the PushPull tool [and some other tools too], before you click/pick it, can be Reversed using the shortcut key - so by simply 'hovering' over several faces in turn and pressing the shortcut key you can quickly Reverse faces without having to click/pick them at all!]. Using Monochrome mode with a Style having a distinctive back-face color [I use bright-blue, or sometimes magenta] helps a lot when doing this...

        TIG

        1 Reply Last reply Reply Quote 0
        • Bob JamesB Offline
          Bob James
          last edited by

          Thanks, TIG. I ignorantly assummed that SU itself "knows" the orientation of faces since it applies the backface color to it; and, since it "knows" that, it should be possible to collectively flip those with the backface facing in the direction of the camera.

          i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            @bob james said:

            Thanks, TIG. I ignorantly assummed that SU itself "knows" the orientation of faces since it applies the backface color to it; and, since it "knows" that, it should be possible to collectively flip those with the backface facing in the direction of the camera.
            That's what some of the plugins do - i.e. they flip faces if their backs look towards the camera... but of course to fool that and get the wrong result, you just need to look from the 'other direction' - provided that you are always confident that you are looking the 'right way' then you should get all visible faces 'facing' the camera... πŸ˜’

            TIG

            1 Reply Last reply Reply Quote 0
            • Rich O BrienR Offline
              Rich O Brien Moderator
              last edited by

              Could you hack a 'Normals toward camera' .rb?

              say you select a region and run the tool and it put all normals towards the view. In Thomthom's Vertex Tools you can ignore 'backfaces' when you select. If this method was applied you could then run the 'normals toward' .rb to orient faces to camera.

              Download the free D'oh Book for SketchUp πŸ“–

              1 Reply Last reply Reply Quote 0
              • Rich O BrienR Offline
                Rich O Brien Moderator
                last edited by

                I just realised my error in this thinking.... 😳 ....ignore

                Download the free D'oh Book for SketchUp πŸ“–

                1 Reply Last reply Reply Quote 0
                • Bob JamesB Offline
                  Bob James
                  last edited by

                  @tig said:

                  That's what some of the plugins do - i.e. they flip faces if their backs look towards the camera...

                  I'm okay with that. I tried searching the plugins with "flip", "reverse" "faces" with no luck.
                  What plugin would you use?

                  i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    Here are a few
                    http://forums.sketchucation.com/viewtopic.php?p=357136#p357136
                    http://forums.sketchucation.com/viewtopic.php?p=29351#p29351
                    http://forums.sketchucation.com/viewtopic.php?p=397447#p397447
                    http://forums.sketchucation.com/viewtopic.php?p=283327#p283327
                    πŸ˜‰

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      Liverpudlian82
                      last edited by

                      Thank you so much! I had rendering issues all the time and didn't know why ... I am still not sure how I can avoid messing the faces directions up in the first place but at least I can now fix it ... I often use models from 3d warehouse and those almost always produce rendering issues ... so happy to have solved this now!

                      1 Reply Last reply Reply Quote 0
                      • TIGT Offline
                        TIG Moderator
                        last edited by

                        @Liverpudlian

                        Use a Style with a highly contrasting back-face color - say bright-blue, -magenta or -green.
                        Then get used to switching Monochrome view mode on... if you see the bright back color on a visible 'outer' face Select it and use 'Reverse' [context-menu, or better set a shortcut-key - to get 'Reverse' available in the list of commands for shortcutting make sure there is a face selected before opening Preferences] You can also use the similar 'Orient' which flips all faces to match the selected one... however, be aware that non-solid collections of faces can give unexpected results because you can never get three faces to be oriented to suit, one will always be off-key !

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          syonker
                          last edited by

                          So I am pulling "sets" off of the 3D Warehouse to render as backgrounds for chroma-key (green screen) photos. By in large, most of the designers of these complicated sets are built by people have no idea that there is a "front" or "back" face...so they're a, in a word, "mess".

                          This plugin is nothing short of a miracle. Thank you SO MUCH for creating it.

                          Regards,

                          -S

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            there's an update in the PluginStore...
                            http://sketchucation.com/pluginstore?pln=FixReversedFaceMaterials
                            Some of the tool's lingvo files' encoding has been updated to be compatible with v2014.

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Mra
                              last edited by

                              Hi,

                              Even after reading I don't understand how to fix my problem.

                              Untitled-1.jpg

                              I would like to assign the "custom materials" from the backside of the object to the front side of my object. But none of these options work for me.

                              It just usually deletes ALL materials and leaves me with default.

                              1 Reply Last reply Reply Quote 0
                              • Dave RD Offline
                                Dave R
                                last edited by

                                You could do that manually by sampling the color with the eye dropper on the one side and applying it to the other side with the paint bucket. Post the SKP file and I'll make an example for you.

                                Etaoin Shrdlu

                                %

                                (THERE'S NO PLACE LIKE)

                                G28 X0.0 Y0.0 Z0.0

                                M30

                                %

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Mra
                                  last edited by

                                  Of course, but the problem is this is a simplified example.

                                  It is not fun to do this operation across hundreds of objects as you can imagine!(this is a received model, not one I've drawn myself). I'm looking for a way to automate this.

                                  1 Reply Last reply Reply Quote 0
                                  • Dave RD Offline
                                    Dave R
                                    last edited by

                                    If this plugin won't do it, I expect you'll have to do it manually anyway.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 Reply Last reply Reply Quote 0
                                    • BoxB Offline
                                      Box
                                      last edited by

                                      Thomthom's UV Toolkit has an option to paint backface to front and vice versa.
                                      http://sketchucation.com/plugin/740-tt_uv_toolkit

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kennundrum
                                        last edited by

                                        TIG, I have this plugin but the only thing that works is Delete Back Faces and Match Back Faces. What am I doing wrong?

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          @kennundrum said:

                                          TIG, I have this plugin but the only thing that works is Delete Back Faces and Match Back Faces. What am I doing wrong?
                                          Are you sure you have read and understand how this toolset works and what it affects?
                                          Unless you tell me what you are doing, how can I know what you might have 'done wrong' ?

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • K Offline
                                            kennundrum
                                            last edited by

                                            Ok, here is what I'm doing: I select a group or component with reversed faces on it. I then pick from the plugins drop down>TIG: Reversed Materials>Fix Reversed Materials. I get the "There is an instance of a Component in the selection! Do you want to process any faces in it?" window and choose the Yes option. After processing, the results window tells me that 0 faces have been fixed. If I triple-click on it and select all faces, then run the plugin, it still returns 0 faces fixed.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement