Announcement

Collapse
No announcement yet.

RT not recognising VRay material adjustments.

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

  • RT not recognising VRay material adjustments.

    I assume this shouldn't be the case, but if I change the colour of a material in the material editor, it isn't updating in my RT active shade viewport. Is there something wrong with my setup?
    Vray 3.3 Max 2016. NVidia GTX 580. RT running CPU mode.
    Patrick Macdonald
    Lighting TD : http://reformstudios.com Developer of "Mission Control", the spreadsheet editor for 3ds Max http://reformstudios.com/mission-control-for-3ds-max/




  • #2
    Which material editor (classic or Slate)? Which V-Ray build - 3.30.03 or 30.30.04?

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

    Comment


    • #3
      Hi Vlado,
      Thanks for the reply.
      VRay 3.30.04, Slate and classic.
      This applies to diffuse and reflection etc,
      I have emailed a screengrab to you.
      Thanks again.
      Patrick.
      Patrick Macdonald
      Lighting TD : http://reformstudios.com Developer of "Mission Control", the spreadsheet editor for 3ds Max http://reformstudios.com/mission-control-for-3ds-max/



      Comment


      • #4
        Hi Patrick,

        Is it reproducible if you don't use / uninstall "Mission control" ?
        If it was that easy, it would have already been done

        Peter Matanov
        Chaos

        Comment


        • #5
          Damn, it is Mission Control.
          It is possible it is blocking vray from picking up the material change callbacks... I'll need to dig deeper to check.
          Vlado, what method does VRay use to identify material property changes?
          Patrick Macdonald
          Lighting TD : http://reformstudios.com Developer of "Mission Control", the spreadsheet editor for 3ds Max http://reformstudios.com/mission-control-for-3ds-max/



          Comment


          • #6
            Hello,

            We get notification through Max notification system - NotifyRefChanged and INodeEventCallback.

            Best regards,
            Yavor
            Yavor Rubenov
            V-Ray for 3ds Max developer

            Comment


            • #7
              Thanks Yavor, sorry I didn't realise you were from Chaos.
              I don't suppose you might know why my code might be causing your callback to fail? I can't think where I might be overriding a VRay specific callback.
              I'm not using "NotifyRefChanged" or "INodeEventCallback", but perhaps the maxscript names for these are different to the C calls.
              My callbacks regarding materials are as follows. Is it possible we have the same callback IDs which causes my callback to override VRays?

              -- MATERIALS
              callbacks.removeScripts #mtlRefAdded id:#rssn_mtlRefAdded
              callbacks.addScript #mtlRefAdded "rssn.on_mtlRefAdded" id:#rssn_mtlRefAdded
              callbacks.removeScripts #mtlRefDeleted id:#rssn_mtlRefDeleted
              callbacks.addScript #mtlRefDeleted "rssn.on_mtlRefDeleted" id:#rssn_mtlRefDeleted
              Patrick Macdonald
              Lighting TD : http://reformstudios.com Developer of "Mission Control", the spreadsheet editor for 3ds Max http://reformstudios.com/mission-control-for-3ds-max/



              Comment


              • #8
                The C++ Max API doesn't use named callback IDs like in MaxScript so I don't think that is the problem.
                I tried to add some callbacks like you do and just print some text inside the callback functions - RT still updates as expected.

                Maybe it's something related to the things you do inside the callback code ? I haven't seen a case when Maxscript callbacks mess with the C++ API code so I don't have any idea what might be happening..

                I guess you could try to comment out some of the callbacks to see which one is causing trouble ?
                Yavor Rubenov
                V-Ray for 3ds Max developer

                Comment


                • #9
                  Thanks,
                  Yes, I've isolated to the "callbacks.addScript #mtlRefAdded "rssn.on_mtlRefAdded" id:#rssn_mtlRefAdded" callback.
                  I'll dig in to see what I'm doing that might be the problem.
                  Thanks for your help!
                  Cheers
                  p.
                  Patrick Macdonald
                  Lighting TD : http://reformstudios.com Developer of "Mission Control", the spreadsheet editor for 3ds Max http://reformstudios.com/mission-control-for-3ds-max/



                  Comment


                  • #10
                    Actually, it's the when I remove the callback prior to adding it that breaks RT.

                    callbacks.removeScripts #mtlRefAdded id:#rssn_mtlRefAdded

                    Removing just the specific callback by ID with : callbacks.removeScripts id:#rssn_mtlRefAdded doesn't break RT anymore!
                    So, problem fixed. I should have been removing my callbacks by ID rather than by type.

                    Thanks again for your patience and support.
                    Patrick.
                    Patrick Macdonald
                    Lighting TD : http://reformstudios.com Developer of "Mission Control", the spreadsheet editor for 3ds Max http://reformstudios.com/mission-control-for-3ds-max/



                    Comment


                    • #11
                      Glad that you found it out
                      Yavor Rubenov
                      V-Ray for 3ds Max developer

                      Comment


                      • #12
                        Of course I should have assumed my code was at fault to begin with!
                        Patrick Macdonald
                        Lighting TD : http://reformstudios.com Developer of "Mission Control", the spreadsheet editor for 3ds Max http://reformstudios.com/mission-control-for-3ds-max/



                        Comment

                        Working...
                        X