Questions tagged [freeglut]

freeglut is an open-source alternative to the OpenGL Utility Toolkit (GLUT) library.

freeglut is an open-source alternative to the OpenGL Utility Toolkit (GLUT) library ().

Resources:

610 questions
0
votes
1 answer

How to draw a robotic arm which can pick objects in OpenGL?

I am having trouble in implementing a robotic arm which can pick objects, because of the glTranslate(), glRotate() calls I have in my implementation each and every part of the robot is dependent on the previous part. Example: void drawRobo() …
Bounty Collector
  • 615
  • 7
  • 19
0
votes
3 answers

Having many glut errors

I have found this code and wanted to try on my machine : #include static void RenderSceneCB() { glClear(GL_COLOR_BUFFER_BIT); glutSwapBuffers(); } static void InitializeGlutCallbacks() { …
jason
  • 6,962
  • 36
  • 117
  • 198
0
votes
2 answers

OpenGL shape not rendering

I am attempting to render a sphere in OpenGL. Unfortunately, the screen always comes up with only the background. I've tried reorienting the camera to no avail (although I may be doing it wrong). Any insight would be appreciated. Here is the…
Martin Wickham
  • 442
  • 4
  • 9
0
votes
1 answer

OpenGL/GLUT view contained in WinAPI window

What I'm trying to achieve is something like this - that is, an OpenGL view contained in a standard window, alongside some buttons, menus, etc. However, I'm trying to use non-managed C++ and WinAPI to accomplish that (project requirements), and, if…
Maciej Stachowski
  • 1,708
  • 10
  • 19
0
votes
1 answer

Strange behaviour of gluUnProject trying to convert mouse coords to opengl coords

I tried to convert the mouse coords in click to opengl coords. Actually it seems to work, but when I uncomment a cout-line that I just wrote for testing it sets my vars to not a number -nan. How does it happen? How can I fix it? //global: GLdouble…
Karl Adler
  • 15,780
  • 10
  • 70
  • 88
0
votes
1 answer

Compile a static freeglut library .lib in VS 2012

k so this is sort of a silly problem but I'm trying to write a game and I want to use free glut but I can't find a single place to download the .lib and what I could find is a project file that compiles a .dll then after that I don't even know how…
user1895629
  • 147
  • 1
  • 1
  • 8
0
votes
1 answer

Setting up OpenGL - it won't work

I just bought a new laptop with windows 8 64bit and I am using Visual Studio 2012. I did the usual procedure with installing a 3d party lib just as I installed them on my previous PCs: Download freeglut, glew, glfw, glut, sdl Copy headers into…
Geto
  • 191
  • 4
  • 15
0
votes
1 answer

Rendering smooth spheres and cylinder with gluSphere() and gluCylinder()

I am using OpenGL with C++ (but without shaders and GLSL) and drawing spheres (the pool ball) and cylinders (the cue stick) using the glu library functions to draw them. I am using glBindTexture() to bind the texture and loading the texture using…
viraj
  • 1,784
  • 4
  • 35
  • 52
0
votes
1 answer

lines not rendering after switching to freeglut

I had a project that i was using glut in - however i went to free glut in order to be able to use glutBitmapCharacter However when I did that what I was using to draw a grid no longer works //This creates the grid for(float f = -1;f<1;…
user1814893
0
votes
2 answers

How to properly link and include libraries?

It's the first time I prepare a pretty complex application in C++ (Visual Studio 2010) and I have serious linking problems which gave me a solid headache (maybe cause I've never got what it's all about). I'm implementing fluid flow simulator…
aerion
  • 702
  • 1
  • 11
  • 28
0
votes
4 answers

Entire object rotates

The idea from this code is to let a windmill like structure to rotate, the problem is that the entire object rotates instead of the windmill fan itself (not the red triangles only). here is the code (I use the keys to control speed) #include…
0
votes
1 answer

QT GUI Development along freeglut renderer

for the past few weeks I've been developing custom renderer with freeglut and glew using VS 2010 Express, this renderer will be a part 3d editing tool. Now the time came to pick a right GUI toolkit, I went for QT having heard all the good stuff…
MrDanTheMan
  • 112
  • 7
0
votes
2 answers

Build error when trying to run an OpenGL example in VC

What I can''t understand is why the both 2 individual .cpp files compile but the solution does not build. The code that won't compile even though I follow the instructions is // Two-Dimensional Sierpinski Gasket // Generated using randomly…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
1 answer

glutInitContextVersion

I'm having some trouble with freeglut's "glutInitContextVersion" function. When I'm using 3, 1 as parameters, my geometry is drawn. However when I use 3,3 (which is the highest version of OpenGL my graphics card is supporting) no geometry is…
Schnigges
  • 1,284
  • 2
  • 24
  • 48
0
votes
0 answers

using your visual studio 2012 c++ .exe on computers that don't have the .dll(s)

So I'm making a game using c++ glut and glew, I installed 4 different .dll files into my system folder 32bit and 64bit for both, so now I'm wondering, since I moved the .exe to another computer and it couldn't run, can I create an installer somehow…
Foo Smith
  • 73
  • 2
  • 7