The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/showthread.php 103 forum_permissions
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 2121 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 2121 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 669 mark_thread_read
Warning [2] Undefined variable $postsdone - Line: 906 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 906 errorHandler->error
Warning [2] Undefined array key 14608 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14626 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14628 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14632 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14633 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14655 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14656 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14662 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14664 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14767 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14768 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14771 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14772 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14779 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14803 - Line: 912 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 912 errorHandler->error
Warning [2] Undefined array key 14628 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14632 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14633 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14655 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14656 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14662 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14664 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14767 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14768 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14772 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14779 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key 14803 - Line: 1643 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1643 errorHandler->error
/showthread.php 1645 buildtree
/showthread.php 924 buildtree
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 925 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 925 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 925 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 925 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 925 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 925 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1568 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 33 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $multipage - Line: 36 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 36 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $multipage - Line: 68 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 68 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 82 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 104 errorHandler->error
/showthread.php 1600 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VDrift lighting, materials, textures
09-15-2013, 07:11 AM, (This post was last modified: 09-15-2013, 07:11 AM by NaN.)
#15
RE: VDrift lighting, materials, textures
Here the vdrift.brdf (specular only) to be used with Disney BRDF Explorer ( http://www.disneyanimation.com/technology/brdf.html ):
Code:
analytic

::begin parameters
float roughness 0.001 1 .1
float metallic 0.001 1 .1
color color 1 1 1
::end parameters


::begin shader

const float pi = 3.14159265358979323846;

vec3 Fresnel(vec3 f0, float cos_theta)
{
    float b = 1 - cos_theta;
    float b2 = b * b;
    return f0 + (1 - f0) * b2 * b2 * b;
}

vec3 VDriftBRDF(vec3 f0, float r, float nv, float nl, float nh, float vh)
{
    float a = r * r;
    float a2 = a * a;
    float d = nh * nh * (a2 - 1) + 1;
    float r1 = r + 1;
    float k = r1 * r1 / 8;
    vec3 f = Fresnel(f0, vh);
    return f * a2 / (4 * pi * d * d * (nl * (1 - k) + k) * (nv * (1 - k) + k));
}

vec3 BRDF( vec3 L, vec3 V, vec3 N, vec3 X, vec3 Y )
{
    vec3 f0 = mix(vec3(0.04), color, metallic);
    vec3 H = normalize(V + L);
    float nv = max(0.0, dot(N, V));
    float nl = max(0.0, dot(N, L));
    float nh = max(0.0, dot(N, H));
    float vh = max(0.0, dot(V, H));
    return VDriftBRDF(f0, roughness, nv, nl, nh, vh) ;
}

::end shader

Try to match some of the brdf samples from here Wink http://people.csail.mit.edu/wojciech/BRD...ase/brdfs/
Reply


Messages In This Thread
VDrift lighting, materials, textures - by NaN - 04-22-2013, 05:05 PM
RE: VDrift lighting, materials, textures - by NaN - 05-02-2013, 02:57 PM
RE: VDrift lighting, materials, textures - by NaN - 05-02-2013, 05:34 PM
RE: VDrift lighting, materials, textures - by NaN - 05-02-2013, 06:55 PM
RE: VDrift lighting, materials, textures - by NaN - 05-12-2013, 06:30 AM
RE: VDrift lighting, materials, textures - by NaN - 05-18-2013, 04:59 AM
RE: VDrift lighting, materials, textures - by NaN - 07-18-2013, 02:11 PM
RE: VDrift lighting, materials, textures - by NaN - 07-18-2013, 03:29 PM
RE: VDrift lighting, materials, textures - by NaN - 07-28-2013, 03:29 AM
RE: VDrift lighting, materials, textures - by NaN - 08-04-2013, 11:32 AM
RE: VDrift lighting, materials, textures - by NaN - 09-15-2013, 07:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)