计算机图形学Chapter04.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
计算机图形学Chapter04

Computer Graphics with OpenGL 3e Chapter 4 Attribute of Graphics Primitives Attribute parameter (state variable) A parameter that affect the way a primitive is to be displayed,include: Fundamental characteristics, such as color and size Specify the way to display primitive under special conditions,such as visibility and detectability The way incorporating(合并) attribute options into Graphics package: Extend the parameter list associated with graphics-primitive function:E.g. line drawing function with additional parameter for attributes(color,width…… ) Maintain a list of current attribute values.Referred as state system OpenGL state variable can be specified within glBegin and glEnd pairs,along with coordinate values. Outline 4-2 Color and gray scale 4-3 OpenGL color functions 4-4~4-6 Attributes of linear objects 4-7~4-8 Supporting OpenGL functions 4-9 Fill-area attributes 4-10~4-13 Polygon-fill Algorithm 4-14 OpenGL Fill-area attribute functions 4-15~4-16 Character Attributes 4-17~4-18 Antialiasing 4-2 Color and gray scale (1) Basic attribute for all primitives RGB color components Number of color depend on the storage provided per pixel in the frame buffer;Color information stored in frame buffer in two ways: Direct store RGB color codes in frame buffer:more bits per pixel more color numbers,more storage of frame buffer.(eg:min: 3 bits in table4-1;max:1024*1024*24bits=3MB) Color and gray scale (2) Color (look)table:Put color code into separate table and use pixel location to store index value referencing the color-table entries。 (a color lookup table show in fig4-1:Reducing frame buffer storage requirement to 1 megabyte. ) 4-2 Color and gray scale (3) Gray scale Using RGB color functions to set shades of gray Shade of gray result in setting RGB in equal amount Value close to zero, produce dark gray Value close to 1.0, produce light gray Gray scale is used for enhancing black-white photographs a

文档评论(0)

qwd513620855 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档