[Plugin] Export 2d with Alpha
-
37.8MB for a 4400x2250px PNG image??? That ain't right.
Inspecting your file in a hex editor and it's full of NULL bytes. :s
The plugin leaves the writing for the image to SketchUp. And I've never seen this before.My first thoughts are that this is a issue local to your machine. Are you for instance saving to a network drive etc?
-
I don't know what it is to be honest.
Does it happen to all models?
Do you have another computer nearby where you can try? -
@thomthom said:
My first thoughts are that this is a issue local to your machine. Are you for instance saving to a network drive etc?
Well... In case it's something with my 'puter I wonder what's causing this, cause I've never experienced this before...
I'm just saving the image on my desktop, not on any network drive or another strange location...
Like I said... Very strange...Edit: I've now tried to save the png-file to some other locations (eg. a folder on the C-drive, on the desktop, on a network drive), but the result remain identical...
-
@thomthom said:
Does it happen to all models?
Do you have another computer nearby where you can try?Just did and it's the same...
If I save in resolution 800x600px it works fine and I can open it in Photoshop...
The file size is 1.83Mb in this resolution, but I also set the compression to 0... -
Compression should only apply to JPEG.
If you export a similar 2D image from File > Export 2D?
-
@frederik said:
...but I also set the compression to 0...
Looking for a smiley banging the head into the wall...
Seem that this was causing the issue...
If I leave the compression at 0.9, I'm able to open the file in res. 4400x2250px in Photoshop and the file size is 2.76Mb, which seem reasonable...Perhaps you should lock the compresion to a specific value or make sure that it can't be set to 0 (read: zero)...
-
-
I had no idea it would cause oddities for PNG files... :s
The documentation (roll eyes) says:@unknownuser said:
(optional) Float compression factor for JPEG images, between 0.0 and 1.0
http://www.sketchup.com/intl/en/developer/docs/ourdoc/view#write_image
So I figured there was no need to disable/enable depending on filetype - which I have no means of obtaining either as the filedialog comes after the options (SketchUp API limitation). And 0.0 is a valid value for JPEG - at least according to the API... though I've never tried to set it that low.
This sounds like a SketchUp bug - or very poor API documentation.
Unfortunately there isn't a whole lot I can do to address this. -
hm... looking at the docs again, 1.0 is best quality - 0.0 is worst. Compression is probably incorrect label (I just inherited the API argument name) - Quality is probably a better label.
-
@thomthom said:
This sounds like a SketchUp bug - or very poor API documentation.
Unfortunately there isn't a whole lot I can do to address this.No worries, Thomas...
You have my deepest respect regardless of this...
At least I found the reason and know what to do to avoid this in the future... -
@thomthom said:
hm... looking at the docs again, 1.0 is best quality - 0.0 is worst. Compression is probably incorrect label (I just inherited the API argument name) - Quality is probably a better label.
Getting slightly confused...
Are you going to update the plugin then...?Question:
Why are the user not able to select the file-type from the drop down list...?
If the user had to select the file-type (i.e. JPG or PNG) the compression could be inactive when png is selected and transparency can be inactive (obviously) when the user have selected jpg... -
That could possibly be an option. Might do that ... some time. But currently my priorities are Bezier Surface and Vertex Tools.
-
@thomthom said:
That could possibly be an option. Might do that ... some time. But currently my priorities are Bezier Surface and Vertex Tools.
Take your time, Thomas...
-
I have installed the plug-in and also the required TT_lib2. The export option exists in views pulldown. I select and get the window where I select resolution, transparency- then I get a file browser window and the file option is blank and it does not seem to save a file- I must be doing something wrong. Does this work with SU8 free version?
Thanks
Quentin -
Works with free version yes, but due to a bug in the API you must manally type the file extension of the file.
-
Export 2D works great!!! Only issue is having to do it multiple times to make sure it fits in window
Any thought to either a preview panel to let use check it fits....or....zoom to fit and, once exported, return to original zoom level (maybe key off selection of shapes to be exported)
just a thought
-
I recommend that people use V-Ray Tools instead. You don't need V-Ray to use it, but it has a better interface for setting the safe frame and exporting.
-
Why is this plugin not in the SketchUcation plugin store...?
Is there another plugin, which is better for making a png with alpha/transparency background...? -
supposedly the VRAY plugin is suppose to be better. However, my experience is that VRAY doesnt do a single thing....just sits there. So I use this plugin extensively (even modified it to get defaults the way I want them).
Like I said earlier....this pluging works well....would recommend it....VRAY not on my recommended list (there are other plugins from various authors that I would not recommend at all).
-
I can highly recommend the [SU]Ch v1.0.1 plugin by renderiza, which also enables the user to make a png-file with alpha/transparency...
Advertisement