Tnx guys. I've chosen the simplest solution. I will not delete the texture and let it go out of context when I delete the AGL context. That somehow solves my problem.
Type: Posts; User: matchStickMan
Tnx guys. I've chosen the simplest solution. I will not delete the texture and let it go out of context when I delete the AGL context. That somehow solves my problem.
Hi guys,
Instead of using glGenTextures() to get an unused texture ID. Can I randomly choose a number, say, 99999 and use it?
I will, of course, query:
glIsTexture( m_texture )
and make...
I might be stating the obvious here but have you tried playing with the alpha channel of glColor4d(r,g,b,a); ?
Hey tnx Dark Photon, those links were very helpful.
I've managed to setup the 3D stereoscopic view from the nVidia Control panel.
my app is still crashing though. I'll just keep debugging it.
Hi guys,
I'm trying to create a 3D app also. So I'll just do a recap of the things that you said to make it work:
1. Add the PFD_STEREO for the pixelFormat structure.
2. Draw one instance...
You've got a funny way of drawing ppm files. :P
Anyways if you want to fix your problem, just replace:
while (fscanf(fp, "%f", &number) != EOF)
with
while( y < Height )
Hi Guys,
I'm having a small problem with glEvalMesh.
I think Opengl3 will deprecate this but we're still hanging tough at 1.4 and I doubt we'll start programming 3.0 anything soon. Anyways I'm...
Apparently if you have a full-screen in exclusive mode, you're good to go with openGL apps and 3D vision.
you are almost there.
Just change this line:
x1=i/SIZE;x2=(i+1)/SIZE;
to something like:
x1=(float)i/SIZE;
Try disabling aero!
I've had this problem on two graphics cards. The Nvidia 9500GT abnd the Nvidia 9800GT. I've never been able to find out what the problem is.
My collegue has the exact same...
Hi Hiten,
OpenGL cannot, by itself, open a .prt file.
What you need to do is use some external library to read the file. And then apply the gl transformations in your openGL context.
I'm not...
you could also do
glScaled( -1.0, -1.0, 1.0 );
That's what I use. It shouldn't be that expensive on the GPU.
IMHO, you are going in a good direction.
I thought it was an edge blending issue. Anyways I'm glad your problem is fixed. :)
Hello TheAtlasProject,
did you come across this thread?
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=256768
Maybe that might be useful. :)
My reference:
http://www.talisman.org/opengl-1.1/Reference/glTexParameter.html
Some excerpts:
GL_TEXTURE_WRAP_S
Sets the wrap parameter for texture coordinate s to GL_CLAMP, GL_REPEAT,...
Add these two lines just after your "glEnable(GL_TEXTURE2D)" and you'll be fine. :)
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
glTexParameteri( GL_TEXTURE_2D,...
Yea you can use shaders on old intel chips.
But not GLSL. What you will need to use is 'fragment programs', not 'fragment shaders'.
A fragment program is a small piece of assembly code that...
Hi Phynix,
You need to give us more code for us to help you out.
That being said, if your polygons are on the same z-plane and you notice some flickering when rotating, this usually points to...
Based on the uploaded rendered images you sent, it seems as if the alpha channel is not being read properly. If you look at your image files the alpha of the the galaxies smoothly decreases to zero...
Try this site:
http://www.idfun.de/glut64/
I think the way you are loading your texture is wrong.
Are you using windows? Can you try reading your pngs with GDI+, or any other library for that matter?
It looks like the alpha channel is...
Hi Optik,
Could you please paste the critical portions of your code so we can have a look. It's hard to visualize what you want to do from your brief description.
hi cwzcwz,
Provided I understood you correctly, I think what you want to do it rather straight forward.
Just use glRotatef(..) calls to make your rectangle rotate. I'll assume you want your...
nice. :)
A quick hack to fix this problem. Put glut32.dll in the same folder as the executable.
Other than that, if if can't find the dll, the path must be wrong. :)