Hyperhshader issues when trying to create a new Vray shader

Hello,

I just purchased the Vray-Collection and have it running on Maya 2018, but for some reason when I try and create a new Vray Mtl it stalls out Maya and material sample is just a black background.

Script Editor Feedback
// Warning: V-Ray : Deprecated environment variable defined “VRAY_FOR_MAYA2018_MAIN_x64”. Its value will not be used in favor of “VRAY_FOR_MAYA2018_MAIN”. //
// Warning: V-Ray : Deprecated environment variable defined “VRAY_FOR_MAYA2018_PLUGINS_x64”. Its value will not be used in favor of “VRAY_FOR_MAYA2018_PLUGINS”. //
evalDeferred “shaderBallRendererMenuUpdate”;
// Warning: V-Ray VolumeGrid: Loading shaders failed - no <*.txt> files in . //
VRayVolumeGridInit();
updateRendererUI;

Thanks,
Ken

It seems there is an issue with the set environment variables. Try the following. Go to the Environment Variables (Control panel>System>Advanced System settings>Environment variables) and create the following variables (select New at the bottom):


VRAY_FOR_MAYA2018_MAIN = C:\Program Files\Autodesk\Maya2018\vray
VRAY_FOR_MAYA2018_PLUGINS = C:\Program Files\Autodesk\Maya2018\vray\vrayplugins

The “VRAY_FOR_MAYA2018_MAIN” is the variable name and the path is the variable value. If your V-Ray is installed in an arbitrary location choose the analogous path instead.

Renaming the environment variable names from “VRAY_FOR_MAYA2018_MAIN_x64” to “VRAY_FOR_MAYA2018_MAIN” and “VRAY_FOR_MAYA2018_PLUGINS_x64” to “VRAY_FOR_MAYA2018_PLUGINS” should also work.

Hi Aleksandar,

Thanks for helping out! That seemed to fix that issue on both 2018 & 2020, but I’m still having issues on both versions with the V-ray material not loading correctly in the Hyphershader.

Here is the error message: 01/18/2020

// Warning: V-Ray VolumeGrid: Loading shaders failed - no <*.txt> files in . //
VRayVolumeGridInit();
// Initializing V-Ray for Maya

evalDeferred “shaderBallRendererMenuUpdate”;
updateRendererUI;
// Warning: file: C:\Users\Admin\Documents\maya\2020\prefs\filePathE ditorRegistryPrefs.mel line 4: filePathEditor: Attribute ‘aiImage.filename’ is invalid or is not designated ‘usedAsFilename’. //
// Warning: file: C:\Users\Admin\Documents\maya\2020\prefs\filePathE ditorRegistryPrefs.mel line 5: filePathEditor: Attribute ‘aiPhotometricLight.aiFilename’ is invalid or is not designated ‘usedAsFilename’. //
// Warning: file: C:\Users\Admin\Documents\maya\2020\prefs\filePathE ditorRegistryPrefs.mel line 6: filePathEditor: Attribute ‘aiStandIn.dso’ is invalid or is not designated ‘usedAsFilename’. //
// Warning: file: C:\Users\Admin\Documents\maya\2020\prefs\filePathE ditorRegistryPrefs.mel line 7: filePathEditor: Attribute ‘aiVolume.filename’ is invalid or is not designated ‘usedAsFilename’. //
// Warning: file: C:\Users\Admin\Documents\maya\2020\prefs\filePathE ditorRegistryPrefs.mel line 12: filePathEditor: Attribute ‘substanceNode.substanceFile’ is invalid or is not designated ‘usedAsFilename’. //
# pymel.core : Updating pymel with pre-loaded plugins: vrayvolumegrid, invertShape, mayaHIK, vrayformaya, GPUBuiltInDeformer, cacheEvaluator, deformerEvaluator, modelingToolkit, retargeterNodes
updateRenderOverride;
// Error: VRay: Could not load the Bifrost module! You will not be able to render Bifrost as isosurface or metaball. The error message is: 126: LoadLibrary failed (126): The specified module could not be found.

I’m also attaching some screen shots showing the issue on both versions.
Thanks,
Ken


It is still connected to the environment variables. Try restarting your PC, sometimes it is necessary for the variables to work properly.

Hi Aleksander,

I went ahead and removed all V-ray programs and just installed V-ray 2020 for Maya, but unfortunately I’m still running into that same issue.

I wrote down what the errors were in chronological order.

1.Vrayformaya.mll: Check loaded and this warning came up.
// Warning: V-Ray VolumeGrid: Loading shaders failed - no <*.txt> files in . //
VRayVolumeGridInit();
updateRendererUI;
# pymel.core : Updating pymel with pre-loaded plugins: svgFileTranslator, vrayvolumegrid, invertShape, mayaHIK, GamePipeline, curveWarp, tiffFloatReader, MASH, poseInterpolator, ATFPlugin, hairPhysicalShader, cacheEvaluator, ikSpringSolver, ik2Bsolver, xgenToolkit, AbcExport, retargeterNodes, vrayformaya, gameFbxExporter, VectorRender, OpenEXRLoader, lookdevKit, Unfold3D, mayaCharacterization, Type, mtoa, meshReorder, modelingToolkit, rotateHelper, MayaMuscle, matrixNodes, AbcImport, autoLoader, deformerEvaluator, sceneAssembly, gpuCache, OneClick, shaderFXPlugin, objExport, renderSetup, GPUBuiltInDeformer, ArubaTessellator, quatNodes, fbxmaya
updateRenderOverride;
// Error: VRay: Could not load the Bifrost module! You will not be able to render Bifrost as isosurface or metaball. The error message is: 126: LoadLibrary failed (126): The specified module could not be found.

2. Tried to create a Vray Mtl and this is the script info: Shader sample is blank and cannot edit it.
shadingNode -asShader VRayMtl;
// Result: VRayMtl1 //
sets -renderable true -noSurfaceShader true -empty -name VRayMtl1SG;
// Result: VRayMtl1SG //
connectAttr -f VRayMtl1.outColor VRayMtl1SG.surfaceShader;
// Result: Connected VRayMtl1.outColor to VRayMtl1SG.surfaceShader. //
select -r VRayMtl1 ;

Regards,
Ken

Are you installing from a ZIP or from the installer? Try uninstalling and removing all left out V-Ray for Maya related environment variables (a list of them here) and reinstall again.

Hi Ken,

Please uninstall the Chaos Group license server and remove any remaining files from the following folder:

C:\Program Files\Common Files\ChaosGroup

Afterwards, download and install the latest Chaos license server 5.5.2 from the following page:

https://download.chaosgroup.com/downloads/17737/licenseserver-standalone-552-adv

Go to the Chaos License server page (http://localhost:30304), enable your Online/Dongle licensing and tell me if you can see your V-Ray licenses. Send me screenshots from the localhost page if you continue to experience this issue.

Hi Nikolay,

Wow! That solved my issue and thanks a bunch!! My 2018 V-ray and Maya software was supplied by my previous employer and that folder had contained those old 2018 files. I’m back up and running and now can get back to enjoying using V-ray on my PC.

Thanks,
Ken