由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
_Graphics版 - an opengl question
相关主题
Graphic C libraryPlatform of 3D Animation
opengl rendering怎么样才能快速的生成三维动画啊?
glTexImage3D()Any suggestion for graphics acceleration under linux
help: an OPENGL problem...关于“texture compression”的话题
Re: Platform of 3D Animationjust saw the siggraph DVD
用openCV的怎么编简单界面,mfc?Parallel Rendering and Distant Visualization
image morphing?loop, i finished a project
Holland's brief list of hot topics in graphics:)问个问题:Re: loop, i finished a project
相关话题的讨论汇总
话题: buffer话题: opengl话题: frame话题: read话题: question
1 (共1页)
e****r
发帖数: 166
1
can opengl read the rendered scene not from frame buffer, but rather from
an offiline buffer, the reason for this is if you read from frame buffer,
you will get trash pixel value if your window is overlaping, so it's better
to do it 'offline', but seems glreadpixel can only support framebuffer mode.
any tricks?
l**p
发帖数: 474
2
You can render to a P-buffer, and then read back.
New graphics cards support this feature.

【在 e****r 的大作中提到】
: can opengl read the rendered scene not from frame buffer, but rather from
: an offiline buffer, the reason for this is if you read from frame buffer,
: you will get trash pixel value if your window is overlaping, so it's better
: to do it 'offline', but seems glreadpixel can only support framebuffer mode.
: any tricks?

e****r
发帖数: 166
3
thanks man, seems i have to use wgl extension, never touched it before,
if i have time i will implement it.

better
mode.

【在 l**p 的大作中提到】
: You can render to a P-buffer, and then read back.
: New graphics cards support this feature.

l**p
发帖数: 474
4
to Init PBuffer
void InitPbuffer(){
m_glhdc = wglGetCurrentDC();
m_glhrc = wglGetCurrentContext();
//-------------------------------------------------------------------------
// Create a p-buffer for off-screen rendering.
//-------------------------------------------------------------------------
pbuffer.hpbuffer = NULL;
pbuffer.width = m_nWndWidth;
pbuffer.height = m_nWndHeight;
//
// Define the minimum pixel format requirements we will need for our
// p-buffer. A p-buffer is just like a fram

【在 e****r 的大作中提到】
: thanks man, seems i have to use wgl extension, never touched it before,
: if i have time i will implement it.
:
: better
: mode.

e****r
发帖数: 166
5
thanks again, i also found some sample code from google,
i didn't use windows api to program, pure opengl/glut,
so i have to figure out how to adapt it to fit my program,
the frame work is there already, shouldn't be too tedious i guess.

【在 l**p 的大作中提到】
: to Init PBuffer
: void InitPbuffer(){
: m_glhdc = wglGetCurrentDC();
: m_glhrc = wglGetCurrentContext();
: //-------------------------------------------------------------------------
: // Create a p-buffer for off-screen rendering.
: //-------------------------------------------------------------------------
: pbuffer.hpbuffer = NULL;
: pbuffer.width = m_nWndWidth;
: pbuffer.height = m_nWndHeight;

1 (共1页)
相关主题
问个问题:Re: loop, i finished a projectRe: Platform of 3D Animation
OpenGL里更新Texture的问题用openCV的怎么编简单界面,mfc?
Anyone use OpenGL in MFC?image morphing?
进来乐进来乐 :))Holland's brief list of hot topics in graphics:)
Graphic C libraryPlatform of 3D Animation
opengl rendering怎么样才能快速的生成三维动画啊?
glTexImage3D()Any suggestion for graphics acceleration under linux
help: an OPENGL problem...关于“texture compression”的话题
相关话题的讨论汇总
话题: buffer话题: opengl话题: frame话题: read话题: question