Announcement

Collapse
No announcement yet.

vray refraction_fogColor in maxscript

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

  • vray refraction_fogColor in maxscript

    I am having trouble making a scripted material plugin work 3dsmax 9 that changes the fog color of a v-ray material.

    I am trying to use this:-

    delegate.refraction_fogColor = color 255 0 0

    This should make the fog color completely red, but it has no effect. I seem to be able to change the reflection, refraction, IOR etc using the method. The material doesn't change at all in the material slot nor in the render itself, but the property value has clearly changed. I am stumped for why it doesn't work. Currently using Vray 1.5 RC3

    Any help would be appreicated.

    José
    José Olivares-Hatch

    Miller Hare

  • #2
    if your using the infamous vray 1.5 rc3 then you should contact the chaos group guys to get full forum access

    ---------------------------------------------------
    MSN addresses are not for newbies or warez users to contact the pros and bug them with
    stupid questions the forum can answer.

    Comment


    • #3
      Have you tried directly changing the material, e.g. m=VRayMtl(); m.refraction_fogColor=(color 255 0 0)

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

      Comment


      • #4
        That doesn't work. I am working with an instance of a the VrayMtl plugin which has its own properties which the user defines. The way to get access to the VrayMtl properties is through using the 'delegate' local variable. I am trying to get this to work as a scripted material plugin, which would replace the UI for the VrayMtl.
        José Olivares-Hatch

        Miller Hare

        Comment


        • #5
          Well, I know the scripted egz materials did adjust the fog color, so there must be a way to do it... I have to check it out.

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

          Comment


          • #6
            Anything you can do to help would be grateful. I sent an e-mail to vray.info regarding the egz material and am eagerly waiting for a reply, i assumed the method they used to change the glass colour was with fog.

            The forum access point that Da_elf raised is one i do not have much control of. I just work for a company that uses V-Ray for rendering. We have licenses and dongles but have yet to get the dongles in place to use the full release version of V-Ray 1.5.
            José Olivares-Hatch

            Miller Hare

            Comment


            • #7
              I scripted a simple SSS material a while back, and it worked a charm.
              I never had the issue you mention.
              Lele
              Trouble Stirrer in RnD @ Chaos
              ----------------------
              emanuele.lecchi@chaos.com

              Disclaimer:
              The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

              Comment

              Working...
              X