没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Image Processing Tricks in
Image Processing Tricks in
OpenGL
OpenGL
Simon Green
Simon Green
NVIDIA Corporation
NVIDIA Corporation
Overview
Overview
•
•
Image Processing in Games
Image Processing in Games
•
•
Histograms
Histograms
•
•
Recursive filters
Recursive filters
•
•
JPEG Discrete Cosine Transform
JPEG Discrete Cosine Transform
Image Processing in Games
Image Processing in Games
•
•
Image processing is increasingly
Image processing is increasingly
important in video games
important in video games
•
•
Games are becoming more like movies
Games are becoming more like movies
–
–
a large part of the final look is determined
a large part of the final look is determined
in
in
“
“
post
post
”
”
–
–
color correction, blurs, depth of field,
color correction, blurs, depth of field,
motion blur
motion blur
•
•
Important for accelerating offline tools
Important for accelerating offline tools
too
too
–
–
pre
pre
-
-
processing (
processing (
lightmaps
lightmaps
)
)
–
–
texture compression
texture compression
Image Histograms
Image Histograms
•
•
Image histograms give frequency of
Image histograms give frequency of
occurrence of each intensity level in
occurrence of each intensity level in
image
image
–
–
useful for image analysis, HDR tone
useful for image analysis, HDR tone
mapping algorithms
mapping algorithms
•
•
OpenGL imaging subset has histogram
OpenGL imaging subset has histogram
functions
functions
–
–
but this is not widely supported
but this is not widely supported
•
•
Solution
Solution
-
-
calculate histograms using
calculate histograms using
multiple passes and occlusion query
multiple passes and occlusion query
Histograms using Occlusion Query
Histograms using Occlusion Query
•
•
Render scene to texture
Render scene to texture
•
•
For each bucket in histogram
For each bucket in histogram
–
–
Begin occlusion query
Begin occlusion query
–
–
Draw quad with scene texture
Draw quad with scene texture
•
•
Use fragment program that discards fragments
Use fragment program that discards fragments
outside appropriate luminance range
outside appropriate luminance range
–
–
End occlusion query
End occlusion query
–
–
Get number of fragments that passed, store
Get number of fragments that passed, store
in histogram array
in histogram array
•
•
Process histogram
Process histogram
•
•
Requires n passes for n buckets
Requires n passes for n buckets
剩余43页未读,继续阅读
资源评论
- vanyee2013-04-01非常好的介绍opengl高级图像处理的资料
mczhao1977
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功