Hi to everyone. It's been a long time since I've posted anything in these forums but my latest activities have brought me back to the kind of programming I love.
I would like to write a pixel...
Type: Posts; User: dvm
Hi to everyone. It's been a long time since I've posted anything in these forums but my latest activities have brought me back to the kind of programming I love.
I would like to write a pixel...
First of all, you need a driver that has support for OpenGL 2.0. Then you can get the address of the function you want to use, and afterwards you use it.
It's a bit complicated. Unfortunately, I...
Check out glui
By getting a good book. A few suggestions:
1) OpenGL Game Programming (that's how I started, windows, oriented)
2) OpenGL Programming Guide (official opengl book)
3) Computer Graphics, A Top Down...
or you could use a glu quadric, check it out
No, I think everythink is ok, (though I usually put glut32.dll in /windows/system32, but this has nothing to do with compiling). The error you're getting, I believe is a bit silly and it's visual...
If you don't need to do this task several times per frame, you could use glReadPixels. This reads your window (or a portion, whatever you ask for it) onto an off-screen buffer. I suppose you could...
Welcome to the forum :)
I think you should be able to solve your problem by using:
glPushMatrix();
glLoadIdentity();
// do a new glTranslate, rotate, scale etc just for the font
//draw...
Well, you might be in for a dissapointment here. I don't think that glut can handle joysticks. SDL might be a better solution here.
But just to make certain, check the glut manual here
and see...
It depends on the transformation matrix. Try finding the red book online (it's an older version, but the basic stuff that you need is there). It's in this site somewhere.
In essence you should use...
I think you'd have to stop using glut and use an API that can handle simultaneous key presses, like DirectX or SDL. (I'm not sure about SDL, as I haven't used it but it should be there.) I believe...
It's really nice! Does anyone also know how I'd make the clear color transparent? I mean render the objects opaque but see behind the rest of the window. I tried glClearColor(0.0, 0.0, 0.0, 0.0) but...
Search for the OpenGL Game Programming book. Go to the errata page and try chapter 6 or 7 (might want to look at the table of contents to be sure). There's a good code example of how you can save a...
You're not using libraries (apart from C/C++) if you write your own image handling code. The header has nothing to do with the library.
Well, you could try a bitmap. You only need a header. Google about it. I don't know if the .raw format would fit your description as well.
If you're talking about glut go here
Hmm, something must've slipped through the cracks then :) Good job, finding it.
For the red book do a search for OpenGL Programming Guide. "red book" is just the nick, err..because it's red....
Have you created a 32-bit texture? You actually need an image (say targa) that supports transparency. I haven't ever changed the transparency values on the fly though. Another reason would be that...
I was only kidding with Java, but C/C++ rest in my heart :)
As for your problem you know the solution. And I wouldn't be so sure about your object staying at the center of origin. Since you...
Try to find a copy of the red book (OpenGL Programming Guide), might be in this site as well. There it states that the order you write down your transformations depends on whether you think in object...
Well, for one, I believe glViewport has no right being there. It should be along with the projection code in a resize-reshape method. Also, the problem probably occurs when you reset your projection...
Well, I can't offer any more advice. I'm sorry :(
Last chance: check for error in every frame, maybe this shows something.
Try to find an example that uses them. You can always experiment with the sizes you pass to them, to see what you like.
Well, how are you drawing your cubes? Could you post the code for cubes.draw_cubes()?
I haven't had much time with picking, apart from the redbook example, but my guess is that all 25 of them have...
Well, what would you use in your program to hold the vertices? e.g. for C++ I'd use a std::vector or something similar. Then you could use this to draw your objects. For example:
vector<float[3]>...