[Plugin] QuadFaceTools

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby Thiago Luz » Mon Nov 07, 2011 7:50 am

This plugin only works for now with 4 faces between lines is this?

I'm sorry, I do not speak English and use an online translator does not always help a lot!

Because I would like to map quilts, but I see that this is not possible, as this is the following example:



http://farm7.static.flickr.com/6107/632 ... 0d38_b.jpg

Thanks!
0

Thiago Luz 
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Mon Nov 07, 2011 8:07 am

Thiago Luz wrote:This plugin only works for now with 4 faces between lines is this?

Yes, they must be quads, and you also needs to have a good topology of quads for the tools to work well.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Mon Nov 07, 2011 8:24 am

Luigi987 wrote:
thomthom wrote:I'm suspecting it's the shape of the quads in the corners that makes the UV mapping distort in such a manner. I'm guessing it's native quads - so I'd try to triangulate them (using the Triangulate method in QuadFace Tools.)

Can you share a sample model?


Tried triangulating with said option, no luck.

Here's the model part.


Here's your sample model remapped ( I erased the hidden geometry stuff and purged before reposting to keep filesize down )
The screenshot got annotations to what I did.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby Thiago Luz » Mon Nov 07, 2011 8:33 am

Still, a great plugin, thanks!
0

Thiago Luz 
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby Rich O Brien » Thu Nov 10, 2011 7:15 pm

Thom,

Is it possible that you'll mimic Selection Toys and allow the user to choose what's on the toolbar?

Or am I missing the option?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Thu Nov 10, 2011 7:20 pm

Rich O'Brien wrote:Is it possible that you'll mimic Selection Toys and allow the user to choose what's on the toolbar?
Or am I missing the option?


That is in fact something I want to implement. The features and commands for this plugin has grown a lot since first version, and there's several commands still without toolbar buttons and more will come. yaiks...

Though first I need to get 0.6 out asap - that address the issue with scenes breaking the quads... :(
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby Rich O Brien » Thu Nov 10, 2011 7:23 pm

That's good to hear :enlight:

Any Bezier Surface news on the horizon?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Thu Nov 10, 2011 7:31 pm

I hope so... :( I've really blown my internally estimated timeline for this... Gotto get my focus straight! First sign will be that beta for Vertex Tools open up.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby rombout » Thu Nov 10, 2011 8:47 pm

i cant find a option to make quads of a selection?!
0
User avatar
rombout 
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby TIG » Thu Nov 10, 2011 9:13 pm

rombout wrote:i cant find a option to make quads of a selection?!
Capture.PNG
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby Rich O Brien » Thu Nov 10, 2011 9:36 pm

You need to select a quad to then convert the mesh to quads.
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Thu Nov 10, 2011 10:41 pm

rombout wrote:i cant find a option to make quads of a selection?!

What kind of selection do you got?

There are a couple of commands to Convert to quads:
QFConvert.png


The left command "Convert Triangulated Mesh to Quads" will try to find quads in the mesh - you need to either selected a native quad or two triangles as a starting point.

The right one is converting Sandbox Tools type of quad mesh into QuadFace quads.

Maybe you can explain, and show, what mesh you have and what you try to convert?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Thu Nov 10, 2011 10:42 pm

TIG wrote:
rombout wrote:i cant find a option to make quads of a selection?!
Capture.PNG

That's Triangulate and Remove Triangulation you highlighted... don't think it's what he's looking for.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby vouda » Fri Nov 11, 2011 10:29 am

Big congratulations for your plugin!
But I have a problem. When I render with su podium the aspect ratio of edited surfaces colapses.
Any solution?
0

vouda 
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Fri Nov 11, 2011 10:37 am

vouda wrote:When I render with su podium the aspect ratio of edited surfaces colapses.

I do not understand what you mean by that. Got screenshot and possibly a sample model?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby vouda » Fri Nov 11, 2011 11:39 am

I edit the model with the tools and it looks ok.
Then when i render the model, the surface material distorts.
I will try to upload the model later
0

vouda 
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby thomthom » Fri Nov 11, 2011 11:57 am

Sounds like it has problems with distorted textures - many render engines has.

Try to triangulate the quads - see if that make a difference.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.5.0b) — 13 October 2011

Postby vouda » Fri Nov 11, 2011 6:10 pm

Triangulate the quads worked!
Thank you very much for the tip.
0

vouda 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Sun Nov 13, 2011 5:06 pm

Version 0.6.0

  • Redefined how a quad is defined to address issues the Hidden property causes. Important Change - Please read the instructions on how to upgrade.
  • Performance improvements
  • Step increment with face loop selection fixed for when only one quad was selected

Important!

The definition of a QuadFace was changed again in version 0.6 because the previous versions relied on the Hidden property. The Hidden property is affected by a model's Scenes, so when you copied quad mesh into a new model you would loose the Hidden property of the diagonals.

To update a mesh from the older versions, use:
Tools > QuadFace Tools > Convert > Sandbox Quads to QuadFace Quads
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby pbacot » Sun Nov 13, 2011 10:24 pm

Smooth / Unsmooth Quads

Added in Version 0.2.0

The native smoothing function in SketchUp will destroy triangulated quads. Use these functions to perform a smooth that preserves the integrity of the quads.


Does this mean if one wishes to make nice quad geometry for texturing organic models and general better control etc. we should avoid using the SU smoothing function at all?

E.G. using EEByR and choosing quads, one should use THIS tool and not SU smoothing, or the quads are for naught?

Regards, Peter
0
Last edited by pbacot on Mon Nov 14, 2011 12:10 am, edited 1 time in total.
MacOSX Mojave High Sierra SketchUp Pro v19 Twilight v2 Thea v2 PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Sun Nov 13, 2011 10:31 pm

I would recommend using this tool. If you use the native tool to smooth then you should be fine, but if it unsmooths - then you might risk that it unsmooths the diagonals. The diagonals must at all times be Soft + Smooth + Cast Shadows = false.

Same applies to the Eraser tool, if you use it to smooth, then you're fine. If you use it to unsmooth you must take care of not unsmoothing the diagonal edge in triangulated quads.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby McGyver » Mon Nov 14, 2011 12:14 am

This seems to be a very cool and powerful tool...
I can't seem to use the UV mapping tool on anything but a Sandbox mesh though... Is this only meant to be used with a mesh made using sandbox? How was the model in the demo video in the original post or that Viking boat made (outside SketchUp or using Artisan)? I tried mapping a sphere with the ends cut off , but it wont work... it appears to be made of quads... are they not the right kind of quads? The Video makes it look very simple, but it just does not seem to want to work on anything other than a sandbox mesh...
0
User avatar
McGyver 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Mon Nov 14, 2011 9:31 am

Are you using SketchUp 6? (your profile indicate so - is is up to date?) I know it says it works for 6, but there might be some stuff I've added lately that breaks that.

Do you see anything in the Ruby Console?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Mon Nov 14, 2011 9:32 am

hmmm... your screenshot seem to indicate you are on 8... due to the coloured overlay....

Can you by any chance made a small video of what you do?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby McGyver » Mon Nov 14, 2011 5:17 pm

You are correct, I am using SU8 now, I had forgotten to update the profile data, sorry.
I don't really know how to make a video demo (or even if mac really has anything like that)... but I could explain.

1- using the "spheretool" (by Jim Foltz), I create a sphere... in this case about 12' diameter with 24 segments...

2-I then exploded it.

3-I made a small 4 sided plane and applied (to it) the material I'd like to use on the sphere. I did this to be sure the material was definitely being "used" and SU knew it was there... in pervious tries I just loaded the material and selected it without it being used in anything else and it did not work... when looking at the video (the first video) I noticed one of the models in the background may have had the material being used, applied to it, so I figured it probably won't hurt and might be required for it to work right...

4-Since this was an experiment to see how to use the plugin I saved the file at this point so I would not have to repeat the whole process if SU crashed (which it did several times while doing this) or if the attempt fails.

5-I select the material

6-I choose the "UV map selected quads" tool (it now tells me to "Pick a vertex for origin or an edge for U direction") and I then click on the model when the little orange square shows up on it (originally I was trying for a specific area I wanted it be at, but at this point I'm not fussy, I just want it to work)... I usually choose an area around the equator on or near one of the axis lines (it does not seem to matter where since the results are always more or less the same).

7-The tool shows a green line on the surface of the model and tells me to "pick an edge for V direction"... I do so.

8-It then does the red and green lines on the surface of the model and nothing else... From the video I assume the material should mapped onto the surface and now all I have to do is scale it using the green and red "handles"... I notice in the video the tool now tells you to "set U and V mapping scale"... I get no such message.


I have tried many different things between steps 4 and 5... I have tried converting the quads, triangulating them, I have tried triangulating and untriangulating them, smoothing and unsmoothing the quad edges, unsmoothing and smoothing the quad edges... Tried for about two hours to get results... since the whole process from start to failure takes only like 20 seconds or less, I've made quite a few attempts and different variations on attempts.

I'm using a 2 GHz Intel Core 2 Duo Mac running OS 10.5.8 and this is being done in the latest version of SU8 (free)...

While experimenting, SU crashes about 4 out of 10 tries... each "try" being opening up the file, failing to get the result and closing the file without saving and re-opening it. At some point during or just after the process there is a crash.

I just want you to know (thomthom) that I appreciate this plugin and I'm not complaining... I assume it is either me, some conflict with some other plugin I have AND/OR the fact that I use an Apple product (which at this point I'm kind of tired with their lack of compatibility and high price)...

Also, sorry if this is a long read... I tried to be as descriptive as possible.

Also this is the most common message I get in the ruby console:

Error: #<TypeError: nil can't be coerced into Float>
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:856:in `/'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:856:in `point_on_axis'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:386:in `activate'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1126:in `push_tool'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1126:in `onLButtonDown'

Anyway... thank you for your time!
0
User avatar
McGyver 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby Ben Ritter » Mon Nov 14, 2011 5:37 pm

Thomas, thank you for all your updates and for sharing.
0

Ben Ritter 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby McGyver » Mon Nov 14, 2011 6:04 pm

I just wanted to add an update... I decided to give it a try in SU6 and it works without any problems... just like in the video.

Actually the only thing that appears different is that I can't rotate around the model while in "scale texture" mode... if I choose the rotate tool, it leaves scale mode and I'm stuck with whatever it was at when it dropped it.

But at least I can use it!!
0
User avatar
McGyver 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby pbacot » Mon Nov 14, 2011 6:19 pm

McGyver,

I just wanted to note that I tested the quad faced texture on a sphere in SU8 Pro on a Mac, and it worked fine AFIK. I was able to scale etc. However I created a sphere using follow me (I didn't want yet another plugin, just for this test).

Peter
0
MacOSX Mojave High Sierra SketchUp Pro v19 Twilight v2 Thea v2 PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby dfswyf » Mon Nov 14, 2011 6:36 pm

This is a fantastic plugin I have ever seen! Thank you so much!
0
User avatar
dfswyf 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Mon Nov 14, 2011 6:51 pm

McGyver wrote:Error: #<TypeError: nil can't be coerced into Float>
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:856:in `/'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:856:in `point_on_axis'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:386:in `activate'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1126:in `push_tool'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1126:in `onLButtonDown'


When do you get this?

Also, are you using v0.6?


McGyver wrote:Actually the only thing that appears different is that I can't rotate around the model while in "scale texture" mode... if I choose the rotate tool, it leaves scale mode and I'm stuck with whatever it was at when it dropped it.

It works when you use the middle mouse button to orbit. Does the UV Mapping tool behave differently from other tools? I mean, how do you return to the tools if you explicitly activate the Orbit tool?

(I assume you meant Orbit tool when you said Rotate tool...)
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: antart and 2 guests

Visit our sponsors: