Results 1 to 7 of 7

Thread: D, R and T balance

  1. #1
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306

    D, R and T balance

    Starting with an apology, I know it's a simple question but my searches bring me back 1000s of "chaff" results and I've lost my bookmarks....

    What is a good rule of thumb between relationship wise between the Diffuse, Reflection and Transparency channels?

    I'm creating a simple transparency effect with a gradient into the Transparency channel, an invert into the Reflection. I want to bring the Diffuse into the mix but not sure how to keep things "balanced".

    This is really an exercise in trying to help me get up to speed using gradients - I find them really confusing!! When using as a simple black and white colour gradient to drive Incidence the black and white seems to swop behaviours depending on what channels I'm plugging them into, ie some channels the black is the alpha, others the white.. - it's driving me mental, but getting there!!

  2. #2
    Registered User zardoz's Avatar
    Join Date
    Dec 2003
    Location
    Portugal
    Posts
    1,819
    from the kray manual at: http://www.kraytracing.com/wiki/Sett...twave#Surfaces

    The general balance rule that should be followed to avoid unrealistic materials is :

    Color*Diffuse+Reflection+Translucency<100%

    or a more complex version including transparency would be:

    Color*Diffuse(100%-Transparency)+Transparency+Reflection+Translucency < 100%
    Intel Core i7-4770 @3.40GHz,GeForce GTX 660 - Ram 8Gb - Win 8.1 64b

  3. #3
    Almost newbie Cageman's Avatar
    Join Date
    Apr 2003
    Location
    Malmö, SWEDEN
    Posts
    7,629
    For transparent/refractive/reflective objects I would use Dialectric Material, since it actually takes care of all of that. While it is good to know how to set it up using gradients and whatnot, Dialectric material is really a huge timesaver for realistic behavour for this type of surface.

    Senior Technical Supervisor
    Cinematics Department
    Massive - A Ubisoft Studio
    -----
    Intel Core i7-4790K @ 4GHz
    16GB Ram
    GeForce GTX 1080 8GB
    Windows 10 Pro x64

  4. #4
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306
    Love you guys!! Big thanks

    Am I being daft, how do you Color*Diffuse?

  5. #5
    Dreamer MooseDog's Avatar
    Join Date
    Jul 2003
    Location
    Mount Whoville, VT
    Posts
    1,438
    Quote Originally Posted by raw-m View Post
    Love you guys!! Big thanks

    Am I being daft, how do you Color*Diffuse?
    computers (yes even computer graphics) ain't nothin but numbers for instance your color is 255, 163, 067, and you've marked your diffuse at 73%. multiplying away gets you 255(.73), 163(.73), 67(.73) or 186, 118, 48.
    We are pirates, we are artists...

    Blog

  6. #6
    Big fan of coffee raw-m's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,306
    Man-alive, I only want make pretty pictures!! Thanks MooseDog, but isn't that returning 3 values when refl, trans etc are 1 value each?

  7. #7
    Dreamer MooseDog's Avatar
    Join Date
    Jul 2003
    Location
    Mount Whoville, VT
    Posts
    1,438
    Quote Originally Posted by raw-m View Post
    Man-alive, I only want make pretty pictures!! Thanks MooseDog, but isn't that returning 3 values when refl, trans etc are 1 value each?
    just answering for the "color" part of "how do you Color*Diffuse". for the others, yeah, one number. remembering color=r,g,b for red, green, blue.
    We are pirates, we are artists...

    Blog

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •