SketchUcation Plugin Store

 

 

[Plugin] Fix Reversed Face Materials v1.6 20120716

Re: [Plugin] Fix Reversed Face Materials

Postby Eugenegoth » Fri Feb 03, 2012 1:36 pm

Thank you TIG!!!!
Eugenegoth
 
Posts: 1
Joined: Wed Feb 09, 2011 9:58 am

Re: [Plugin] Fix Reversed Face Materials

Postby Rich O Brien » Wed Feb 15, 2012 11:20 pm

Any chance this could be compiled under a menu? :?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8425
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby TIG » Thu Feb 16, 2012 10:43 am

Rich O'Brien wrote:Any chance this could be compiled under a menu? :?

No sooner said than done - here's v1.5 with the four tools under one submenu viewtopic.php?p=264134#p264134
:ugeek:
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby Rich O Brien » Thu Feb 16, 2012 10:56 am

Thanks :thumb:

I've a file that doesn't remove backface materials :?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8425
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby TIG » Thu Feb 16, 2012 11:02 am

Rich O'Brien wrote:Thanks :thumb:
I've a file that doesn't remove backface materials :?

Let's see it - PM if needed...
Is it perhaps a group/instance where the back face is actually the default material but is displayed in the container's material ? :geek:
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby Rich O Brien » Thu Feb 16, 2012 11:10 am

Too large for here. I'll email it.
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8425
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby TIG » Thu Feb 16, 2012 11:16 am

Got it.
Where are the errant back faces with materials ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby TIG » Thu Feb 16, 2012 11:22 am

Fixed it and emailed back to you... a material was applied to some group/instances, I used the Outliner and Entity Info to make it the default-material, then re-ran the tool to remove all back-face-materials - it seems OK now ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby JGA » Thu Feb 16, 2012 11:44 pm

Thanks
Regards,
JGA
JGA
 
Posts: 122
Joined: Wed Nov 14, 2007 4:57 pm
Location: Scotland
Name: JGA

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby irwanwr » Sat Feb 18, 2012 12:13 am

i might have a problem with the new version 1.5 20120216.
i don't know why and not sure either.
the last time i used this plugin, it can be accessed in context menu by right clicking.
but it seems that the new version would only available in the toolbar menu instead.
i just overwrite the previous version when installing this new one.
User avatar
irwanwr
 
Posts: 571
Joined: Fri May 21, 2010 2:21 am
Location: Medan, Indonesia.
Name: irwanwr
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby TIG » Sat Feb 18, 2012 11:18 am

Iranwr

You are mistaken. :?
This toolset has never had any 'context-menu' options.
It has only ever worked from menu items.
This last update only combined all of the tools into one submenu, to avoid clutter etc.
Nothing else was done to the coding.
There is [and there never was] any code in the script regarding context-menus.
You also mention 'toolbar' - it never had a toolbar either - I suspect you actually meant 'menu' ??
OR perhaps you are thinking of another tool altogether ?
:roll:
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.5 20120216

Postby irwanwr » Sat Feb 18, 2012 5:16 pm

ah yes, sir.
i think i've made mistakes and confuse this tool with the other one.
and yes, what i meant was the menu bar.
sorry for bothering you with my mistakes.
i probably was thinking of that context menu feature if it's possible for this plugin.
obviously, it's not good to do modelling, thinking, reading and post a comment for feature request at around 4 am early in the morning.
User avatar
irwanwr
 
Posts: 571
Joined: Fri May 21, 2010 2:21 am
Location: Medan, Indonesia.
Name: irwanwr
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby TIG » Mon Jul 16, 2012 10:40 am

Here's v1.6 viewtopic.php?p=264134#p264134
It includes a new tool. If you have faces with different materials front and back and you would like the back to match the front use this tool...
Plugins > TIG: Reversed Face Tools... > Match Back-Materials
It will match all selected faces' back-materials with the front-materials,
maintaining UVmapping if the material is textured etc...
There is no reversing or flipping of faces - the back-material is simply matched
to the front-material.
Do not use this as an excuse for sloppy modeling!
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby utiler » Tue Jul 17, 2012 12:06 am

Many thanks from Down Under, TIG!!!! :thumbd:

[That's a down under thumb BTW....]
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1936
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Bob James » Tue Jul 17, 2012 7:52 am

I use TheaRender and it is very fussy about flipped faces. Now suppose I build a complex model and somehow an odd assortment of faces (large and very small) are reversed. Is there an analogous plugin that will set all of the faces correctly before I apply any textures? (i.e.; all at the same time rather than having to go in and flip them one at a time).
I've reduced my experience level to intermediate because how can I possibly be "advanced" if Solo lists himself as intermediate!!
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 619
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby TIG » Tue Jul 17, 2012 11:15 am

Bob
Monochrome mode + a Style with a contrasting back-face material color... is good to check the correct orientation of faces.
The native Reverse 'flips' selected faces.
The native Orient tool ensures that all connected faces match a selected face's orientation, reversing those that don't comply.
However, if any face's edges are used by more than two faces then Orient can't succeed, because there is then no 'right answer' for those faces' orientation.
There are several scripts to 'reverse' faces, using different methods - picking, camera direction etc...
The Fix... toolset is specifically written to flip faces/materials that you have accidentally left reversed and have then textured on the backs - meaning your 3rd-party render application will probably render them white [or black] - as most renderers do not apply materials to 'back-faces' as these should always be unseen, being 'inside' objects...
The main Fix... tool finds all face in the current selection - with options to drill down into selected groups/instances and find those faces too - and if any of the faces have materials on their backs but no material on their front the faces are reversed, and their back material is reapplied onto the [now correctly oriented] front face, using the same UVmapping for any texture so that the appearance does not change at all, but the renderer will now happily use the material on the reversed face.
The latest tool matches back material to front materials, keeping matching UVmapping of textures - this way should you apply a textured material with say a transparent png image - like a latticework fence - it will be aligned on the faces' backs to match the fronts, and will appear correctly from both sides...
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Dave R » Tue Jul 17, 2012 12:07 pm

Bob, TIG's point about Monochrome and the contrasting back face color is a good one. I use a green back face color to make it easier to pick out reversed faces and holes. It's a color I wouldn't normally use in practice and it is much easier to pick out than the default blue-gray.

I've got my default style and startup template set to show that green color. If you don't want to do that, you might setup a style with some obnoxious back face color to use during cleanup.

Perhaps the biggest thing to make the process easy is to stay on top of the reversed faces and fix them as you go. I think of it as good housekeeping. The biggest problem I have with reversed faces comes when I try to use components from the warehouse. As you know, there's an awful lot of crap there. It's pretty common to find components that are very sloppy in the way they are modeled. If it takes me more than a minute to fix a component I downloaded, I discard it and model it myself.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 9250
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Bob James » Wed Jul 18, 2012 7:44 am

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.
I've reduced my experience level to intermediate because how can I possibly be "advanced" if Solo lists himself as intermediate!!
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 619
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby TIG » Wed Jul 18, 2012 9:54 am

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
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Bob James » Wed Jul 18, 2012 4:30 pm

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.
I've reduced my experience level to intermediate because how can I possibly be "advanced" if Solo lists himself as intermediate!!
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 619
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby TIG » Wed Jul 18, 2012 4:51 pm

Bob James wrote: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... :roll:
TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Rich O Brien » Wed Jul 18, 2012 4:53 pm

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.
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8425
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Rich O Brien » Wed Jul 18, 2012 4:54 pm

I just realised my error in this thinking.... :oops: ....ignore
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8425
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Bob James » Wed Jul 18, 2012 9:57 pm

TIG wrote: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?
I've reduced my experience level to intermediate because how can I possibly be "advanced" if Solo lists himself as intermediate!!
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 619
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby TIG » Wed Jul 18, 2012 10:45 pm

TIG
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby Liverpudlian82 » Mon Jan 14, 2013 9:48 pm

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!
Liverpudlian82
 
Posts: 1
Joined: Fri Sep 28, 2012 10:43 pm
Name: Liverpudlian82

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby TIG » Tue Jan 15, 2013 12:05 am

@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
User avatar
TIG
Global Moderator
 
Posts: 14311
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials v1.6 20120716

Postby syonker » Sat Feb 09, 2013 7:58 pm

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
syonker
 
Posts: 1
Joined: Sat Jan 03, 2009 3:02 pm
Name: Spencer Yonker

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Vertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Previous

Return to Plugins

Who is online

Users browsing this forum: HornOxx and 8 guests