由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
_Graphics版 - help: an OPENGL problem...
相关主题
an opengl question想做一个桌布下垂的project练手
Platform of 3D AnimationOverCloud 由 loop 授予 Graphics 俱乐部权力
opengl rendering俺写的windows screensaver (转载)
Any suggestion for graphics acceleration under linux怎样建立cg的汇编环境?
glTexImage3D()GPGPU的笔记本
OpenGL里更新Texture的问题Nvidia Geforce Go 7150M支持OpenGL 2.0吗?
Anyone use OpenGL in MFC?Can opengl display a video in a window at >60fps?
Graphic C library我写的屏保程序
相关话题的讨论汇总
话题: gl话题: unpack话题: buffer话题: opengl
1 (共1页)
r*****y
发帖数: 507
1
I tried to get pixel value in frame buffer by glGetPixels function,
but failed.I don't know the reasons.
my code is as follows:
...
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glPixelStorei(GL_UNPACK_SWAP_BYTES,0);
glPixelStorei(GL_UNPACK_LSB_FIRST,0);
glPixelStorei(GL_UNPACK_SKIP_PIXELS,1);
glClearColor(1.0f, 1.0f, 1.0f, 1.0f) ;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glFlush();
GLenum errorcode;
// this window size is larger than 100*100.
l**p
发帖数: 474
2
you just cleared your color buffer,,..... so it is 0.

【在 r*****y 的大作中提到】
: I tried to get pixel value in frame buffer by glGetPixels function,
: but failed.I don't know the reasons.
: my code is as follows:
: ...
: glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
: glPixelStorei(GL_UNPACK_SWAP_BYTES,0);
: glPixelStorei(GL_UNPACK_LSB_FIRST,0);
: glPixelStorei(GL_UNPACK_SKIP_PIXELS,1);
: glClearColor(1.0f, 1.0f, 1.0f, 1.0f) ;
: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

1 (共1页)
相关主题
我写的屏保程序glTexImage3D()
我在数年前写的屏保OpenGL里更新Texture的问题
OpenGL能否方便实现自定义图形的移动,擦除和分层显示?Anyone use OpenGL in MFC?
我也请问一个multi-thread的问题Graphic C library
an opengl question想做一个桌布下垂的project练手
Platform of 3D AnimationOverCloud 由 loop 授予 Graphics 俱乐部权力
opengl rendering俺写的windows screensaver (转载)
Any suggestion for graphics acceleration under linux怎样建立cg的汇编环境?
相关话题的讨论汇总
话题: gl话题: unpack话题: buffer话题: opengl