首页> 外国专利> Method and apparatus for performing H-space bump mapping suitable for implementation with H-space lighting in a graphics pipeline of a computer graphics display system

Method and apparatus for performing H-space bump mapping suitable for implementation with H-space lighting in a graphics pipeline of a computer graphics display system

机译:用于执行适用于在计算机图形显示系统的图形管线中以H空间照明实现的H空间凹凸映射的方法和装置

摘要

The present invention provides a method and apparatus for performing H-space bump mapping. The apparatus of the present invention is a fragment processor of a computer graphics display system. The method of the present invention is performed by the fragment processor. In accordance with the method of the present invention, for each vertex of each polygon being processed, the fragment processor calculates both diffuse and specular lighting terms. Then, for each fragment within the polygon defined by the vertices, the fragment processor interpolates the specular and diffuse lighting terms to obtain diffuse and specular lighting terms for each fragment. If bump mapping has been enabled, the fragment processor adds perturbations to the diffuse and specular lighting terms to generate the bump mapping. Preferably, prior to performing the H-space bump mapping algorithm, texture coordinate gradient vectors are calculated for the image to be rendered. During the H-space bump mapping algorithm of the present invention, the H-space reference vectors are aligned with the texture coordinate gradient vectors. The specular and diffuse lighting terms are calculated using the H-space reference vectors. Since the H-space reference vectors are aligned with the texture coordinate vectors, it is not necessary to transform the specular and diffuse lighting terms into the coordinate system associated with the texture coordinates of the bump map on a per fragment (i.e., per pixel basis). Once the H-space reference vectors have been aligned with the texture coordinate gradient vectors, the algorithm proceeds in the aforementioned manner.
机译:本发明提供了一种用于执行H空间凹凸映射的方法和设备。本发明的设备是计算机图形显示系统的片段处理器。本发明的方法由片段处理器执行。根据本发明的方法,对于正在处理的每个多边形的每个顶点,片段处理器计算漫射和镜面光照项。然后,对于由顶点定义的多边形内的每个片段,片段处理器对高光和漫射光照项进行插值,以获得每个片段的漫射和镜面光照项。如果启用了凹凸贴图,则片段处理器将扰动添加到漫反射和镜面光照项中以生成凹凸贴图。优选地,在执行H空间凹凸映射算法之前,为要渲染的图像计算纹理坐标梯度向量。在本发明的H空间凹凸映射算法期间,H空间参考向量与纹理坐标梯度向量对准。使用H空间参考向量计算镜面和漫射照明项。由于H空间参考向量与纹理坐标向量对齐,因此不必按每个片段(即,每个像素)将高光和漫射照明项转换为与凹凸贴图的纹理坐标关联的坐标系。 )。一旦H空间参考向量已经与纹理坐标梯度向量对齐,则算法以前述方式进行。

著录项

  • 公开/公告号US6518968B1

    专利类型

  • 公开/公告日2003-02-11

    原文格式PDF

  • 申请/专利权人 HEWLETT-PACKARD COMPANY;

    申请/专利号US20000573059

  • 发明设计人 BRADFORD A. RITTER;ROSS CUNNIFF;

    申请日2000-05-17

  • 分类号G06T170/60;

  • 国家 US

  • 入库时间 2022-08-22 00:06:46

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号