Announcement

Collapse
No announcement yet.

GI pass ?

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

  • GI pass ?

    How do you break down the GI pass to exchange the diffuse maps as needed ?

    for instance:
    I want to use the VraySamplerInfo UVW pass to exchange texture maps.

    I was not able to find that info.
    Thx a lot !
    www.bernhardrieder.com
    rieder.bernhard@gmail.com

  • #2
    Diffuse Map * Full lighting = "Beauty" (assuming no reflections, refractions, speculars or environment).

    So the inverse mathematical equation to get Diffuse map from beauty is:

    Diffuse Map * Full Lighting / Full Lighting = Beauty / Full lighting. Cross out our FL/FL since that equals 1.

    Diffuse Map = Beauty / Full Lighting.

    If you rendered GI and Direct Lighting separately then you'll have to add then together to create your full lighting pass. If you didn't render out a raw lighting pass without the diffuse map already multiplied into it and you didn't render an unlit diffuse color pass then you mathematically can't get where you want to go.
    Gavin Greenwalt
    im.thatoneguy[at]gmail.com || Gavin[at]SFStudios.com
    Straightface Studios

    Comment


    • #3
      Texture can be easily switched via STMap in Nuke just plug the SamplerInfoUVW pass to stmap-slot and the new texture into src-slot.
      Here is a quick example:

      Here is a raw render with default material with checker-map in the diffuse slot:Click image for larger version

Name:	ZxFjdLr.png
Views:	1
Size:	359.6 KB
ID:	858362
      Here is how the same checker-texture looks like when applied through STMap src-slot: Click image for larger version

Name:	eMexDuo.png
Views:	1
Size:	254.1 KB
ID:	858363
      A few more examples with different textures: Click image for larger version

Name:	qowy9w5.png
Views:	1
Size:	216.7 KB
ID:	858364Click image for larger version

Name:	wihpc6O.png
Views:	1
Size:	305.4 KB
ID:	858365

      Scene, Nuke script, output elements and texture could be downloaded from here: http://ftp.chaosgroup.com/support/sc...re_exchage.zip

      Regarding the Render Elements formulas:
      GI=RawGI*Diffuse
      You can easily switch textures and update GI render element by multiplying the new diffuse texture by RawGI element.
      Svetlozar Draganov | Senior Manager 3D Support | contact us
      Chaos & Enscape & Cylindo are now one!

      Comment


      • #4
        Wow, that's awesome!
        Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
        Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

        Comment


        • #5
          Great.. thank you so much.. that's cool.. hmm.. using Fusion.. you might want to kill me now.. but what nodes do you use within Fusion then ? I don't have an STMap node ... at least, not that I am aware of...
          www.bernhardrieder.com
          rieder.bernhard@gmail.com

          Comment


          • #6
            Stop using fusion :P

            http://www.bryanray.name/wordpress/?p=546

            Comment

            Working...
            X