Skip to main content

Questions tagged [glut]

GLUT (pronounced like the glut in gluttony) is the OpenGL Utility Toolkit, available for C, C++, FORTRAN, and Ada. GLUT is a window system independent toolkit for OpenGL that implements a simple windowing API. Because of its ease of use, it is often used to learn how to write programs with OpenGL. Since it is closed source, some people have gone on to create newer, open source alternatives (two examples of this are Freeglut, and GLFW).

0 votes
0 answers
153 views

C++ Assimp Library Animations

I want to use Assimp skeletal animation in a GLUT program using the least possible libraries. I want to do the interpolation of the animation myself. How do I render a frame of the animation by doing ...
Opengraphicspros12's user avatar
0 votes
1 answer
140 views

Why won't my legs rotate at the top instead of the centre

As the title suggests, I'm battling with getting the legs of my model here to rotate properly. They rotate in the middle instead of at the top where the knee joint would be. So far I've tried ...
Fenrir Gaming's user avatar
-1 votes
1 answer
301 views

How can I add one OPENGL page to another when ENTER key is pressed?

I created one GLUT project which has my project's introduction page. When I pressed ENTER key, it should redirect to my front page of project which I created as another project.
user148583's user avatar
0 votes
1 answer
5k views

OpenGL convert mouse position to world coordinates without gluUnproject in Python?

EDIT: I changed the bottom left to -1,-1 and the top right to 1,1, and while I can draw objects within this range, I cannot map the mouse x,y to the world space. I have been trying to learn OpenGL and ...
Ian Rosenberg's user avatar
-2 votes
1 answer
85 views

Models /textures/music corrupted!

I'm making a 3d rpg game. Everything seems to work on other computer. But when I open my game in my computer, the polygons gets crazy everywhere filled with random polygons. Textures will get rainbow ...
ihatemyself's user avatar
0 votes
1 answer
198 views

OpenGL 2D Game Render Help

I just recently started using C++ and OpenGL and I am running into an issue. I am not totally sure what I am doing so could you please tell me what I am doing wrong and what I could improve? Here is ...
WolfHybrid23's user avatar
0 votes
1 answer
286 views

Can we flip znear and zfar so that positive z values increase away from the viewer?

I am confused about the projection matrix in OpenGL. i have a habit of writing the code as follows. ...
Utkarsha Khanal's user avatar
0 votes
2 answers
6k views

Drawing a simple triangular prism in opengl in 3D

Is there a simple way to draw a triangular prism in opengl? I'm using lighting and a non-orthographic camera. I basically need a 3d object, not just vertices. edit: well I've tried searching, and I ...
842Mono's user avatar
  • 105
0 votes
1 answer
11k views

How can I use keybord keys like W, A, S and D in GLUT and C++?

I want to use W, A, S and D keys like GLUT_KEY_LEFT. My Code: ...
MrAnonymously's user avatar
5 votes
1 answer
1k views

Loading screen OpenGL with glut API

I'm trying to make a loading screen. My idea is to have two threads working - one in the background loading the 'game' scene, one displaying 'load' scene. When building 'game' scene is finished, it's ...
matzar's user avatar
  • 163
3 votes
1 answer
625 views

How do I add freeglut to a Visual Studio project?

I am working on making a game for Windows in c++. I have previously made games for Ubuntu using freeglut, and I found freeglut for windows, but when I added it to the ...
William Thompson's user avatar
1 vote
1 answer
715 views

Transform existing C++ OpenGL project from glut/glew to GLFW

Is it possible to easly transform existing glut/glew to GLFW API?
matzar's user avatar
  • 163
1 vote
1 answer
699 views

C++ turning towards mouse

I'm creating an attack boat game in c++ and I have an issue with my boat following the mouse around the screen. My plan is to have the boat follow the mouse more like a boat (slow rotations, instead ...
reemq8's user avatar
  • 13
0 votes
1 answer
748 views

How do I implement object picking, using OBB in OpenGL?

I am trying to make 3D drawing software. I wanted to have the drag feature so I am using object picking using the OBB algorithm. I am facing problems in understanding the algorithm, and my ...
dkoder's user avatar
  • 1
1 vote
1 answer
898 views

Creating and Destroying OpenGl objects dynamically

I was trying to build a game like this and i want to create and destroy these ships at runtime , I have used GL_QUADS and used an image to plot over the QUAD, how can I dynamically create multiple ...
Django's user avatar
  • 45

15 30 50 per page
1
2 3 4 5 6