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

OpenGL texture depth (clipping textures)

I am having an issue with textures showing through textures that are in front of it. I am building a maze, and textures on walls behind the walls closest to the camera are showing through. How do I go about fixing…
JayBee
  • 540
  • 1
  • 5
  • 22
0
votes
1 answer

Open GL displays blank window on simple 3D line

#include #include void vertex() { glLineWidth(5.0); glBegin(GL_LINES); { glColor3f(1,0.5,0.0);//colour added glVertex3f(0.0,0.0,0.0); glVertex3f(0.0,5.0,9.0); } glEnd(); glutPostRedisplay(); } void…
user3474409
  • 55
  • 2
  • 10
0
votes
1 answer

How to make a hole on top of the object in openGL cubestack?

i want to make a hole in openGL cube.i have tried certain methods like using stencils and alpha blending.but problem with stencils is it is dividing and displaying the only half part.My requirement is i have to stack cubes and should make a user…
0
votes
4 answers

OpenGL translate not working

Okay, so my program opens a file, reads in xyz-points, then draws a line strip out of it. I originally had this program written in SharpGL (implemnted as WPF window) and it worked, but not well due to using immediate mode, so I have moved onto…
TheBlindSpring
  • 631
  • 5
  • 22
0
votes
1 answer

GTK+ Threading with OpenGL's GLUT/FreeGLUT

I am fairly new to C/C++ programming, so please excuse me if something sounds stupid to you... I am currently working on a Visual Studio C++ 2010 project that involves opengl, glut/freeglut, and gtk+. The OpenGL is used to take an input image,…
0
votes
1 answer

Issue displaying OpenGL terrain mesh in C

I am having issues making my openGL terrain display in the window. I just get a see-through window, and I'm not sure what I'm missing. Here is my code: #ifdef __APPLE__ #include #else #include #endif #include…
JayBee
  • 540
  • 1
  • 5
  • 22
0
votes
2 answers

In C++, OpenGL, Glut, how to bind image.c to a texture, where image.c comes from Gimp>Export>C source code

So I've spent past two days looking through different kinds of 'solutions' to my question via google, there aren't all that many and the ones I've find don't seem to work. I'm exporting a small test image as .c resource file from Gimp, it's size is…
YellowPeak
  • 20
  • 2
0
votes
2 answers

How to manipulate data using GLUT's callbacks

I would like to alter a vector using glut's mouse callback (conditionally adding/erasing to/from it), however I can't pass any extra arguments to the callback function, and glutMainLoop() which handles all the callbacks takes no arguments. The only…
lightandlight
  • 1,345
  • 3
  • 10
  • 24
0
votes
1 answer

Is there some kind of blank slate openGL and freeglut project in VC++?

I'm trying to set up a project with freeglut and openGL for an assignment, and I haven't touched c++ in a while, so I'm about to blow my brains across my screens trying to configure dependencies, and figure out which set of conflicting instructions…
NathanTempelman
  • 1,301
  • 9
  • 34
0
votes
1 answer

Issues with basic OpenGL rendering?

I'm a complete beginner with OpenGL, just trying to learn (starting with freeglut for the moment). So far I have the following code that should draw some basic 3D objects. The problem is that whatever I put in the render function (although it does…
Eugen
  • 1,537
  • 7
  • 29
  • 57
0
votes
1 answer

Problems with Shaders in OpenGL

I'm trying to use stuff like glShaderSource in C++. Visual Studio says that functions like glCompileShader or glCreateProgram dont exist. I use FreeGLUT to include OpenGL. Does anybody have an idea how I can fix this?
user3075425
  • 332
  • 1
  • 6
  • 23
0
votes
0 answers

Freeglut crashes after scanf in W8.1 and VS2012

I'm finishing a project for college in C using freeglut (2.8.1), GLEW 1.10.0, Visual Studio 2012 and Windows 8.1. It's nearly done but for some reason I can't read from console after something has been drawn. For example, I draw something and then…
te-x
  • 11
  • 4
0
votes
0 answers

SOIL Library Linking Errors

I'm trying to use the SOIL library with freeglut and glew. I'm using Visual Studio 2012 on a Windows 8, 64bit laptop. I'm getting these errors: 1>libSOIL.a(stb_image_aug.o) : error LNK2019: unresolved external symbol __alloca referenced in function…
Numeri
  • 1,027
  • 4
  • 14
  • 32
0
votes
1 answer

Why is Windows 8.1 and freeglut not fitting draw calls into window (window cutoff)?

I am experiencing some undesirable behavior while running these OpenGL examples (click the download to get access to the visual studio solution). Everything compiles correctly, but when running tutorial 3, the window cuts off the top and right side…
0
votes
1 answer

Specular Light appears on both sides

I have a very strange behaviour of specular(phong light model) light. It seems to be appering on both sides of all objects. Does anyone know what could be the issue ? The actual calculation seems to be alright, as I can see that the light changes…
tvoloshyn
  • 407
  • 8
  • 22