⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texparameter.ps

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 PS
📖 第 1 页 / 共 3 页
字号:
2957(being)X3169(textured)X3466(maps)X3669(to)X3765(an)X3875(area)X954 5602(greater)N1202(than)X1364(one)X1504(texture)X1751(element.)X2049(There)X2261(are)X2384(six)X2501(de\256ned)X2761(minifying)X3099(functions.)X3460(Two)X3630(of)X3720(them)X3903(use)X954 5698(the)N1078(nearest)X1332(one)X1474(or)X1567(nearest)X1821(four)X1982(texture)X2232(elements)X2544(to)X2633(compute)X2936(the)X3061(texture)X3311(value.)X3532(The)X3684(other)X3876(four)X954 5794(use)N1081(mipmaps.)X266 6144(Page)N442(1)X3577(July)X3730(22,)X3850(1997)X2 p%%Page: 2 210 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(G)N268(GL)X322(LT)X368(TE)X414(EX)X460(XP)X514(PA)X556(AR)X610(RA)X660(AM)X714(ME)X780(ET)X826(TE)X872(ER)X918(R)X972(\()X974(\()X1010(\))X1012(\))X1885(U)X1887(UN)X1941(NI)X1995(IX)X2021(X)X2093(S)X2095(Sy)X2137(ys)X2175(st)X2205(te)X2227(em)X2261(m)X2337(V)X2339(V)X3240(G)X3242(GL)X3296(LT)X3342(TE)X3388(EX)X3434(XP)X3488(PA)X3530(AR)X3584(RA)X3634(AM)X3688(ME)X3754(ET)X3800(TE)X3846(ER)X3892(R)X3946(\()X3948(\()X3984(\))X3986(\))X10 s954 864(A)N1033(mipmap)X1316(is)X1390(an)X1487(ordered)X1754(set)X1864(of)X1952(arrays)X2170(representing)X2588(the)X2707(same)X2893(image)X3110(at)X3190(progressively)X3644(lower)X3849(reso-)X954 960(lutions.)N1214(If)X1291(the)X1412(texture)X1658(has)X1788(dimensions)X2175($2)X2278(sup)X2412(n)X2475(times)X2671(2)X2734(sup)X2867(m$,)X3011(there)X3194(are)X3315($)X3377(bold)X3541(max)X3701(\()X3750(n,)X3832(m)X3916(\))X3965(+)X954 1056(1)N1020($)X1086(mipmaps.)X1425(The)X1576(\256rst)X1726(mipmap)X2014(is)X2093(the)X2217(original)X2492(texture,)X2761(with)X2929(dimensions)X3320($2)X3427(sup)X3565(n)X3632(times)X3832(2)X3899(sup)X954 1152(m$.)N1098(Each)X1281(subsequent)X1659(mipmap)X1943(has)X2072(dimensions)X2458($2)X2560(sup)X2693({)X2753(k)X2815(-)X2864(1)X2926(})X2986(times)X3181(2)X3243(sup)X3376({)X3436(l)X3480(-)X3529(1)X3591(}$,)X3711(where)X3930($2)X954 1248(sup)N1087(k)X1149(times)X1344(2)X1406(sup)X1539(l$)X1623(are)X1744(the)X1864(dimensions)X2250(of)X2339(the)X2460(previous)X2759(mipmap,)X3064(until)X3233(either)X3439($k)X3542(=)X3610(0$)X3713(or)X3803($l=0$.)X954 1344(At)N1058(that)X1202(point,)X1410(subsequent)X1790(mipmaps)X2107(have)X2283(dimension)X2640($)X2704(1)X2768(times)X2965(2)X3029(sup)X3164({)X3226(l)X3272(-)X3322(1)X3385(})X3446($)X3509(or)X3599($)X3662(2)X3725(sup)X3859({)X3920(k)X3983(-)X954 1440(1})N1053(times)X1247(1)X1309($)X1371(until)X1539(the)X1659(\256nal)X1823(mipmap,)X2127(which)X2345(has)X2474(dimension)X2829($1)X2931(times)X3126(1$.)X3248(To)X3359(de\256ne)X3577(the)X3697(mipmaps,)X954 1536(call)N3 f1099(glTexImage1D)X1 f1602(,)X3 f1650(glTexImage2D)X1 f2153(,)X3 f2201(glCopyTexImage1D)X1 f2886(,)X2934(or)X3 f3029(glCopyTexImage2D)X1 f3742(with)X3912(the)X2 f954 1632(level)N1 f1136(argument)X1469(indicating)X1819(the)X1947(order)X2147(of)X2244(the)X2372(mipmaps.)X2735(Level)X2948(0)X3018(is)X3101(the)X3229(original)X3508(texture;)X3783(level)X3970($)X954 1728(bold)N1116(max)X1274(\()X1321(n,)X1401(m)X1483(\))X1530($)X1590(is)X1663(the)X1781(\256nal)X1943($1)X2043(times)X2236(1$)X2336(mipmap.)X2 f954 1862(params)N1 f1214(supplies)X1496(a)X1552(function)X1839(for)X1953(minifying)X2288(the)X2406(texture)X2649(as)X2736(one)X2872(of)X2959(the)X3077(following:)X3 f954 1996(GL_NEAREST)N1 f1354 2092(Returns)N1626(the)X1747(value)X1944(of)X2034(the)X2156(texture)X2403(element)X2681(that)X2825(is)X2902(nearest)X3154(\(in)X3267(Manhattan)X3634(distance\))X3948(to)X1354 2188(the)N1472(center)X1689(of)X1776(the)X1894(pixel)X2074(being)X2272(textured.)X3 f954 2322(GL_LINEAR)N1 f1354 2418(Returns)N1630(the)X1755(weighted)X2076(average)X2354(of)X2449(the)X2575(four)X2737(texture)X2988(elements)X3301(that)X3449(are)X3576(closest)X3822(to)X3912(the)X1354 2514(center)N1586(of)X1687(the)X1819(pixel)X2013(being)X2225(textured.)X2562(These)X2788(can)X2934(include)X3204(border)X3448(texture)X3705(elements,)X1354 2610(depending)N1829(on)X2050(the)X2289(values)X2635(of)X3 f2843(GL_TEXTURE_WRAP_S)X1 f3894(and)X3 f1354 2706(GL_TEXTURE_WRAP_T)N1 f2273(,)X2313(and)X2449(on)X2549(the)X2667(exact)X2857(mapping.)X3 f954 2840(GL_NEAREST_MIPMAP_NEAREST)N1 f1354 2936(Chooses)N1645(the)X1763(mipmap)X2046(that)X2187(most)X2363(closely)X2611(matches)X2895(the)X3014(size)X3160(of)X3248(the)X3367(pixel)X3548(being)X3747(textured)X1354 3032(and)N1491(uses)X1650(the)X3 f1769(GL_NEAREST)X1 f2322(criterion)X2615(\(the)X2761(texture)X3004(element)X3278(nearest)X3526(to)X3608(the)X3726(center)X3943(of)X1354 3128(the)N1472(pixel\))X1679(to)X1761(produce)X2040(a)X2096(texture)X2339(value.)X3 f954 3262(GL_LINEAR_MIPMAP_NEAREST)N1 f1354 3358(Chooses)N1645(the)X1763(mipmap)X2046(that)X2187(most)X2363(closely)X2611(matches)X2895(the)X3014(size)X3160(of)X3248(the)X3367(pixel)X3548(being)X3747(textured)X1354 3454(and)N1497(uses)X1662(the)X3 f1787(GL_LINEAR)X1 f2279(criterion)X2577(\(a)X2666(weighted)X2986(average)X3263(of)X3356(the)X3480(four)X3640(texture)X3889(ele-)X1354 3550(ments)N1565(that)X1705(are)X1824(closest)X2062(to)X2144(the)X2262(center)X2479(of)X2566(the)X2684(pixel\))X2891(to)X2973(produce)X3252(a)X3308(texture)X3551(value.)X3 f954 3684(GL_NEAREST_MIPMAP_LINEAR)N1 f1354 3780(Chooses)N1648(the)X1769(two)X1912(mipmaps)X2228(that)X2371(most)X2549(closely)X2799(match)X3018(the)X3139(size)X3287(of)X3377(the)X3499(pixel)X3683(being)X3885(tex-)X1354 3876(tured)N1551(and)X1699(uses)X1869(the)X3 f1999(GL_NEAREST)X1 f2562(criterion)X2865(\(the)X3021(texture)X3275(element)X3560(nearest)X3819(to)X3912(the)X1354 3972(center)N1577(of)X1670(the)X1794(pixel\))X2008(to)X2097(produce)X2383(a)X2446(texture)X2696(value)X2897(from)X3080(each)X3255(mipmap.)X3564(The)X3716(\256nal)X3885(tex-)X1354 4068(ture)N1499(value)X1693(is)X1766(a)X1822(weighted)X2136(average)X2407(of)X2494(those)X2683(two)X2823(values.)X3 f954 4202(GL_LINEAR_MIPMAP_LINEAR)N1 f1354 4298(Chooses)N1648(the)X1769(two)X1912(mipmaps)X2228(that)X2371(most)X2549(closely)X2799(match)X3018(the)X3139(size)X3287(of)X3377(the)X3499(pixel)X3683(being)X3885(tex-)X1354 4394(tured)N1542(and)X1681(uses)X1842(the)X3 f1963(GL_LINEAR)X1 f2452(criterion)X2747(\(a)X2833(weighted)X3149(average)X3422(of)X3511(the)X3631(four)X3787(texture)X1354 4490(elements)N1660(that)X1801(are)X1921(closest)X2160(to)X2243(the)X2362(center)X2580(of)X2668(the)X2787(pixel\))X2995(to)X3078(produce)X3358(a)X3415(texture)X3659(value)X3854(from)X1354 4586(each)N1522(mipmap.)X1844(The)X1989(\256nal)X2151(texture)X2394(value)X2588(is)X2661(a)X2717(weighted)X3031(average)X3302(of)X3389(those)X3578(two)X3718(values.)X954 4720(As)N1066(more)X1254(texture)X1500(elements)X1808(are)X1930(sampled)X2220(in)X2305(the)X2427(mini\256cation)X2837(process,)X3122(fewer)X3330(aliasing)X3603(artifacts)X3886(will)X954 4816(be)N1051(apparent.)X1369(While)X1586(the)X3 f1705(GL_NEAREST)X1 f2257(and)X3 f2393(GL_LINEAR)X1 f2879(mini\256cation)X3285(functions)X3603(can)X3735(be)X3831(faster)X954 4912(than)N1123(the)X1252(other)X1448(four,)X1633(they)X1802(sample)X2060(only)X2233(one)X2380(or)X2478(four)X2643(texture)X2897(elements)X3213(to)X3306(determine)X3658(the)X3787(texture)X954 5008(value)N1157(of)X1253(the)X1380(pixel)X1569(being)X1776(rendered)X2087(and)X2232(can)X2373(produce)X2661(moire)X2877(patterns)X3160(or)X3256(ragged)X3504(transitions.)X3885(The)X954 5104(initial)N1160(value)X1354(of)X3 f1441(GL_TEXTURE_MIN_FILTER)X1 f2544(is)X3 f2617(GL_NEAREST_MIPMAP_LINEAR)X1 f3879(.)X3 f554 5238(GL_TEXTURE_MAG_FILTER)N1 f954 5334(The)N1103(texture)X1350(magni\256cation)X1814(function)X2105(is)X2182(used)X2353(when)X2551(the)X2673(pixel)X2857(being)X3060(textured)X3348(maps)X3542(to)X3629(an)X3730(area)X3890(less)X954 5430(than)N1131(or)X1237(equal)X1450(to)X1551(one)X1706(texture)X1968(element.)X2301(It)X2389(sets)X2547(the)X2683(texture)X2944(magni\256cation)X3422(function)X3727(to)X3827(either)X3 f954 5526(GL_NEAREST)N1 f1532(or)X3 f1645(GL_LINEAR)X1 f2157(\(see)X2333(below\).)X3 f2622(GL_NEAREST)X1 f3200(is)X3300(generally)X3646(faster)X3872(than)X3 f954 5622(GL_LINEAR)N1 f1420(,)X1469(but)X1600(it)X1673(can)X1814(produce)X2102(textured)X2394(images)X2650(with)X2821(sharper)X3087(edges)X3299(because)X3582(the)X3708(transition)X954 5718(between)N1347(texture)X1695(elements)X2105(is)X2283(not)X2510(as)X2702(smooth.)X3082(The)X3332(initial)X3643(value)X3943(of)X3 f954 5814(GL_TEXTURE_MAG_FILTER)N1 f2088(is)X3 f2161(GL_LINEAR)X1 f2627(.)X266 6144(July)N419(22,)X539(1997)X3794(Page)X3970(2)X3 p%%Page: 3 310 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(G)N268(GL)X322(LT)X368(TE)X

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -