The glut tag has no wiki summary.
0
votes
1answer
45 views
Freeglut: Functions missing
I'm currently learning OpenGL (in class) and we're using freeglut 2.8.2, which works just fine (using Visual Studio 2012). As an additional learning resource I'm reading the "OpenGL Superbible, 5h ...
-5
votes
1answer
114 views
multiplayer game in openGL [closed]
what is the easiest way how to make network communication in openGL/glut? Does anybody know any good tutorial for beginners? thanks
(or is there any simpler way then openGL?)
1
vote
1answer
116 views
GLUT Window not responding
I'm trying to calculate the delta time of my program. In main, I call:
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(250, 250);
...
1
vote
2answers
387 views
Frame timing for GLFW versus GLUT
I need a library which ensures me that the timing between frames are more constant as possible during an experiment of visual psychophics.
This is usually done synchronizing the refresh rate of the ...
4
votes
3answers
1k views
What animation technique is used in 'Dont Starve'?
While playing a few games in my personal time off development I've stumbled across a survival 2D/3D survival game. The game was apparently made in SDL and GLUT (Dont starve) but what really amazed me ...
1
vote
2answers
435 views
Rotating 2D Object
Well I am trying to learn openGL and want to make a triangle move one unit (0.1) everytime I press one of the keyboard arrows. However i want the triangle to turn first pointing the direction where i ...
2
votes
1answer
2k views
How does gluLookAt work?
From my understanding,
gluLookAt(
eye_x, eye_y, eye_z,
center_x, center_y, center_z,
up_x, up_y, up_z
);
is equivalent to:
glRotatef(B, 0.0, 0.0, 1.0);
...
1
vote
2answers
564 views
Simple OpenGL program major slow down at high resolution
I have created a small OpenGL 3.3 (Core) program using freeglut. The whole geometry is two boxes and one plane with some textures. I can move around like in an FPS and that's it. The problem is I face ...
0
votes
2answers
627 views
OpenGL align grid like glOrtho but with gluPerspective?
Using gluPerspective makes OpenGL's grid really messy and rather hard to use especially when trying to do mouse input. The grid that perspective uses is completely messed up compared to the grid you ...
0
votes
2answers
944 views
OpenGL: glGetError() returns invalid enum after call to glewInit()
I use GLEW and freeglut. For some reason, after a call to glewInit(), glGetError() returns error code 1280. Reinstalling the drivers didn't help. I tried to disable glewExperimental, it had no effect. ...
2
votes
2answers
280 views
VBO triangle not rendered using Freeglut Opengl 3.x, not understanding the weird fixes
I've just started to learn OpenGL 3 and I'm using freeglut for the context. I ask for a 3.3 context using:
glutInitContextVersion(3,3);
glutInitContextFlags(GLUT_FORWARD_COMPATIBLE | GLUT_DEBUG);
I ...
0
votes
2answers
86 views
Accessing struct in glut
I have to write a game for a uni project using openGL / glut. I am just going to use a generic example code as I'm just looking for a solution to one specific problem:
Using glut, I have to call a ...
6
votes
1answer
144 views
Excluding Background from Color Picking
I've implemented picking based on color coding, but I don't want the background color to be pickable. Is there any way in openGL (2.x) to exclude the background color? For some reason, doing ...
1
vote
0answers
319 views
Countdown Timer for Racing Game
I want to make a countdown timer for my racing game such as "3... 2... 1... GO!" I'm using GLUT, OpenGL, and C++. I was wondering what the most appropriate method to handle this in C++. clock()? ...
0
votes
1answer
385 views
Top-Down Racing Game C++
I'm creating a Top-Down Racing Game in C++ using GLUT/OPENGL and SOIL first of all I just wanted some opinions on how the track should be done. I was thinking about using a tile-map and so far I've ...
5
votes
3answers
631 views
Rotate a particle system
Languages / Libraries in use: C++, OpenGL, GLUT
Okay, here's the deal.
I've got a particle system which shoots out alpha blended textures to produce a flame. The system only keeps track of very ...
5
votes
5answers
1k views
Is GLUT obsolete?
A question was asked about good, up-to date OpenGL resources, one of the answers was a link to a tutorial about modern OpenGL programming.
The tutorial in question uses GLUT and GLEW, but I have read ...
0
votes
0answers
521 views
Can not run simple GLUT code [closed]
I want to start learning OpenGL. So I got myself the Superbible and followed all instructions. Here's the first code sample:
// Triangle.cpp
// Our first OpenGL program that will just draw a triangle ...
1
vote
1answer
161 views
Change flag if mousepress while on loop
I have this program that starts a loop when the key is pressed
The problem is that when i start the loop, i want to be able to stop it halfway with my mousepress.
The problem is that it doesn't ...
6
votes
2answers
2k views
Why should I not use glTools/glut when developing complete applications?
I've started learning how to use OpenGL a while back, using the OpenGL SuperBible, Fifth Edition, and I've had people arguing about the fact that the book doesn't really teach how to use OpenGL but ...
4
votes
1answer
5k views
How to get and use delta time
I have mice looking and walking in my game, but they are very slow and hard to use. I think it's because I'm using fixed speed. I heard that in big projects developers use delta time. How do I ...
2
votes
1answer
2k views
Converting 3D coordinates to 2D and back?
I'm wondering if there is a simple way to convert 3D coordinates to 2D coordinates. Also, if it's possible, to convert in the reverse direction.
I'm using OpenGL(GLUT) in my C++ project.
I am also ...
1
vote
2answers
747 views
Having a slight problem moving my camera based on time passed using GLUT/OpenGL
Before anyone asks, this is for a university project and I have to use GLUT. I'm not tagging this as homework because this is not a requirement, nor will I have extra points for this.
With GLUT, for ...
4
votes
3answers
2k views
Trapping mouse inside window in OpenGL with GLUT?
I perfectly understand that GLUT is limited and the following problem can't probably be solved with OpenGL/GLUT, but since I don't know exactly if it can or not, I better just ask. Maybe I'm doing ...
3
votes
2answers
3k views
Constant game speed independent of variable FPS in OpenGL with GLUT?
I've been reading Koen Witters detailed article about different game loop solutions but I'm having some problems implementing the last one with GLUT, which is the recommended one.
After reading a ...
0
votes
2answers
230 views
Manually invoke key callback in (free)glut
I have to watch the keyboard during rendering.
So, is there a way to force glut to invoke the Keyboard callback immediately?

