Flamingo nXt

easy rendering for Rhino in Windows

After updating to the 10 Mar version, I am getting errors in attempting to "Save with alpha channel" as a .png file.  Is this a bug, or a problem with my config?

Views: 289

Reply to This

Replies to This Discussion

What does the error read specifcially?

Hello Scott:

The following traces are from the Rhino message bar after attempting to "Save with alpha channel" from the Flamingo nXt .NET window.  (Rendered image information is Engine:Default, Zoom:1.00, Resolution:758x398):

General exception occurred

Exception: A generic error occurred in GDI+.

Stack trace:

at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)

at System.Drawing.Image.Save(String filename, ImageFormat format)

at FlamingoNXtNet.Util.SaveBitmap(Bitmap bitmap, String filename) in D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtUtilites.cs:line 1460

at FlamingoNXtNet.FlamingoNXtRenderDisplay.SaveRenderImageAs(String filename, Boolean bSaveAlpha) in D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtRenderDisplay.cs:line 433

Error saving bitmap G:\NPT\Tunelink\TuneLink_Auto_DemoStand\Images\test.png

Hello,

 

This is a unfortunately this is a fairly generic error.  I have done some research on the problem and it sounds like it could be a problem overwriting an existing file if a bitmap object maintains a lock on the file.  Do you see this error every time you try to save with alpha?  Does the file happen if you save using a different file name?

I'm getting the same issue.

 

This is the error that I'm getting.

Command: _-Render
General exception occurred
Exception: A generic error occurred in GDI+.
Stack trace:
at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder,
EncoderParameters encoderParams)
at System.Drawing.Image.Save(String filename, ImageFormat format)
at FlamingoNXtNet.Util.SaveBitmap(Bitmap bitmap, String filename) in
D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtUtilites.cs:line 1460
at FlamingoNXtNet.FlamingoNXtRenderDisplay.SaveRenderImageAs(String
filename, Boolean bSaveAlpha) in
D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtRenderDisplay.cs:line
433
Error saving bitmap C:\Documents and Settings\OwenMac\Desktop\test2.png

 

Hello John,

The error does occur every time I try to save a .png with alpha and using different file names does not help.  During the error process, a file is generated with the correct filename but with 0 bytes reported as the file size.  The error does not occur when saving as .bmp or .tiff (files are saved successfully).  I have been able to save .png's with alpha in the past, and I suspect that the error started after updating Flamingo to the 10 Mar Beta release....

 

Thanks. 

Hello David,

 

Thanks for the information that gives me a bit more to go on.  Flamingo was changed to use built in Windows .NET (GDI+) bitmap saving around the time you mentioned, I will do some more digging around and see what I can find out.

Hello David,

 

One more quick question, can you save a PNG file without alpha?

I get the same error when I try to save a PNG without alpha.

Owen -

 

We are thinking that this might be .NET Problem.  Can you download and install this to see it it fixes the problem.

 

Microsoft . Net update

 

 

I get an incompatibility error when I try to install that. I'm running XPsp3 I think I have the most recent .NET plug in. I'm not sure how to check. Nothing come up under Microsoft update.
Can you extract the attached application into your Flamingo folder and run it please.  When you do a dialog will appear with a list of codecs installed on your system, please click the copy to clipboard button and paste the response here.
Attachments:

Hello again, I made a few changes to my test application, it now includes an option to create bitmaps of registered types to your desktop, could you download the new app and let me know if it is able to make PNG files.  A message box will appear if an exception is encountered while writing any of the bitmaps.

 

Attachments:

RSS

Members

© 2014   Created by Scott Davidson.

Badges  |  Report an Issue  |  Terms of Service