计算机图形学computer graphics课件18.ppt

上传人:京东小超市 文档编号:5879316 上传时间:2020-08-13 格式:PPT 页数:59 大小:10.03MB
返回 下载 相关 举报
计算机图形学computer graphics课件18.ppt_第1页
第1页 / 共59页
计算机图形学computer graphics课件18.ppt_第2页
第2页 / 共59页
亲,该文档总共59页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《计算机图形学computer graphics课件18.ppt》由会员分享,可在线阅读,更多相关《计算机图形学computer graphics课件18.ppt(59页珍藏版)》请在三一文库上搜索。

1、Texture Mapping Software College, Shandong University Instructor: Zhou Yuanfeng E-mail: 纬 毫 曙 蓉 剩 技 扣 油 列 须 敲 妖 舞 淆 鹿 崭 啥 宦 临 舅 位 玫 奄 蚕 笼 想 瑶 桥 炯 酋 臂 辞 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 2 敞 莎 佳 邦 睹 本 榆 弹 碳 莆 卯 擂 肾 隘 疤 喇 定 甸 瞩 拂 助

2、 商 只 腻 渡 风 槽 赠 漱 娜 尿 锈 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 3 Objectives Introduce Mapping Methods Texture Mapping Environment Mapping Bump Mapping Consider basic strategies Forward vs backward mapping Point sampling vs area averagin

3、g 拄 奠 妹 疙 窜 乓 柠 寺 炕 自 哼 吃 冻 贷 胯 扩 碟 猫 典 闺 鼓 缮 雌 菱 及 岸 叶 澜 胸 山 悍 谅 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 4 The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number is insuffic

4、ient for many phenomena Clouds Grass Terrain Skin, hair Water and fire 股 吭 沦 膏 泊 紧 鞭 凌 稳 蚀 桶 各 懦 涸 缠 毗 蘸 粪 棒 广 至 愤 佑 函 遏 棚 堑 颧 柑 昂 竭 痊 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 5 Modeling an Orange Consider the problem of modeling an oran

5、ge (the fruit) Start with an orangecolored sphere Too simple Replace sphere with a more complex shape Does not capture surface characteristics (small dimples) Takes too many polygons to model all the dimples 事 甄 麻 腕 氟 号 滓 炳 垣 坎 库 冷 尸 略 饮 考 挺 耙 茄 四 颠 绍 侄 侈 溃 酱 喝 望 斩 忱 汲 岸 计 算 机 图 形 学 c o m p u t e r

6、g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 6 Modeling an Orange (2) Take a picture of a real orange, scan it, and “paste” onto simple geometric model This process is known as texture mapping Still might not be sufficient because resulting surface will be smooth Need

7、to change local shape Bump mapping + 汽 渗 叛 榔 愧 卞 碴 紊 膘 碉 劝 笨 激 敲 撩 铲 扇 并 钱 傣 鳃 细 劲 园 逻 恍 膊 绕 湛 妊 榨 芝 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 7 Three Types of Mapping Texture Mapping Uses images to fill inside of polygons Environment (re

8、flection mapping) Uses a picture of the environment for texture maps Allows simulation of highly specular surfaces Bump mapping Emulates altering normal vectors during the rendering process 摘 槽 替 姻 说 高 娟 纸 慈 予 痴 犹 羞 掣 呢 肿 足 脊 占 洛 心 叙 助 悲 究 垦 洞 峙 官 啸 寿 开 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课

9、件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 8 Texture Mapping geometric modeltexture mapped 很 僳 箩 绢 职 帚 韦 民 渗 映 匪 篱 削 崩 缕 泊 走 抢 浩 酸 种 讫 焊 沙 贷 厘 滩 造 个 颜 盛 局 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 9 Environment Mapping 寸 胎

10、涟 嵌 撼 观 由 囊 火 剐 拙 渺 嘘 绰 片 冰 羹 有 抛 矽 勘 靡 只 躁 烤 红 像 崎 忽 罐 倍 虱 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 10 Bump Mapping += original surfacebump mapmodified surface 都 丽 脾 走 郴 错 饮 已 恿 指 叶 堵 阔 观 姜 辕 牧 具 摇 古 颊 萄 丸 越 插 镶 荷 葫 郸 檬 文 峻 计 算 机 图 形 学

11、c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 11 Where does mapping take place? Mapping techniques are implemented at the end of the rendering pipeline Very efficient because few polygons make it past the clipper 奎 佳 瘸 黍 粗 战 妮 赊 根 期 汲 莹 睬 捻 碾 腮 蜂 佃 疗 笋 馋

12、 氢 命 料 里 癸 戌 时 扯 脸 曙 究 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 12 Is it simple? Although the idea is simplemap an image to a surfacethere are 3 or 4 coordinate systems involved 2D image 3D surface 筑 措 尿 胳 广 徘 炔 仟 祝 酷 脐 瞪 柄 说 中 贩 乒 托 逸 滓

13、 壬 仟 腹 启 闪 篙 吝 伪 亦 驮 服 焰 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 13 Coordinate Systems Parametric coordinates May be used to model curves and surfaces Texture coordinates Used to identify points in the image to be mapped Object or World

14、 Coordinates Conceptually, where the mapping takes place Window Coordinates Where the final image is really produced 慕 伊 篓 估 憋 铂 罚 戈 筷 期 辉 萧 谜 杀 铀 拒 丘 趋 赖 林 打 融 绒 钻 蔓 镀 婪 蔓 狞 阴 力 磷 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 14 Texture Mapp

15、ing parametric coordinates texture coordinates world coordinates window coordinates 律 帕 两 勘 尽 娜 詹 火 祈 跳 畸 嘎 扣 郎 疽 搐 沥 当 窜 堪 泣 踩 亭 笨 刷 杰 窖 恍 副 诸 愈 蓄 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 15 Mapping Functions Basic problem is how to fin

16、d the maps Consider mapping from texture coordinates to a point a surface Appear to need three functions x = x(s,t) y = y(s,t) z = z(s,t) But we really want to go the other way s t (x,y,z) 犹 尊 鲍 跳 涝 究 躁 陕 签 土 肺 索 洼 柱 收 慧 刀 殴 杯 蛔 黄 鸽 蝶 巧 瀑 闺 肝 扰 唯 镀 蛾 厚 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件

17、 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 16 Backward Mapping We really want to go backwards Given a pixel, we want to know to which point on an object it corresponds Given a point on an object, we want to know to which point in the texture it corresponds Need a map of the form s = s(

18、x,y,z) t = t(x,y,z) Such functions are difficult to find in general 烘 夺 姑 妓 斜 搽 乎 侮 惨 咖 轿 肋 券 名 罪 姥 德 那 霄 凡 浑 祝 溜 打 济 桔 坎 烹 夹 波 伊 馒 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Parameterization 17 斡 慎 柯 篆 酱 嫌 呐 龟 臂 售 烹 代 绣 郴 勋 践 渐 霍 烦 铭 敬 徊

19、俐 基 杭 备 损 历 棱 侈 轰 嫉 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 18 Two-part mapping One solution to the mapping problem is to first map the texture to a simple intermediate surface Example: map to cylinder 语 杆 戳 丘 碘 嚎 鸣 蓬 廉 坝 拨 何 煽 挛 筹 宿 莹

20、恢 巷 痒 檀 待 迁 挛 祷 脯 涕 额 卿 嘘 荧 图 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 19 Cylindrical Mapping parametric cylinder x = r cos (2pi u) y = r sin (2pi u) z = v/h maps rectangle in u,v space to cylinder of radius r and height h in world coord

21、inates s = u t = v maps from texture space 摆 寥 牲 辟 吉 羊 蘸 灾 隐 巾 烧 宅 酝 拽 饱 必 骂 贮 嗓 驯 冠 匈 占 泳 卸 贼 硒 侍 式 帽 做 乒 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Cylindrical Mapping 20 Mapping: z z (a) texture(b)cylindrical x y r h (c)mapping x y (d)b

22、 a(c) 1 1 卜 垃 击 疹 侗 脾 土 奋 轻 鬼 弹 岩 缎 祭 胚 坊 痹 赔 予 磅 花 拓 据 叹 凋 羌 嚏 歹 荔 蛛 蓉 晃 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Cylindrical Mapping 21 Map u and v to points a,b,c,d: (1) : (2) : (3) : (4) : Solving: From texture to cylindrical paramet

23、ers: From cylindrical parameters to texture: 缀 撞 衔 皖 寺 磨 婪 堆 稀 羔 初 萍 赁 弧 械 汇 细 颧 室 妮 磋 嚷 恭 卤 躺 百 抠 卡 提 萎 锋 疤 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 22 Spherical Mapping We can use a parametric sphere x = r cos 2piu y = r sin 2pu cos 2p

24、iv z = r sin 2pu sin 2piv in a similar manner to the cylinder but have to decide where to put the distortion Spheres are used in environmental maps 察 罕 色 液 弥 瓶 淮 甭 帆 荒 羔 匠 矣 烬 文 履 童 皇 薪 刨 擎 错 抱 闲 汕 吱 凛 姑 娄 缉 悟 莫 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p

25、h i c s 课 件 1 8 23 Box Mapping Easy to use with simple orthographic projection Also used in environment maps 闯 黔 在 朋 柒 贤 蒲 峨 惋 搅 滥 斋 憎 骤 咨 唁 涪 甜 眠 牵 药 溺 验 消 匝 进 疟 隋 和 羹 申 荧 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Polycube mapping 24 舀 赫

26、 芯 绩 咕 驴 冶 寒 怠 彝 傣 伐 键 恰 临 开 概 娱 姆 敦 负 舜 堂 药 抚 臆 郧 苞 哟 癸 徒 绍 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Conformal mapping In mathematics, a conformal map is a function which preserves angles. 25 彰 次 晃 婶 液 猴 庚 禁 次 厦 顽 冯 岿 泳 捉 痒 丧 焕 鼓 襄 咙 陷

27、栋 亡 一 谈 墓 圆 房 陈 瓤 佑 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 26 Second Mapping Map from intermediate object to actual object Normals from intermediate to actual Normals from actual to intermediate Vectors from center of intermediate inte

28、rmediate actual 亮 赴 挞 替 帅 砧 钟 傻 更 落 荣 烂 旦 调 皇 船 撤 疙 种 革 泣 剖 疆 皋 蓑 弟 野 疹 震 摆 与 赂 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 27 Aliasing Point sampling of the texture can lead to aliasing errors point samples in u,v (or x,y,z) space point sa

29、mples in texture space miss blue stripes 枕 叔 碱 狠 污 盾 秉 薄 椅 谷 嘉 瑚 寂 荧 咆 珠 木 靡 孪 津 刃 腋 敖 销 孝 团 皮 仗 歧 励 寨 潮 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 28 Area Averaging A better but slower option is to use area averaging Note that preimage of

30、 pixel is curved pixel preimage 逝 村 眯 拍 得 须 取 浴 洒 挥 抑 肝 荆 皱 城 运 棱 芹 乏 陆 妹 钩 汞 颜 亚 舰 艺 缉 奋 咎 旗 煎 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Catmull texture mapping Surface subdivision 29 Pixel e dS Screen Surface 谅 亏 兰 杏 漫 参 健 旱 镀 舆 出 锐 拘 琳

31、 恕 梧 惭 误 硒 翟 汝 岂 蔑 伪 慨 化 攒 捎 我 碰 腋 阉 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Continuous mapping 30 (a) Spherical Mapping (b)Cylindrical Mapping 古 另 耗 练 毫 步 芥 居 凸 吩 藤 稳 掖 捶 慷 寺 斋 全 砾 浴 胎 幼 屏 发 丁 敦 布 蛙 伞 榨 捍 遥 计 算 机 图 形 学 c o m p u t e r

32、g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Mip-map (1983, Lance Williams) 31 摄 径 捶 惦 讲 燕 瘫 已 蔼 衬 勃 晦 傀 闷 醉 拖 夫 振 作 曾 夷 刽 力 运 渡 卑 低 衷 菱 熏 五 衔 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 Mip-map Actually mipma

33、p is a lookup table for texture 32 亮 灭 哈 扭 矾 尼 移 缚 玻 怪 兄 句 幽 良 店 董 氰 俩 僻 赴 誉 贮 旨 耍 醚 插 枚 黍 珠 烛 品 匀 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 OpenGL Texture Mapping 茁 椽 肢 牺 些 暑 绕 乌 似 汹 淌 柿 持 措 戳 冗 吃 渍 焚 裁 桅 云 骑 鹤 傲 矾 两 艘 惕 芭 做 犹 计 算 机 图 形

34、学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 34 Basic Strategy Three steps to applying a texture 1. specify the texture read or generate image assign to texture enable texturing 2. assign texture coordinates to vertices Proper mapping function is left

35、 to application 3. specify texture parameters wrapping, filtering 谩 艇 堪 俩 绞 亦 殴 瞎 荚 侮 端 龟 烟 胰 轻 倦 肥 栽 吵 否 冤 妖 拢 咨 昼 菜 藩 唬 嘻 给 弧 幂 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 35 Texture Mapping s t x y z image geometry display 钵 锚 礁 东 决 舀 雀

36、筋 虑 吗 洒 迁 掉 萎 追 器 遣 耘 鹏 翠 躯 郴 沟 酪 善 麦 泡 碑 虑 炙 芒 但 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 36 Texture Example The texture (below) is a 256 x 256 image that has been mapped to a rectangular polygon which is viewed in perspective 靳 蒙 践 蛔 绘

37、 恨 芽 养 酶 淖 厢 均 蛾 袁 者 怪 悬 占 忘 羔 大 庆 棵 集 疲 椎 闹 歼 窃 河 悲 绍 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 37 Texture Mapping and the OpenGL Pipeline geometry pipelinevertices pixel pipeline image rasterizer Images and geometry flow through separat

38、e pipelines that join at the rasterizer “complex” textures do not affect geometric complexity 尼 疡 空 感 鳖 瞒 持 齐 麻 砌 塔 哺 使 瘫 宿 竖 国 汇 盘 巍 烟 丰 辞 啤 姿 补 擎 盅 蓉 腑 癣 信 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 38 Define a texture image from an arra

39、y of texels (texture elements) in CPU memory Glubyte my_texels512512; Define as any other pixel map Scanned image Generate by application code Enable texture mapping glEnable(GL_TEXTURE_2D) OpenGL supports 14 dimensional texture maps Specifying a Texture Image 缎 水 火 孩 罢 车 忻 陡 算 返 瞧 鞠 瓣 躇 很 鹅 熟 刨 躺 彤

40、 甫 亥 舒 谈 龙 镰 奄 翔 挡 迪 慰 文 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 1D texture mapping 39 亢 啤 言 殴 驻 紫 稻 压 差 慕 筏 枝 伴 乱 欢 旷 俭 逝 躲 荔 辣 峨 呛 阮 倔 六 兴 妨 夹 拽 逮 昼 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a

41、 p h i c s 课 件 1 8 1D texture mapping unsigned char colorbar1024; glTexImage1D(GL_TEXTURE_1D, 0, GL_RGBA, 256, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, colorbar); glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP); Texture coord: 0,1 40 湿 腹 仕 趁 累 英 硬 洛 帝 非 惺 绸 司 赤 汤 仙 盖 聪 猜 鄂 惜 牟 瓢 芦 惫 胀 姓 斩 奥 屏 救

42、 施 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 41 Define Image as a Texture glTexImage2D( target, level, components, w, h, border, format, type, texels ); target: type of texture, e.g. GL_TEXTURE_2D level: used for mipmapping (discussed lat

43、er) components: elements per texel w, h: width and height of texels in pixels border: used for smoothing (discussed later) format and type: describe texels texels: pointer to texel array glTexImage2D(GL_TEXTURE_2D, 0, 3, 512, 512, 0, GL_RGB, GL_UNSIGNED_BYTE, my_texels); 阉 型 阐 穗 潞 涉 怎 挥 饮 伤 澜 容 卖 免

44、项 琶 郎 将 烬 报 黔 霸 沾 极 菠 闷 铣 擞 驯 氨 谬 败 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 42 Converting A Texture Image OpenGL requires texture dimensions to be powers of 2 If dimensions of image are not powers of 2 gluScaleImage( format, w_in, h_in,

45、 type_in, *data_in, w_out, h_out, type_out, *data_out ); data_in is source image data_out is for destination image Image interpolated and filtered during scaling 凸 嘉 票 夫 栽 液 沪 谈 敲 社 浆 堑 挽 罕 烛 荣 的 羞 宇 契 臆 梅 角 闺 妈 谦 靖 价 双 顽 浴 鹰 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u

46、t e r g r a p h i c s 课 件 1 8 43 Based on parametric texture coordinates glTexCoord*() specified at each vertex s t 1, 1 0, 1 0, 01, 0 (s, t) = (0.2, 0.8) (0.4, 0.2) (0.8, 0.4) A BC a b c Texture SpaceObject Space Mapping a Texture 展 钓 亥 捐 绣 遭 衫 永 莆 檀 合 后 脖 祖 稠 嘴 褪 沪 豪 徘 匡 慧 沮 卓 钙 飞 会 问 肮 穴 藏 塔 计 算

47、机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 44 Typical Code glBegin(GL_POLYGON); glColor3f(r0, g0, b0); /if no shading used glNormal3f(u0, v0, w0); / if shading used glTexCoord2f(s0, t0); glVertex3f(x0, y0, z0); glColor3f(r1, g1, b1); glNormal3

48、f(u1, v1, w1); glTexCoord2f(s1, t1); glVertex3f(x1, y1, z1); . . glEnd(); Note that we can use vertex arrays to increase efficiency 挺 执 鳖 捕 站 猩 奋 奶 杠 凄 烧 匹 署 薄 乃 届 督 咏 书 黄 禁 命 依 古 兔 由 炳 静 闽 懦 桅 滔 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8

49、45 Interpolation OpenGL uses interpolation to find proper texels from specified texture coordinates Can be distortions good selection of tex coordinates poor selection of tex coordinates texture stretched over trapezoid showing effects of bilinear interpolation 症 呼 偷 腥 蒋 洁 池 房 冗 涵 趋 伟 这 墟 躬 然 过 榜 猜 梢 扑 丑 梳 初 偷 谦 县 豫 韩 榨 困 贩 计 算 机 图 形 学 c o m p u t e r g r a p h i c s 课 件 1 8 计 算 机 图 形 学

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1