When i change it to
glActiveTextureARB(GL_TEXTURE0_ARB);
glBindTexture(GL_TEXTURE_1D,m_A2OTexture);
it shows the same output.
Type: Posts; User: qlizhi
When i change it to
glActiveTextureARB(GL_TEXTURE0_ARB);
glBindTexture(GL_TEXTURE_1D,m_A2OTexture);
it shows the same output.
Yes, i think it use texture m_A2OTexture, and then render it to a 2D quads. It is hard to understand. If you have time , you can download the source code.
hello, i have download an source code of GPU-based volume raycasting,which is based on Qt. And i upload it to my google code as below:
http://code.google.com/p/qt-color-de...downloads/list
I have...
The last question about this code is the main render code:
bool VolRenCore::Render()
{
glClearColor(m_BackgroundColor[0], m_BackgroundColor[1], m_BackgroundColor[2], 1.0f);...
haha~~ i got it. thanks a lot!
Thank you very much, but i still donot know what does "t1=(0.0-texel_zero.x)/texel_dir_norm.x" mean.
hello, i have download an source code of GPU-based volume raycasting,which is based on Qt. And i upload it to my google code as below:
http://code.google.com/p/qt-color-delegate/downloads/list
I...
You mean that i did not render the frame to texture?
I know i do not clear FBO and texture.
I use the transfer QImage to QPixmap, and show it in QLabel.
void VolRenCore::RendrToFBO()
{...
I rendered some graphics in QGLWidget, it works fine. And i want to store a frame to an QImage, so i add a button and the button code is below:
void VolRenCore::RendrToFBO()
{
GLuint fb;...
I got it and thanks for the help, i am now reading OpenGL 4.0 Shading Language Cookbook, do i need to read the orange book first?
Thanks a lot. But if i use 'color' in fragment shader , there won't have Lighting effects. And when i just use only fragment shader , it works fine.
798
So, what is the error?
Hi,
the main code is below, and the problem is the plane,cube, sphere, torus,cone and teapot were black. what i want is the items in different gray color.
the shader:
//passthrough.vert
void...
Hello,
I am a learner to opengl, and i write the codes below to test the grayscale.fs which is an example of chapter 17 in OpenGL Superbible. But the result was all the items were black.
...