Announcement

Collapse
No announcement yet.

Maxscript question to Vlado

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

  • Maxscript question to Vlado

    Hi,

    I just want to know if I can access different G-Buffer channel of Vray via Maxscript ?

    I try the .gbuffer_channelMask but it doesen't seem to work properly.

    example, if i assign the vr variable to the currect renderer and I enter this command :

    vr.gbuffer_channelMask = 3

    Nothing append.
    but if I enter this command:

    vr.gbuffer_channelMask = 4

    Now the z-buffer channel is highlight.

    is there a way to make this working ??

    Thanks

  • #2
    Each bit in the channel mask corresponds to one channel; I think 1 and 2 are RGB and alpha, which are always generated anyways - this is why a value of 3 does nothing, but 4 switches on z-buffer. Higer values (8, 16, 32 etc) correspond to the rest of the channels.

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

    Comment


    • #3
      Thanks

      Comment


      • #4
        I tinkered with it some time ago, I wanted to integrate Vray into the Max 7 Render to Texture dialog properly and provide all the passes native to Vray. I never finished it since the project I wanted to use it for was cancelled, but here is what I found out (not documented in the help files).

        1 N/A (RGB?)
        2 N/A(Alpha?)
        4 Z-Value
        8 Node ID
        16 Material ID
        32 Material Color
        64 Material Transparency
        128 Normal
        256 Real RGB
        512 Object Velocity
        1024 RenderID
        2048 Coverage
        4096 Sub-Pixel Weight
        8192 Atmosphere
        16384 Background
        32768 Diffuse
        65536 Reflect
        131072 Refract
        262144 Self-Illumination
        524288 Shadow
        1048576 Specular
        2097152 Lighting
        4194304 Global Illumination
        8388608 Caustics
        16777216 Raw Global Illum
        33554432 Raw Lighting

        Hope that helps,

        Stefan
        Stefan Kubicek
        www.keyvis.at

        Comment


        • #5
          Thanks Stefan,

          This will be very usefull.

          Comment


          • #6
            salut sylvain....what are you planning to do ?

            cheers

            marc

            Comment


            • #7
              did you sit down and go through 33554432 amount of possibilities? oh. wait. i see it now. its a simple mathmatical progression

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

              Comment


              • #8
                Originally posted by metroberlin
                salut sylvain....what are you planning to do ?

                cheers

                marc
                Hi metroberlin,

                I've only created a more simple dialog render launcher with all the presets for the interior and the exterior for the other people here because they don't want to lean everythings in vray and when they choose the render a rpf file, a dialog open with all the options for the rpf format. If they choose the Z depth option, automaticaly, the z-depth is set active in the rpf file and in the g-buffer section of vray.

                It's only this

                Comment

                Working...
                X