Author Topic: Unable to load Material Library...  (Read 15833 times)

2017-09-24, 12:28:35

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
I've completely uninstalled, then reinstalled the latest RC-1 build, and I find I'm missing some things:
* I can't find a 'Corona' menu that I've read elsewhere in the forum is supposed to exist on the main menu bar.
* When I attempt to launch the Corona Material Library, I get the following error: "Corona Matlib has failed to load. Material file is missing." I can load the matlib file manually and I see all of the materials, but anything with a bitmap map is failing to load.

I'm running Max 2017.

2017-09-24, 13:20:48
Reply #1

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
It might be good to know that I've sent my default program files install directory in the Windows registry to be the D drive, not the C drive. So Corona automatically installs here on my computer:
D:\Program Files\Corona

2017-09-25, 14:23:34
Reply #2

Ryuu

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 654
  • Michal
    • View Profile
Do you have the D:\Program Files\Corona\materials\library.mat file on the disk? Or perhaps was this file created in the same path on the C drive?

2017-09-26, 12:29:49
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
I would suggest trying the manual installation from the newest RC: https://forum.corona-renderer.com/index.php?topic=15845.msg110252#msg110252
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-09-28, 08:07:11
Reply #4

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Manual installation didn't fix this, still no Corona menu in Max and still unable to find the Corona matlib when I attempt to launch the library. It did look like it installed into the correct directory though:
D:\Program Files\Corona\materials\library.mat

Not sure what else to check...

2017-09-28, 10:47:47
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Please try the following:
-uninstall Corona from the programs and features list
-go to disk cleanup in Windows, and clear temporary internet files
-open internet explorer and clean browsing cache
-Go to your X:\Users\yournamehere\AppData\Local\Autodesk\3dsMax\2015 - 64bit\ENU\en-US\plugcfg\
and remove the CoronaRendererMenus.ini file. You may also remove anything else with "Corona" in it if you wish.
-In 3ds Max run customize > customize user interface > menus tab > menus at bottom-left > find Corona and delete it (if it's there)

-Install Corona again

If that doesn't help, then I am afraid this will need an intervention from the dev team.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-09-29, 07:44:34
Reply #6

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Thanks for the list, unfortunately I am getting the same result, no Corona menu and the Corona Material Library fails to find the appropriate matlib.

2017-10-02, 17:30:12
Reply #7

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
Hi, I will look into this issue. Please, could you answer the following questions?
  • How do you start Corona MatLib if there is no Corona menu for it?
  • Start Corona Image Editor and do not load any image into it. Just expand the LUT panel on the right. What is the path written on the path-selecting button (above the combo box for selecting LUTs)?
« Last Edit: 2017-10-02, 19:23:08 by mike288 »
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2017-10-02, 18:40:56
Reply #8

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
1. I manually make my own menu and find the necessary items form the "Corona Renderer" category, then launch it from there.

2. It says "C:\", which leads me to believe there may possibly be some hard coding in the path? I guess the lack of access to LUTs have not been an issue for me, since I never apply LUTs to my renders, preferring to do all comping in Nuke.

2017-10-02, 19:48:44
Reply #9

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
1. I manually make my own menu and find the necessary items form the "Corona Renderer" category, then launch it from there.

2. It says "C:\", which leads me to believe there may possibly be some hard coding in the path? I guess the lack of access to LUTs have not been an issue for me, since I never apply LUTs to my renders, preferring to do all comping in Nuke.
OK, thank you. So it has something to do with your change of Program Files path.

Please, can you open command line (press Win+R and type cmd), run echo %ProgramW6432% %ProgramFiles% command, and post here output of it?

Do you remember which registry keys you have changed to move Program Files to D drive?
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2017-10-03, 12:45:37
Reply #10

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Running the command gives me:
D:\Program Files D:\Program Files

I modified all keys in the following location that was originally pointing to the C drive:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

CommonFilesDir
CommonFilesDir (x86)
CommonW6432Dir
ProgramFilesDir
ProgramFilesDir (x86)
ProgramW6432Dir


2017-10-03, 14:56:45
Reply #11

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
OK, what about HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion, do you see any "C:\Program Files" string values there? Still not sure, if it is the cause of your issues.
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2017-10-04, 10:47:24
Reply #12

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Actually, I changed those too. There is nothing there pointing to the C drive, only the D drive.

2017-10-04, 12:45:07
Reply #13

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
There must be something. You can try to search for "Program Files" token in registry. Maybe there is something you have left out. Remember there are paths containing "%SystemDrive%" variable so searching for "C:\Program Files" may not be enough.

The thing is that Corona installer is 32bit but Max plugin is 64bit. When asking the system for a path to Program Files, we are getting different paths in your case. That is why your Corona installation cannot find Material Library resources and LUT files. Unfortunately I am unable to find out which registry key the system uses for that (when running a 64bit application). It is probably wrong in your case.

Generally I would rather copy whole Program Files directory to D drive and then use mklink /J "C:\Program Files" "D:\Program Files" to create a directory junction. It seems more robust and problem free to me. But I have never tried that. Nevertheless, I would not suggest to do such thing at all. One can almost always install stuff to a different drive.
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2017-10-04, 12:59:26
Reply #14

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
I attempted a search for "Program Files" in the registry, but it was far too numerous to continue.

I've had this setup (editing the registry for default program files location) working for many years now on a few computers, and this is the first time I've had an issue with a program not finding something on the correct drive. The only thing I keep on my C drive is the operating system. All third party program files and user documents are moved to other (physical) drives to prevent data loss should the operating system falter in any way.

Are you sure there isn't anything in Corona that is specifically looking for a specific drive?