[Plugin] Goldilocks

[Plugin] Goldilocks

Postby AdamB » Mon Oct 12, 2009 5:24 pm

aka 'Not too much, not too little'

One of the common problems I come across when speaking with people using texturing in any package, is how much resolution/detail is needed in textures. Is 256x256 pixels enough? 1024x1024? 4096x4096?

Have too much texture resolution, and you slow down your system, too little and you get blurry renderings.

The amount of resolution you need is "view dependent". If you're very close to a surface you need more detail in the textures than when you're far away.

Goldilocks analyses your materials and model with respect to the current viewpoint and produces a bar chart showing which textures are about the right resolution (green bars), and which are too high resolution resulting in wasted space/larger filesize, or too low resolution resulting in a blurry look - both shown as red bars.

Adam
0
Developer of LightUp Click for website
User avatar
AdamB 
LightUp Support
LightUp Support
 

Re: [Plugin] Goldilocks

Postby remus » Mon Oct 12, 2009 5:39 pm

Cool idea and well implemented, have to run it over a few of my old models and see what it thinks :)

one mini crit, would it be possible to have a different colour for 'too small' and 'too big', as if all your textures are one way its extra work to try and figure out whether to enlarge or shrink the texture.
0

remus 
 

Re: [Plugin] Goldilocks

Postby AdamB » Tue Oct 13, 2009 11:08 am

OK, here's an updated one with 3 color barcharts as suggested my remus. Also turns on scrolling.
0
Developer of LightUp Click for website
User avatar
AdamB 
LightUp Support
LightUp Support
 

Re: [Plugin] Goldilocks

Postby remus » Tue Oct 13, 2009 12:21 pm

Thanks, works like charm.
0

remus 
 

Re: [Plugin] Goldilocks

Postby EarthMover » Tue Oct 13, 2009 1:03 pm

Worked well for me also. Although, as it is a viewport dependent report and I typically render out 5 or 6 views for a client, I don't believe it would be practical to change the image resolutions for each render. It will help to find errant resolutions on imported models that may be slowing down my scene overall though.

Thanks for all your hard work to make this tool!
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: [Plugin] Goldilocks

Postby EscapeArtist » Wed Oct 14, 2009 2:56 pm

Excellent tool! Thanks. This will help me as a relatively new guy on getting that texture right.
0
User avatar
EscapeArtist 
Top SketchUcator
 

Re: [Plugin] Goldilocks

Postby thomthom » Wed Oct 14, 2009 6:26 pm

May I suggest that you only offer one version of the plugin in the start of the thread? You'll find that people don't always scroll down to look for updates, and it can get hard to find the latest if it's hidden down in the thread.

(A screenshot gives you cookies points. ;) )
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] Goldilocks

Postby Ecuadorian » Sun Nov 22, 2009 11:50 pm

Thanks for this, Adam.
If I am estimating correctly, "1.0" means the texture is about the right size for a 640x480 render for the current camera, right? Then for renderings that are to be printed, I must try to get my textures around the 4.0 spot.
goldilocks.jpg
0

Ecuadorian 
 

Re: [Plugin] Goldilocks

Postby Mike Lucey » Mon Nov 23, 2009 1:11 am

Nice ruby for max use of limited resources, thanks Adam :thumb: Just curious! why the name Goldilocks?
0
User avatar
Mike Lucey 
Mayor
 

Re: [Plugin] Goldilocks

Postby Ecuadorian » Mon Nov 23, 2009 2:42 am

Wikipedia wrote:The Goldilocks Principle comes from a children's story Goldilocks and the Three Bears in which a little girl found a house owned by three bears. Each bear owned a separate copy of many things, such as food, beds, etc. After testing each of the three, Goldilocks determined that one was always too much in one extreme (too hot, too large, etc.), one was too much in the opposite extreme (too cold, too small, etc.), and one was "just right."


http://en.wikipedia.org/wiki/Goldilocks_Principle
0

Ecuadorian 
 

Re: [Plugin] Goldilocks

Postby Fletch » Tue Dec 15, 2009 1:55 am

Hi Adam, OK... so I have a SU model sent to me that has about 12 images that are way oversized.

I can easily see the big files in Windows Explorer and resize the images manually with Pshop... but how can I easily load them back into SU? SU already has these larger material textures loaded ... it would be cool if there were a tool to quickly replace them with the newly re-sized images.

some sort of "Replace all textures in scene that are in this folder"

of course, even better would be to use Goldilocks, but then be able to select any image that is desired to be resized and resize it with that tool all without leaving SketchUp.

If anyone knows of a tool to reload the textures in the SU file from a file folder, please let me know.
0

Fletch 
Twilight Render
 

Re: [Plugin] Goldilocks

Postby Chris Fullmer » Tue Dec 15, 2009 2:18 am

Its built in since v7.0. You set your image editor in Window > Preferences > Applications.

Then right click on a face that has an image. Chose Texture > Edit Texture Image" and it will open it in your editor. Resize it, close, and SU updates it.

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] Goldilocks

Postby Fletch » Wed Dec 16, 2009 3:52 am

Hi Chris, of course, it's easy if you only have one texture that you know of, but if you have 12 images or more in a file that need to be resized, and you are not sure which they are or names even or even where they are in the scene, you may not have created the scene (large arch. office for instance)... not so fun. :D
0

Fletch 
Twilight Render
 

Re: [Plugin] Goldilocks

Postby Chris Fullmer » Wed Dec 16, 2009 5:19 am

Ahh, I see. ;)

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] Goldilocks

Postby madhav » Wed Dec 16, 2009 7:54 am

Thanks :thumb:
0

madhav 
 

Re: [Plugin] Goldilocks

Postby Pg09 » Wed Dec 16, 2009 3:37 pm

Thank you AdamB this is very useful!!
0

Pg09 
 

Re: [Plugin] Goldilocks

Postby Pg09 » Wed Dec 16, 2009 4:06 pm

Fletch (or anybody) where do i find the textures of my SU file? Is there temporary folder somewhere? I tried searching but i suck...
0

Pg09 
 

Re: [Plugin] Goldilocks

Postby Ecuadorian » Wed Dec 16, 2009 9:49 pm

Press B to activate SletchUp's Material editor.
Select a material with Alt+Click
Go to the Edit tab in the material editor and click on the striped cube with an orange arrow pointing right. This will open the material's texture in your photo editor (Photoshop, GIMP, Paint.NET, etc).

If you haven't done already, you might want to first select your photo editor for SU textures in Window > Preferences > Applications.
0

Ecuadorian 
 

Re: [Plugin] Goldilocks

Postby Fletch » Wed Dec 16, 2009 10:27 pm

pg09,
If you are using Twilight, and export to XML and choose to export the texture images and IES files, it will export them all into the folder for you... that's how I am able to quickly find the 12 big files out of the 60 image files in the scene without one-by-one checking.

Although, with Goldilocks, it's now a different process! :thumb: but in my case above, I was not using Goldilocks, just wondering how to quickly import the 12 resized images and replace the big ones in the scene.
0

Fletch 
Twilight Render
 

Re: [Plugin] Goldilocks

Postby Pg09 » Thu Dec 17, 2009 4:43 pm

thank you guys!
it was more Fletch's answer i was looking for. Sometimes i have to work with SU files that are just chaotic (not even the purge ruby helps) so this is one more trick to see what's going on...

And yes it would be a dream come through if this plugin not only would show the problematic textures but would also fix them per click )maybe offer 2-3 lower res options...
That sounds complicated to program though but what do i know... :)
0

Pg09 
 

Re: [Plugin] Goldilocks

Postby AdamB » Fri Feb 12, 2010 1:07 am

Pg09 wrote:And yes it would be a dream come through if this plugin not only would show the problematic textures but would also fix them per click )maybe offer 2-3 lower res options...
That sounds complicated to program though but what do i know... :)


Easy enough to do but Goldilocks shows you the density for a specific viewpoint. If you change the view and zoom in closer, the texture that was too detailed before, is now OK. So probably best to just highlight potential problems.

I had a model the other day from somebody which was incredibly slow - turned out 1 texture was 12000 x 10000 pixels. Just the act of Sketchup shrinking it took 1.6Gb on my Mac :-(

Adam
0
Developer of LightUp Click for website
User avatar
AdamB 
LightUp Support
LightUp Support
 

Re: [Plugin] Goldilocks

Postby Ecuadorian » Tue Jan 04, 2011 10:08 pm

I kept using this plugin all the time...

I wonder if you could add a "threshold" checkbox that only shows a report for textures above certain dimensions. For example: "Only show textures above 1024 pixels in the longest dimension", or something like that... perhaps a drop-down for selecting between 1024, 512 and 256. It would be really useful as then I could focus first on the biggest offenders. :mrgreen:
0

Ecuadorian 
 

Re: [Plugin] Goldilocks

Postby addseo2015 » Sun May 17, 2015 5:54 am

how much resolution/detail is needed in textures.
0

addseo2015 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Google Bot, senat and 5 guests

Visit our sponsors: