首页> 外国专利> Method for rendering shadows with blended transparency without producing visual artifacts in real time applications

Method for rendering shadows with blended transparency without producing visual artifacts in real time applications

机译:在实时应用中不产生视觉伪影的情况下,以混合透明度渲染阴影的方法

摘要

A method, system and computer-readable medium for generating a shadow for a three dimensional model without visual artifacts. A shadow of a model is projected onto a shadow plane using a shadow projection matrix and disabling alpha blending, creating a projected shadow model. A three-dimensional (3D) bounding volume of the model is projected onto the shadow plane and clipped against the view frustum. Based on the bounding volume projected onto the shadow plane, a screen extent that encompasses the entire projected bounding volume is determined. A texture map sized in relation to the screen extent is created in memory for storing a texture map. This texture map is cleared to a non-shadow color and a chromakey is set to the non-shadow color. The projected shadow model without alpha blending has its colors and texture set to the desired shadow color. The projected shadow model is then rendered onto the texture map. Thereafter, the projected bounding volume vertices are set to the shadow's alpha value and the texture coordinates of the projected bounding volume vertices are set to evenly map texture into screen space. With prospective texture correction disabled and blended transparency enabled, the projected bounding volume is rendered into the scene with the shadow texture applied.
机译:一种用于为没有视觉伪像的三维模型生成阴影的方法,系统和计算机可读介质。使用阴影投影矩阵并禁用alpha混合,可将模型的阴影投影到阴影平面上,从而创建投影阴影模型。将模型的三维(3D)边界体积投影到阴影平面上,然后将其剪切到视锥上。基于投影到阴影平面上的边界体积,确定包含整个投影边界体积的屏幕范围。在存储器中创建与屏幕范围相关的大小的纹理图,用于存储纹理图。将该纹理贴图清除为非阴影颜色,并将抠像设置为非阴影颜色。没有alpha混合的投影阴影模型的颜色和纹理设置为所需的阴影颜色。然后将投影的阴影模型渲染到纹理贴图上。此后,将投影边界体积顶点设置为阴影的alpha值,并将投影边界体积顶点的纹理坐标设置为将纹理均匀地映射到屏幕空间。禁用前瞻性纹理校正并启用混合透明度后,将在应用阴影纹理的情况下将投影的边界体积渲染到场景中。

著录项

  • 公开/公告号US6437782B1

    专利类型

  • 公开/公告日2002-08-20

    原文格式PDF

  • 申请/专利权人 MICROSOFT CORPORATION;

    申请/专利号US19990226336

  • 发明设计人 IAN B. PIERAGOSTINI;STEPHEN J. LACEY;

    申请日1999-01-06

  • 分类号G06T156/00;

  • 国家 US

  • 入库时间 2022-08-22 00:49:08

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号