SketchUcation Premium Membership

 

 

[Plugin] Fix Reversed Face Materials v1.6 20120716

Re: [Plugin] Fix Reversed Face Materials

Postby utiler » Wed Aug 25, 2010 11:24 pm

Thanks TIG, clear as crystal now....
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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

Postby Pilou » Wed Aug 25, 2010 11:52 pm

A black crystal :D
Faces are or are not well oriented :)
If they are false they must be reverse (material or not) :shock:
Then apply material :)

Maybe I miss something :mrgreen:
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10067
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials

Postby utiler » Thu Aug 26, 2010 1:46 am

Pilou wrote:A black crystal :D
Faces are or are not well oriented :)
If they are false they must be reverse (material or not) :shock:
Then apply material :)

Maybe I miss something :mrgreen:



maybe you're just a little crazy my man..... ;)
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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

Postby TIG » Thu Aug 26, 2010 9:03 am

Pilou - There is no way of knowing if a particular face is 'the wrong way round'. Especially if an edge has more than two faces.
The built-in 'Reverse' & 'Orient' will consistently arrange faces that are 'manifold', BUT if you have applied materials to a back-face then that won't flip onto the front-face.
This tool simply finds all selected faces that have a back-material but no front-material - it then can assume you have modeled them 'wrongly' and it reverses the faces and flips the back-material so it becomes the front-material. keeping the UV-mapping intact etc. This is important when 3rd party applications render the image exactly as you've exported it - i.e. most of them do not render the 'back-faces' at all - rendering only the front-face materials - which in such cases will be the 'wrong' side of the face!
This might well often look like an 'orient' operation - in the image example all faces do end up correctly oriented too - BUT 'orient' alone would not sort out the wrongly applied materials, as this tool does.
The tool's 'forced' option is similar, but that works even if a selected face with aback-material that has a front-material, reversing the face and using the back-material on the front-face instead and defaulting the back-material - because it is more 'dangerous' its sphere of operation is more limited...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13997
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

Postby Pilou » Thu Aug 26, 2010 9:21 am

This tool simply finds all selected faces that have a back-material but no front-material

That the Knot :)

In your image example walls have not thick, does the plug works also with thick walls ?
I suppose yes but... :)
wall.png
Please, register (free) to access all the attachments on the forums.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10067
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Fix Reversed Face Materials

Postby TIG » Thu Aug 26, 2010 1:39 pm

The tool works for any faces - as long as they only have a material on the back and not the front.
It simply reverses the face whilst leaving the materials in the same 'location' [orientation].
With an 'un-fixed' face - flick between Textured Mode and Monochrome Mode to reveal faces that are 'wrongly' oriented but have their materials on the back so look OK in the SKP-render BUT will fail in the external-renderers.
With a face that's 'fixed' it looks the same in the SKP 'Texture Mode', but it will then render properly in renderers [the Monochrome Mode should then show all faces oriented the same]
TIG
User avatar
TIG
Global Moderator
 
Posts: 13997
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

Postby TIG » Thu Aug 26, 2010 1:56 pm

Here's v1.4 viewtopic.php?p=264134#p264134
It has an additional Tool 'Reverse Faces and Materials' - this reverses faces keeping their materials with correct UV-mapping - effectively turning the form 'inside out': if it is 'brick' outside and 'wood' inside with the 'back-faces' oriented to the 'outside', then using the tool reverses the faces so that the back-faces are oriented to the 'inside', AND now the 'wood' material will be on the 'outside' and the 'brick' material will be on the 'inside' - UV-mapping will have been correctly reapplied.
For example I recently had an imported OBJ object that had all some objects with faces reversed ['blue' outwards] and so their materials were mapped [correctly] on their 'insides'. Simply 'reversing' the faces failed to keep the UV-mapping on the new face orientations [on 'smoothed' surfaces it's especially problematical] - but this tools now solves that problem.
The included lingvo files have all been updated to match the changes.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13997
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

Postby pmolsen » Wed Sep 08, 2010 12:55 am

TIG wrote:Note: Groups and Component-Instances that can have materials applied
directly onto them - then any faces within them that have the default-
material [front and/or back] will then appear to have that material applied
to them. In fact these faces within the Group/Definition will still have
the default-materials [front and/or back]. If you want to quickly remove
the appearance of this material on the back-faces within the group then
explode the group and immediately regroup the geometry - the group's
previous material will then be individually transfered to each face that
had the default-material. Now use this 'Delete Back-Materials' to delete
the unneeded back-material.


Excellent plugin! Exactly what I have been waiting for.

I think I must be missing something with your above comment though. As you say if a group or component is textured with a material without first opening the group or component, all untextured faces, including the back faces, appear to be painted with that texture.

To fix the problem there is no need to ungroup and regroup as stated above. Simply select the default texture (either from the materials window or by sampling an untextured front or back face) then paint the unopened group or model. All untextures faces go back to untextured the way they should be.
pmolsen
 
Posts: 91
Joined: Thu Jan 14, 2010 3:34 am

Unexpected Error on Load

Postby pmolsen » Wed Sep 08, 2010 1:06 am

When I start Sketchup after installing the plugin I get the following error:

Error Loading File FixReversedFaceMaterials.rb
No such file to load -- deBabelizer.rb

I checked the zip file and there is no such file in it. I found a copy in the Lattice Maker plugin but it should really be in this one as well.

Also what is the Sketchup8 link that is installed in the subfolder?
pmolsen
 
Posts: 91
Joined: Thu Jan 14, 2010 3:34 am

Re: Unexpected Error on Load

Postby TIG » Thu Sep 09, 2010 9:14 pm

pmolsen wrote:When I start Sketchup after installing the plugin I get the following error:
Error Loading File FixReversedFaceMaterials.rb
No such file to load -- deBabelizer.rb
I checked the zip file and there is no such file in it.
I found a copy in the Lattice Maker plugin but it should really be in this one as well.
Also what is the Sketchup8 link that is installed in the subfolder?

Sorry about this... it is always the same 'deBableizer.rb' file... BUT I have now added it to the zip [ viewtopic.php?p=264134#p264134 ] - it was packaged with the earlier zipped versions, but I missed it out of this one :oops:
I also managed inadvertently to add a shortcut linking to my copy of SUp v8 [luckily it's all public now anyway] - but that's now gone too !!! I just had a really bad day :roll:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13997
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

Postby Aerilius » Sun Sep 12, 2010 11:17 pm

No problem, that shortcut was not dangerous :)
Many thanks, this is the best reversed-faces-plugin that I ever found :thumb:

I saw, maybe you'd like to have a german translation ;)
FixReversedFaceMaterialsDE.lingvo.zip
Please, register (free) to access all the attachments on the forums.
Aerilius
Top SketchUcator
 
Posts: 1132
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern

Re: [Plugin] Fix Reversed Face Materials

Postby TIG » Sun Sep 12, 2010 11:36 pm

Thanks for the DE lingvo.
I'll include it in any future release - unless someone else wants to jump in with another version or comments...
My German is not up to much [as you probably noticed!]... ;)
TIG
User avatar
TIG
Global Moderator
 
Posts: 13997
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

Postby TIG » Tue Oct 19, 2010 1:52 pm

Here's a tweaked German lingvo file [by Aerilius]...
FixReversedFaceMaterialsDElingvo.zip
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13997
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

Postby Ecuadorian » Tue Dec 14, 2010 11:04 pm

Thank you, TIG!

This is a life saver... :thumb:
Ecuadorian
 
Posts: 1621
Joined: Thu Jan 15, 2009 10:20 pm
Location: Ecuador
Name: Miguel
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Fix Reversed Face Materials

Postby TIG » Mon Jan 03, 2011 5:18 pm

Here's another version of the DE lingvo [by User2012] - try them and choose which you want...
FixReversedFaceMaterialsDE.zip
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13997
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

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: 8317
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: 13997
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: 8317
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: 13997
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: 8317
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: 13997
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: 13997
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: 119
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: 13997
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: 13997
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: 1928
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).
"If you don't plan ahead you'll be at the mercy of those that do" - Ashleigh Brilliant

"Bad is not good until worse happens" - Bob James
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 608
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], Darkitect, driven, Edson, JackB, minstrel, NigeC, Pfafel, thesaucer, unearthed and 8 guests