Announcement

Collapse
No announcement yet.

RT not working with vray installed on a remote network location via env file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RT not working with vray installed on a remote network location via env file

    I have vray and phoenix running from a network location using the maya.env file. everything works great except RT. RT fires up and i get the command line window that pops up but nothing ever rendres. do i need to add another variable to the maya.env to create the live link between RT and maya when Vray is running from a network location?

    here are the env variables i have in our env file

    MAYA_DISABLE_CIP = 1;
    MAYA_RENDER_DESC_PATH = Q:\Tools\Vray\maya2012\bin\vray_latest\maya_root\b in\rendererDesc
    VRAY_FOR_MAYA2012_MAIN_x64 = Q:\Tools\Vray\maya2012\bin\vray_latest\maya_vray
    VRAY_FOR_MAYA2012_PLUGINS_x64 = Q:\Tools\Shave\maya2012\bin\Shave_latest\maya2012\ vray\vrayplugins;Q:\Tools\Vray\maya2012\bin\vray_l atest\maya_vray\vrayplugins;Q:\Tools\Vray\maya2012 \bin\phx_latest\vray_plugins
    VRAY_AUTH_CLIENT_FILE_PATH = Q:\Tools\Vray\maya2012\lic
    PHX_FOR_MAYA2012_MAIN_x64 = Q:\Tools\Vray\maya2012\bin\phx_latest\maya_root
    MAYA_SCRIPT_PATH = Q:\Tools\Vray\maya2012\bin\vray_latest\maya_vray\s cripts;Q:\Tools\Vray\maya2012\bin\phx_latest\maya_ root\scripts\;Q:\Tools\maya\2012\scripts\mel\; P:\My Documents\maya\2012-x64\scripts\;Q:\Tools\Atomix\installs\atomix-0.5.6-win64\AtomixForMaya\module\scripts;C:\Program Files\Cinema Sandbox\Tools\melScript
    MAYA_PLUG_IN_PATH = Q:\Tools\Vray\maya2012\bin\phx_latest\maya_root\pl ug-ins;Q:\Tools\maya\2012\plugins\64bit\;Q:\Tools\Vra y\maya2012\bin\vray_latest\maya_vray\plug-ins;Q:\Tools\maya\2012\plugins\32bit\;Q:\Tools\Ato mix\installs\atomix-0.5.6-win64\AtomixForMaya\maya2012\plug-ins;C:\Program Files\Cinema Sandbox\Tools
    XBMLANGPATH = Q:\Tools\Shave\maya2012\bin\Shave_latest\maya2012\ icons;Q:\Tools\Vray\maya2012\bin\vray_latest\maya_ vray\icons;Q:\Tools\Vray\maya2012\bin\phx_latest\m aya_root\icons;Q:\Tools\maya\resources\icons;Q:\To ols\Atomix\installs\atomix-0.5.6-win64\AtomixForMaya\module\icons
    PYTHONPATH = Q:\Tools\Vray\maya2012\bin\phx_latest\samples\scri pts;Q:\Tools\Shotgun\Scripts\python\;Q:\Tools\maya \2012\scripts\python
    MI_CUSTOM_SHADER_PATH = Q:\Tools\mentalray\2012\dll\
    MI_LIBRARY_PATH = Q:\Tools\mentalray\2012\dll\
    EXOTOOLSLICENSE = Q:\Tools\maya\2012\plugins\64bit\Exolicense
    PATH = Q:\Tools\Shave\maya2012\bin\Shave_latest\maya2012\ bin;Q:\Tools\Vray\maya2012\bin\vray_latest\maya_ro ot\bin;Q:\Tools\maya\2012\bin;Q:\Tools\Atomix\inst alls\atomix-0.5.6-win64\lib\win64;Q:\Tools\Atomix\installs\atomix-0.5.6-win64\lib\win64\third;
    ATOMIX_INSTALL_PATH = Q:\Tools\Atomix\installs\atomix-0.5.6-win64
    ATOMIX_PLUGIN_PATH = Q:\Tools\Atomix\installs\atomix-0.5.6-win64\lib\win64\plugins
    MAYA_MODULE_PATH = Q:\Tools\maya\2012\modules\;C:\Program Files\Autodesk\Maya2012\modules
    CG supervisor
    Alkemy-X

  • #2
    Well my understanding is that spawner when started does not actually take into account maya.env since its not a part of it. The way we do it is we actually declare these variables in the cmd file and add a line which runs the spawner at the end. That seems to work.
    Dmitry Vinnik
    Silhouette Images Inc.
    ShowReel:
    https://www.youtube.com/watch?v=qxSJlvSwAhA
    https://www.linkedin.com/in/dmitry-v...-identity-name

    Comment


    • #3
      so i need to write my own RT script inside of maya ? I am just trying to use the ipr button in maya.
      CG supervisor
      Alkemy-X

      Comment


      • #4
        Originally posted by Ghost3d View Post
        so i need to write my own RT script inside of maya ? I am just trying to use the ipr button in maya.
        Well you are inside of maya, but you are trying to use the spawner on your DR machine which is running outside of maya so it does not get the environment variable parsed by maya during startup from maya.env, so you must start the spawner using a cmd file where you declare your environment before hand.
        Dmitry Vinnik
        Silhouette Images Inc.
        ShowReel:
        https://www.youtube.com/watch?v=qxSJlvSwAhA
        https://www.linkedin.com/in/dmitry-v...-identity-name

        Comment


        • #5
          The only way I was able to get everything running was to use os.environ in my userSetup.py. That was cleaner than starting via the python shell. os.environ changes the env of the maya session, seems to work fine!

          http://fredrikaverpil.tumblr.com/post/17727016787

          This is all I needed, and everything else is in the maya.env

          Code:
          # Settings
                  windows = 'K:' # The mounted server share's drive letter
                  buildsLocation = '/Public/Pipeline/vray_builds/deploy/' # The server path without drive letter or mounted volume/share.
                  buildFolderName = 'Maya2013' # The name of the build folder, containing the maya_root, maya_vray, vray folders and the source.mel file.
                  buildMayaVersion = '2013' # The version of Maya which the V-Ray plug-in has been compiled for.
                  licenseLocation = '/Public/Pipeline/vray_builds/' # The location of the XML license file
          
          print('Setting Windows environment variables for vray ...')
              os.environ['MAYA_RENDER_DESC_PATH'] = volume + buildsLocation + buildFolderName + '/maya_root/bin/rendererDesc'
              os.environ['VRAY_FOR_MAYA' + buildMayaVersion + '_MAIN_x64'] = volume + buildsLocation + buildFolderName + '/maya_vray'
              os.environ['VRAY_FOR_MAYA' + buildMayaVersion + '_PLUGINS_x64'] = volume + buildsLocation + buildFolderName + '/maya_vray/vrayplugins'
              os.environ['VRAY_AUTH_CLIENT_FILE_PATH'] = volume + licenseLocation

          Comment


          • #6
            hey guys thank you for the help

            I tried launching the spawner with the correct env varibles but I'm still getting the same behavior with RT. just sits and hangs. I also tried using Zach's py file and just changed out the paths and same result. am I missing something?
            CG supervisor
            Alkemy-X

            Comment


            • #7
              It might be best to simply start the V-Ray RT server manually from the correct path before you launch the RT engine.

              Best regards,
              Vlado
              I only act like I know everything, Rogers.

              Comment


              • #8
                Try this, make this into a cmd file:

                ECHO OFF

                SET MAYA_DISABLE_CIP = 1;
                SET MAYA_RENDER_DESC_PATH = Q:\Tools\Vray\maya2012\bin\vray_latest\maya_root\b in\rendererDesc
                SET VRAY_FOR_MAYA2012_MAIN_x64 = Q:\Tools\Vray\maya2012\bin\vray_latest\maya_vray
                SET VRAY_FOR_MAYA2012_PLUGINS_x64 = Q:\Tools\Shave\maya2012\bin\Shave_latest\maya2012\ vray\vrayplugins;Q:\Tools\Vray\maya2012\bin\vray_l atest\maya_vray\vrayplugins;Q:\Tools\Vray\maya2012 \bin\phx_latest\vray_plugins
                SET VRAY_AUTH_CLIENT_FILE_PATH = Q:\Tools\Vray\maya2012\lic
                SET PHX_FOR_MAYA2012_MAIN_x64 = Q:\Tools\Vray\maya2012\bin\phx_latest\maya_root

                SET MAYA_SCRIPT_PATH = Q:\Tools\Vray\maya2012\bin\vray_latest\maya_vray\s cripts;Q:\Tools\Vray\maya2012\bin\phx_latest\maya_ root\scripts\;Q:\Tools\maya\2012\scripts\mel\; P:\My Documents\maya\2012-x64\scripts\;Q:\Tools\Atomix\installs\atomix-0.5.6-win64\AtomixForMaya\module\scripts;C:\Program Files\Cinema Sandbox\Tools\melScript

                SET MAYA_PLUG_IN_PATH = Q:\Tools\Vray\maya2012\bin\phx_latest\maya_root\pl ug-ins;Q:\Tools\maya\2012\plugins\64bit\;Q:\Tools\Vra y\maya2012\bin\vray_latest\maya_vray\plug-ins;Q:\Tools\maya\2012\plugins\32bit\;Q:\Tools\Ato mix\installs\atomix-0.5.6-win64\AtomixForMaya\maya2012\plug-ins;C:\Program Files\Cinema Sandbox\Tools
                XBMLANGPATH = Q:\Tools\Shave\maya2012\bin\Shave_latest\maya2012\ icons;Q:\Tools\Vray\maya2012\bin\vray_latest\maya_ vray\icons;Q:\Tools\Vray\maya2012\bin\phx_latest\m aya_root\icons;Q:\Tools\maya\resources\icons;Q:\To ols\Atomix\installs\atomix-0.5.6-win64\AtomixForMaya\module\icons

                SET PYTHONPATH = Q:\Tools\Vray\maya2012\bin\phx_latest\samples\scri pts;Q:\Tools\Shotgun\Scripts\python\;Q:\Tools\maya \2012\scripts\python
                SET MI_CUSTOM_SHADER_PATH = Q:\Tools\mentalray\2012\dll\
                SET MI_LIBRARY_PATH = Q:\Tools\mentalray\2012\dll\

                SET EXOTOOLSLICENSE = Q:\Tools\maya\2012\plugins\64bit\Exolicense

                SET PATH =Q:\Tools\Shave\maya2012\bin\Shave_latest\maya2012 \ bin;Q:\Tools\Vray\maya2012\bin\vray_latest\maya_ro ot\bin;Q:\Tools\maya\2012\bin;Q:\Tools\Atomix\inst alls\atomix-0.5.6-win64\lib\win64;Q:\Tools\Atomix\installs\atomix-0.5.6-win64\lib\win64\third;

                SET ATOMIX_INSTALL_PATH = Q:\Tools\Atomix\installs\atomix-0.5.6-win64
                SET ATOMIX_PLUGIN_PATH = Q:\Tools\Atomix\installs\atomix-0.5.6-win64\lib\win64\plugins
                SET MAYA_MODULE_PATH = Q:\Tools\maya\2012\modules\;C:\Program Files\Autodesk\Maya2012\modules

                "Q:\Tools\Vray\maya2012\bin\vray_latest\maya_vrayb in/vraymayaspawner2012.exe" %*

                You might wanna check that last line make sure it points to where it needs to find the spawner.
                Dmitry Vinnik
                Silhouette Images Inc.
                ShowReel:
                https://www.youtube.com/watch?v=qxSJlvSwAhA
                https://www.linkedin.com/in/dmitry-v...-identity-name

                Comment


                • #9
                  Thanks Dmitry
                  but same thing. not working I'm wondering if its an issue with the network setup here. firewall or something maybe?
                  CG supervisor
                  Alkemy-X

                  Comment


                  • #10
                    one thing I've noticed in your env file is that the PATH should have vray_root/bin; (path to vray maya dlls) in front of the line other wise it wont work (does not work for me)
                    Dmitry Vinnik
                    Silhouette Images Inc.
                    ShowReel:
                    https://www.youtube.com/watch?v=qxSJlvSwAhA
                    https://www.linkedin.com/in/dmitry-v...-identity-name

                    Comment


                    • #11
                      its an issue with our setup. i recreated the same setup at home and everything works fine with the same launcher i was using in the office. windows is not allowing rt to have access to the local machine. will have to trouble shoot with the it guys.
                      CG supervisor
                      Alkemy-X

                      Comment


                      • #12
                        Ah ok - good to know.

                        Best regards,
                        Vlado
                        I only act like I know everything, Rogers.

                        Comment


                        • #13
                          hey Vlado what files would I need to allow acces to through the windows firewall? i allowed access to vray.exe and vrayspawner.exe but its still not working for me. is there another file that i need to allow access to ?
                          CG supervisor
                          Alkemy-X

                          Comment


                          • #14
                            That should be all. Do you need to specify any port numbers?

                            Best regards,
                            Vlado
                            I only act like I know everything, Rogers.

                            Comment


                            • #15
                              is there a way to make RT print a log file so that I can see where it is getting hung up?
                              CG supervisor
                              Alkemy-X

                              Comment

                              Working...
                              X