[Plugin] Goldilocks v2.0

[Plugin] Goldilocks v2.0

Postby AdamB » Thu Oct 21, 2010 8:44 pm

I keep coming across models with parts that are totally out of kilter detail-wise with the rest of the model.

Having consistent texture density is important to give a sense of realism but sometimes models carry insanely large textures. Goldilocks can, for a given viewpoint, identify textures that are too large for your usage of them. You will gain nothing but file size by keeping the textures that Goldilocks identifies. It certainly won't help your raytracing etc.

The original Goldilocks is here http://forums.sketchucation.com/viewtop ... 23&t=22658

Goldilocks v2.0 adds Geometry analysis. Its not just texture resolution that needs to be consistent, its also a useful sanity check to have consistent "Content Density" in your model. ie your model is built with a consistent amount of detail. Before you say it, yes I know sometimes you have a reason for having more detail in one area than another.

However, I keep finding models running slowly that turns out an espresso cup with a zillion faces in the corner of the room. So "Content Density" is a measure of "geometry per unit of space".

Goldilocks v2.0 adds another menu item that shows all your Groups/Component Instances ranked with respect to the whole models "Content Density". Basically, if you run it on a model and see a Group/Component waay out in front - so the amount of geometry per unit of space for that Component is far higher than the rest of the model - you might want to have a quick look to make sure thats what you really want.

Download



Here what a report for geometry looks like. You can see a Group called "plate" has a much higher Content Density than everything else. Thats because that 1 plate has 38000 faces.. :-)
SketchUpScreenSnapz058.png


Adam
1
Last edited by Rich O Brien on Wed Mar 09, 2016 12:45 pm, edited 2 times in total.
Reason: Edited subject as in the lack of the [Plugins] tag, it was not listed in the index.
Developer of LightUp Click for website
User avatar
AdamB 
LightUp Support
LightUp Support
 

Re: Goldilocks v2.0

Postby thomthom » Thu Oct 21, 2010 8:57 pm

:thumb:

Sounds cool.

Wonder what it'll say about my models... :roll:
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: Goldilocks v2.0

Postby EarthMover » Thu Oct 21, 2010 9:01 pm

This will be useful for me. Thanks! :thumb:
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

Re: Goldilocks v2.0

Postby honoluludesktop » Thu Oct 21, 2010 9:35 pm

Very handy, Adam. The next step is to semi-automatically "reduce-texture", "poly-reduce" or "un-smooth" select problem areas. Who said "we can't ask for everything".:-) Just kidding.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: Goldilocks v2.0

Postby Pixero » Fri Oct 22, 2010 3:33 pm

Thanks for the update Adam, I know I have "sinned" before. ;)
Would it be possible to have the plugin recrop and/or resize an image?
I have used some models, like framed pictures, from 3d warehouse that upon inspection consisted of one huge image that was applied to several frames with even more of the image outside the frames. doing it manually would take a lot of time so would it be possible?
0
User avatar
Pixero 
 

Re: Goldilocks v2.0

Postby Ben Ritter » Fri Oct 22, 2010 4:08 pm

Adam, thank you.
0

Ben Ritter 
 

Re: [Plugin] Goldilocks v2.0

Postby richhaas » Wed Apr 13, 2011 11:03 pm

Great Plugin Adam! I ran this on the "723 SPRING STREET" Sketchup file and I couldn't believe how large the percentages were for the VELUX window components! Lesson learned. If you're importing anything into your drawings run this to see if you haven't imported a jillion faces.
I don't want manufacturers cutting down on detail but how about a second component line that is just visible faces...
0

richhaas 
 

Re: [Plugin] Goldilocks v2.0

Postby JPMays » Thu Mar 08, 2012 4:38 pm

Adam, thanks for this plugin. I think it will prove helpful in reducing my file sizes. I do have a question about the output, however. Can you explain to me what the higlighted numbers below mean? You interpreted the below graphic to mean that the plate had 38,000 faces - how did you know that? Did you just open that component and select them? Or do those numbers relate to that?



Thanks.
0
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

JPMays 
 

Re: [Plugin] Goldilocks v2.0

Postby August » Thu May 31, 2012 5:17 am

My guess, without a reply from Adam, is that the 38,000 number is half of the number shown. The math works between what is shown and what Adam said. But why half? Well, if he is counting the number of edges of each face, most edges are going to be counted twice. It would only be ALL edges counted twice if the object was a "manifold", closed 3D shape with no floating bits of faces anywhere.

That's my guess,
August
0
“An idea, like a ghost, must be spoken to a little before it will explain itself.”
-- Charles Dickens

August 
 

Re: [Plugin] Goldilocks v2.0

Postby Krisidious » Fri Oct 31, 2014 5:53 am

I love this plugin...
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Goldilocks v2.0

Postby johnwmcc » Sun May 07, 2017 11:02 am

Useful plugin to name the materials taking a lot of space.

Would it be possible to list, as well, the component containing the material? On a Mac, particularly, there's no easy way to list or search to FIND the material just from its name.
0

johnwmcc 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Goldilocks v2.0

Postby db11 » Sun May 07, 2017 1:53 pm

johnwmcc wrote: On a Mac, particularly, there's no easy way to list or search to FIND the material just from its name.

Material management on a Mac is quite lacking in several respects. To help with this specific problem, use TGmatlist ( https://sketchucation.com/plugin/1168-tigmatlist ). It allows you to pick materials from a dropdown list of material names:

Screen Shot 2017-05-07 at 8.43.20 AM.png


If you prepick the material and invoke the plugin, then the material name is displayed at the top level without having to expand the list:

Screen Shot 2017-05-07 at 8.43.04 AM.png


The more materials you have in your model, the more useful the plugin — especially if you have naming conventions for your materials (so that materials list in a predictable order)

I'll check out Golidlocks: sounds like it could be helpful in certain cases.
0

db11 
 

Re: [Plugin] Goldilocks v2.0

Postby driven » Sun May 07, 2017 8:42 pm

Goldilocks needs a minor tweak to be better on a mac...

do a search and replace for the word 'show' and replace with 'show_modal'...

john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Goldilocks v2.0

Postby db11 » Mon May 08, 2017 3:41 am

Thanks for the tip — will do.
0

db11 
 

Re: [Plugin] Goldilocks v2.0

Postby pbacot » Sun May 06, 2018 2:22 am

I'm trying to fix a big file. Can someone explain what the Goldilocks output means. In the screenshot, does this mean the very component last in each list muntin v#2 is the big component or the whole window or door? The muntins should only be 6 sides :o If I open this up and select all it is 18 entities

Also there is a number in each column. On the left "24" on the right and "1287070" on the right. I guess the one on the right is actual edges? (where are they?)

I am comparing to some similar projects made in similar fashion. This file is 79 MB--10 times larger than some of the others and a pain to work with.
0
Last edited by pbacot on Sun May 06, 2018 5:46 pm, edited 1 time in total.
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Goldilocks v2.0

Postby pbacot » Sun May 06, 2018 3:43 am

I fixed my immediate problem without changing a thing in the model. I selected the whole model and pasted in place to an empty template. I cleared the model. (hidden geometry on, zoom extents). Still 68 MB--empty model except the styles and section cuts. Purged it and still saved huge, but closed and file was finally 155 KB. Pasted my model back in and now the file is 4.2 MB and still all the scenes and styles I had before. So what did I learn? A huge file may be due to "something out there" rather than the contents.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Clue, Floriannn and 7 guests

Visit our sponsors: