在图形上下文中,术语“橡皮筋"是什么意思?意思是? [英] In a graphics context, what does the term "rubberbanding" mean?

查看:112
本文介绍了在图形上下文中,术语“橡皮筋"是什么意思?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在不同的位置,我都看到了指图形绘图时使用的橡皮筋"一词.在这种情况下,人们似乎建议使用XOR进行绘制,而我的印象是该术语是指用于避免重新绘制整个框架的特定绘制技术.

In various locations, I've seen the term "rubberbanding" used when referring to graphics drawing. In such cases, people have seemed to recommending doing drawing using XOR, and I've gotten the impression that the term refers to a particular drawing technique used to avoid redrawing the entire frame.

但是,我一直找不到能准确定义橡皮筋"一词含义的内容.从一般意义上讲,在没有过多讨论实现细节的情况下,橡皮筋"一词的含义是什么?

However, I haven't been able to find anything that defines exactly what the term "rubberbanding" means. Just in a general sense, without discussing implementation details too heavily, what is the meaning of the term "rubberbanding" and what is its purpose?

推荐答案

这是一种非常古老的绘制形状而无需清除屏幕的技术.如果要绘制一个移动的矩形,则想法是仅绘制前一帧与新帧之间的差异(添加新部分,擦除旧部分,使普通部分保持不变).

It's a very old technique for drawing a shape without clearing the screen. If you want to draw a moving rectangle, the idea is to draw only the difference between the previous frame and the new one (adding the new parts, erasing the old ones, leaving the common part untouched).

XOR技巧是,如果您使用它进行绘制,则会将颜色设置为帧缓冲区.如果第二次在同一区域上绘制,它将消除您的颜色.

The XOR trick is that if you draw something with it, it sets your color to the framebuffer. If you draw with it a second time over the same area, it removes your color.

据我所知,自90年代以来(至少在类似PC的平台上)就没有在交​​互式渲染中使用它.

As far as I know this has not been used in interactive rendering since the 90s (at least on PC-like platforms).

这篇关于在图形上下文中,术语“橡皮筋"是什么意思?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆