目前的艺术化渲染算法会使结果图像具有较强的随机性,因此无法直接应用于立体图像的渲染.文章针对虚拟三维场景,给出了一个通用的艺术风格立体图像的渲染框架.首先对单个物体渲染包括双眼视域范围的艺术风格图像,在投影过程中同时记录模型顶点对应的纹理坐标;然后将艺术风格图像映射到物体表面生成艺术化效果的三维模型;最后将艺术化三维模型直接投影到左右眼相机生成立体图像.为创建用于纹理映射的艺术化纹理图像,提出了在透视投影中颠倒像素遮挡关系的方法来获取模型的双眼视域范围图像.该文提出的艺术化立体图像生成方法不仅可保证双眼图像的一致性,而且具有良好的通用性,可适用于各类已有的艺术化渲染算法.
The current artistic rendering algorithms cannot be applied directly to rendering stereoscopic images,because they may introduce strong randomness in the result images,which lead to inconsistencies between the two views of a stereo pairs.Based on 3Dvirtual scenes,ageneral rendering framework for creating artistic stereoscopic images is proposed in the paper.Firstly,an artistic image consisting of the binocular view scope is rendered from a single 3Dmodel,and the texture coordinates of the vertices are recorded simultaneously during projection.Then the artistic image is mapped to object surface and consequently the stylized 3Dmodel is generated.Finally,the binocular images are captured directly using the left and right camera from the stylized 3D model.To create the artistic texture image,we reverse the occlusion relation of pixels during the perspective projection to capture the binocular view scope.Our method can not only ensure the consistency between left and right images,but also has good versatility,can be adapted to all types of existing artistic rendering algorithms.