[Plugin] Probes (1.2.1) —07 May 2010

[Plugin] Probes (1.2.1) —07 May 2010

Postby thomthom » Fri Aug 28, 2009 1:54 pm

Will use this plugin as a collection of various tools to query and probe a model. For modelling and development purposes.

Normals
Version 0.1.0a
Plugins->Probes->Normals
Probes - Normals.png

Mouse over a face or edge to see the normals.
When hover over a face you will also see its edge's normals.
When hovering over an edge a purple point will indicate the start vertex of the edge. (The Blue axis will point from start to end.)
Click on a face to flip its normal.
Version 1.1.0
  • Ctrl+click will swap frontface and backface materials while flipping normals.
Version 1.2.1
  • End-point on Normals indicating if the edge is reversed if the end-point is a circle.

UVQ Values
Version 0.2.0b
Plugins->Probes->UVs
Probes - UVs.png

Displays the UVQ values of each vertex for the face that the mouse points at. This returns the values that the UVHelper class returns.
Version 0.3.0b
  • Ctrl toggles front-face or back-face probing.
  • Shift toggles drill-down mode. In drill-down mode the probe picks faces inside groups/components.
Version 1.0.0
  • Tab toggles between real UV values and raw UVHelper data.
Note: Values are rounded to 3 decimals. Rounded numbers should be denoted by an ~.
Version 1.2.0
  • F2 will display the PolygonMesh and it's UV values and vertex indexes.

Count CG Materials
Version 0.4.0b
Plugins->Probes->Count CG Materials
Counts and select all groups and components with materials applied - ignoring V-Ray objects.
0
Last edited by thomthom on Thu Nov 26, 2009 4:00 pm, edited 9 times in total.
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] Probes (0.1.0a) — 28 September 2009

Postby Ben Ritter » Fri Aug 28, 2009 2:03 pm

28 September? Back to the future! :o
0

Ben Ritter 
 

Re: [Plugin] Probes (0.1.0a) — 28 September 2009

Postby thomthom » Fri Aug 28, 2009 2:12 pm

Ben Ritter wrote:28 September? Back to the future! :o

:?
*jedi mind trick* You saw nothing...
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] Probes (0.1.0a) — 28 August 2009

Postby Pixero » Fri Aug 28, 2009 3:13 pm

I dont suppose you've found a way of setting the normal of a face to a certain value?
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] Probes (0.1.0a) — 28 August 2009

Postby thomthom » Fri Aug 28, 2009 3:14 pm

No such control from the API.
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] Probes (0.1.0a) — 28 August 2009

Postby TIG » Fri Aug 28, 2009 3:21 pm

Pixero wrote:I dont suppose you've found a way of setting the normal of a face to a certain value?

Wouldn't that be equivalent to rotating it until it's face.normal==new_normal - face.reverse! is the extreme version where it's rotated 180 degrees but keeps its edges unchanged ?? Since setting a face.normal affects all connected geometry - edges and other faces it seems nightmarish ???
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Probes (0.1.0a) — 28 August 2009

Postby Pixero » Fri Aug 28, 2009 9:22 pm

Im not talking about rotating the face.
In many3d apps you can use normal maps to change how a surface looks at rendertime. Realtime or software rendered.
I'm looking for a way of setting the face normal to a custom value like [0,0,1].
That would mean the face reacts to light as if it was pointing straight up in the z direction, giving us the possibility to overcome things like imagesplane grass or trees having a different lighting than the ground.
Hope I make myself clear.
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] Probes (0.1.0a) — 28 August 2009

Postby remus » Fri Aug 28, 2009 9:29 pm

I think the point TIG was trying to make is that if you want to change the face normal in SU youd have to rotate the face, and thus most likely mess your model up.
0

remus 
 

Re: [Plugin] Probes (0.1.0a) — 28 August 2009

Postby Chris Fullmer » Fri Aug 28, 2009 10:31 pm

But Jan's point is that other software let you force a normal direction - one that is not phyiscal, only interpereted by the renderer (SU internal renderer and external ones too). So it does not mess up the geometry, merely assign a new normal for shading.

But no, its not possible to do in SU.

But an external renderer could implement it if they saw the reason for it (which I admit that I do not fully understand).

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Probes (0.2.0b) — 9 September 2009

Postby thomthom » Wed Sep 09, 2009 12:39 pm

New tool: UV values - displays the UVQ values the UVHelper class returns for the front side.
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] Probes (0.3.0b) — 10 September 2009

Postby thomthom » Thu Sep 10, 2009 11:43 am

Updated the UV probe to pick back-face values and allow it to digg into groups/components.
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] Probes (1.0.0) — 20 October 2009

Postby thomthom » Tue Oct 20, 2009 11:28 am

Code: Select all
# 0.4.0b - 11.09.2009
#       * Count Group & Components with applied materials.
#
# 1.0.0 - 20.10.2009
#       * Count Group & Components ignores V-Ray objects.
#       * UV Probe displays real UV coordinates.
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] Probes (1.0.0) — 20 October 2009

Postby tomasz » Tue Oct 20, 2009 6:09 pm

Hi Thomas,
Thanks for helpful tool and an example of 'SU Tool' as well. I propose a small modification to UV probe which displays order of vertices.

Code: Select all
               # Iterate each vertex and display UV values
               vertices=@entity.vertices
               for i in 0 ... vertices.size
                  v=vertices[i]
               #@entity.vertices.each { |v|

               .....


                  # (!) Output real UV data.
                  if @real_UV
                     view.draw_text(xy, "#{i} UV: #{TT_Probes.format_float(uv.x/uv.z,3)}, #{TT_Probes.format_float(uv.y/uv.z,3)}")
                  else
                     view.draw_text(xy, "#{i} UVHelper Raw Data: #{TT_Probes.format_float(uv.x,3)}, #{TT_Probes.format_float(uv.y,3)}, #{TT_Probes.format_float(uv.z,3)}")
                  end
               end
0

tomasz 
SU2TH & SU2KT Developer
 

Re: [Plugin] Probes (1.0.0) — 20 October 2009

Postby thomthom » Tue Oct 20, 2009 6:11 pm

I'll update the plugin tomorrow. Thanks for the suggestion. :thumb:
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] Probes (1.0.1) — 21 October 2009

Postby thomthom » Wed Oct 21, 2009 8:47 am

Updated!
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] Probes (1.1.0) — 24 November 2009

Postby thomthom » Tue Nov 24, 2009 9:56 am

Added Ctrl+Click to flip front/back materials while flipping normals.
Bug fix to drawing info in drill-down mode.
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] Probes (1.2.1) —07 May 2010

Postby thomthom » Fri May 07, 2010 11:21 am

Added indication in the edge normals if they are reversed_in? the face the cursor is over.

reversed_in.png
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
 



 

Return to Plugins

Who is online

Users browsing this forum: _domiomi, astro19930807, Google Bot, sokhet and 8 guests

Visit our sponsors: