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…
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…
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…
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,…
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…
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…
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…
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…
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…
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?
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…
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…
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…
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…