155 Topics

Member Avatar for
Member Avatar for null_pointer

i do not find the freeglut.dll file in the freeglut binary package i just downloaded. I cant compile my opengl programs as my compiler says "freeglut.dll is missing from your computer. try reinstalling them.." solutions please.

Member Avatar for gusano79
0
150
Member Avatar for android_gl

I am trying to create a triangle in openGL 2.0 but some some reason background is shows up but no triangle. I am following this tutorial: http://developer.android.com/training/graphics/opengl/environment.html i have the same code as on tutorial but for some reason the triangle is not showing up. may be i missed some …

0
144
Member Avatar for nchy13

HI, I am trying to set the consecutive pixels to a specific color so as to obtain a line. Though, I know there is a built in function for drawing the line, but I am interested to do it without using any GL primitive. This is the display function as …

0
157
Member Avatar for Thundermunch

Hi i've been working on a piece of homework we're I've been asked to implement a 2d grid in opengl and extend Dijkstra's algorithm to A star, so far i've been able to get the 2d grid running with Dijkstra's algorithm with not too many problems but my current extenstion …

Member Avatar for mike_2000_17
0
288
Member Avatar for delta_frost

I have had a hard time setting up OpenGL to work with Visual Studio 2010,but no luck so far.I included `glut.h`,`gl.h`.I have linked the requisite `.lib` files in the Project Properties,but still I get this error `error LNK2019: unresolved external symbol _glutMainLoop referenced in function _main` ind six more like …

Member Avatar for delta_frost
0
322
Member Avatar for Navlag

So I have this OpenGL program that displays a cube using gluLookAt(0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); And it allows users to modify/rotate it along the x, y and z axis using input. Right now it looks it works pretty well, however, it terminates once the image …

Member Avatar for myk45
0
267
Member Avatar for Johnathon332

hey guys, I am currently having problems with my OpenGL ES 2.0 application. I think I may have done my matrices wrong im not sure, but I cannot see my quad rendered to the screen. I believe it is something to do with the matrices I have set up which …

0
147
Member Avatar for nousername19

Hey I have a problem regarding skewness of non square objects when i scale them with respect to screen size and then rotate them in an orthographic view on the z axis. This is my code for setting it up to draw. The problem i am facing is that when …

0
85
Member Avatar for Donna55555

Hey guys!! Can somebody help me... I cannot setup a glut project in codeblocks under ubuntu , it says The path you entered seems valid, but the wizard can't locate the include directory. This wizard cannot continue. -_-

Member Avatar for JasonHippy
0
1K
Member Avatar for Labdabeta

Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering: Code for opengl initialization: glClearColor(0.5f,0.5f,0.5f,1.0f); float …

Member Avatar for Ketsuekiame
0
263
Member Avatar for Doogledude123

Hey guys, I need a function that reads a text file and stores the character someway, (I am assuming a 2D Array would be best?) then a function that reads through the characters and if the char is something specific (like "X") then it would draw a square (QUAD) 10wx10h …

Member Avatar for Doogledude123
0
368
Member Avatar for Doogledude123

Im incrementing a value in a while loop, but its only incrementing when my mouse is moving. Any ideas? while (isAlwaysTrue) { value += 1; } Thats basically what Im doing.

Member Avatar for Doogledude123
0
1K
Member Avatar for 2hamed

I'm trying to write program in Python using PyOpenGL which I need to use glutMouseFunc for some mouse functionality but when I run the program I get the following error: Traceback (most recent call last): File "teapot.py", line 80, in <module> glutMouseFunc(mouseHandle) File "/usr/lib/python2.7/dist-packages/OpenGL/GLUT/special.py", line 137, in __call__ contextdata.setValue( self.CONTEXT_DATA_KEY, …

Member Avatar for 2hamed
0
723
Member Avatar for jackshannon4

shader.vert: #version 120 varying vec3 position; varying vec3 normal; void main() { position = (vec3(gl_ModelViewMatrix*gl_Vertex)); //get the position of the vertex after translation, rotation, scaling normal = gl_NormalMatrix*gl_Normal; //get the normal direction, after translation, rotation, scaling gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; } shader.frag: #version 120 varying vec3 position; varying vec3 …

Member Avatar for jackshannon4
0
170
Member Avatar for mauro.delazeri

I'm trying to visualize a model of lenticular images virtually with opengl pov-ray seen that it is possible by making an array of semi-cylinder lens in front of the square in POV-Ray to "play" Anyone know how to do with opengl? tks

0
69
Member Avatar for Fedhell

IM A COMPLETE TOOL PLEASE IGNORE / DELETE THIS POST Hello everybody, im currently trying to learn 3d game development (ive developed 2d games in the past, nothing this complex, i am a third year programming student). Ive been working on this project in my spare time for the past …

0
128
Member Avatar for BlinkOnly

I wrote a program to simulate a simple page flip animation in opengl and now i'm trying to replicate it with two images using texture mapping so that the second image appears on the "back" of the first image during the drag of the lower left corner of the page. …

0
151
Member Avatar for Vaspar

OpenGL GLUT **My question is at the end of this topic** 1) a) Use your logo you drew within a world coordinate space that has 0,0 at the center. You may choose any width and height for your world coordinate space, glut window and viewport. Be sure that you separate …

Member Avatar for Vaspar
0
774
Member Avatar for vaishvik.nakhashi

I dont know what goes wrong in this code... Help me here I simply want to save the initial and final positions after dragging the mouse... #include"iostream" #include<glut.h> class point1 { public: point1() { x=0; y=0; } int x; int y; }p[2]; int flag=0; void processMouse(int button, int state, int …

Member Avatar for vaishvik.nakhashi
0
2K
Member Avatar for gopi17

I'm an enginnering student, our lecturer has ask us to create an opengl app tat shows the bersenham so far i have derive the algo and the pixels...but i don't know how to draw a line between those pixels.. this is what i have so far void init(void) { glClearColor(1.0, …

Member Avatar for myk45
0
337
Member Avatar for Pankti Shah

I am making a project where i have a rotating and moving 3d cube and on click of any face of cube, that face should be enlarged. All the six faces of cube should have different images. I searched a lot but doesn't get any working. Any help regarding this …

0
110
Member Avatar for kelechi96

Basically I have created a sprite sheet/tileset with dimentions of 320 x 2048, the tiles are each 32 x 32. I've been able to load individual files with textures in them but I don't seem to be able to load textures from a sprite sheet. Any help ? Here is …

0
103
Member Avatar for tomtetlaw

My Ubuntu version is 12.04. I'm simply trying to include GL/glu.h in my program, but I get the error: `fatal error: GL/glu.h: No such file or directory` I include it like this: `#include <GL/glu.h>` I have libgl1-mesa-glx-dbg, libgl1-mesa-dev, mesa-common-dev all installed.

Member Avatar for tomtetlaw
0
135
Member Avatar for cool_zephyr

hello everyone, i've trying to make a simple object(e.g. a simple robot with arms and legs) in openGL..but i've trouble finding how to write all the vertices within the code..is there any tool we can use to develop the objects separately..and drag the vertice co-ordinates into my program?? thank you

Member Avatar for cool_zephyr
0
172
Member Avatar for LieAfterLie

I was following [this tutorial](http://www.swiftless.com/tutorials/opengl4/1-opengl-window.html) for my first attempt at OpenGL. All I'm doing is initializing an empty window. His VS 2010 code is [here](http://www.swiftless.com/?download=1%20-%20OpenGL3%20-%20Window). Using Dev-C++ as my IDE on Windows 7, and MS SDK 7.1, I get this error: [Linker error] undefined reference to `_imp____wglewCreateContextAttribsARB' ld returned 1 …

Member Avatar for DeanMSands3
0
1K
Member Avatar for Labdabeta

I want to use opengl to draw some stuff, not to the screen but to a data buffer instead. Is this possible? IE: uint32_t *data; glSetDrawTarget(data,GL_RGBA|GL_UNSIGNED_INT_8_8_8_8);//this is the line I cannot figuro out how to do glBegin(GL_TRIANGLES); //... glEnd(); //and now my buffer is full of custom data glSetDrawTarget(NULL,NULL);//reset to …

0
128
Member Avatar for SgtMe

Hi all, I have a simple OpenGL program (learnt from NeHe of course) and I've tried to implement GLSL shaders into my program. Currently, its meant to draw a cube with a shader and quit on escape. However, at the line **`GLenum program = glCreateProgramObjectARB();`** it stops responding and closes. …

Member Avatar for TTTHXC
0
245
Member Avatar for dark_sider_1

This is probably a really simple and stupid question, but when I try to "Build and Run" an OpenGL program on XCode, it seems to debug it and open the window for a split second and then close. There aren't any compilation errors and it finishes saying that the debugging …

Member Avatar for gusano79
0
254
Member Avatar for Labdabeta

I have an array of data of the form: union colour { unsigned int argb; struct{ unsigned char a; unsigned char r; unsigned char g; unsigned char b; }bigendian; struct{ unsigned char b; unsigned char g; unsigned char r; unsigned char a; }littleendian; }; struct sprite { int w,h;//stores the …

Member Avatar for Labdabeta
0
669
Member Avatar for Labdabeta

I am using code::blocks and have written a dll. I am currently testing it but am getting tired of having to compile it, copy the DLL, DEF, H and A files into a test project, and then compiling the test project every time I need to fix something. Is there …

Member Avatar for Labdabeta
0
220

The End.