Sergey Pogosyan

cg artist + cg developer

Png plugins fixed for 3ds max 2009/2010 64-bit

15 Sep 2010

tags: plugins

I got error message box "PNG Library Internal Error" during network rendering recently. Search through the cgtalk.com led me to this thread - http://forums.cgsociety.org/showthread.php?t=618186

And thank to this post - http://forums.cgsociety.org/showpost.php?p=6148898&postcount=10 I've managed to fix and recompile plugins for 64-bit 3ds max 2009 and 2010 versions.

I've found the string:

MessageBox(NULL, error_str, plugin_str, MB_OK);

as above cgtalk post pointed and replaced it with next chunk of code. Parts of which I've found in tiff plugin sources.

if (!TheManager->SilentMode()) { //check if render is in network mode
      MessageBox(GetFocus(), data, plugin_str, MB_OK | MB_ICONINFORMATION);
   }
   else {
      TheManager->Max()->Log()->LogEntry(SYSLOG_ERROR,NO_DIALOG,NULL,
                     _T("%s - %s"), data, plugin_str);
   }

All changes was made by Visual Studio Express 2005 and 2008 respectively and both plugins located in development section.

I don't sure if I have the rights to distribute that recompiled plugins, but, anyway, I don't sell them, just trying to help struggling people a little.

blog comments powered by Disqus