434 Topics

Member Avatar for
Member Avatar for GDICommander

Hi, everyone! I'm having problems with the implantation of a free camera in a 3D world. For now, I'm using the A/D/W/S keys to make the camera go right, left, forward and backward. The problem is that I don't see the effects of the forward and backward movements. Even with …

Member Avatar for MattEvans
0
2K
Member Avatar for Mearah

Hey, is there somebody who tried to use pyOpenGL with wxPython? I want to have a GUI, where I have a frame integrated, that shows a 3D image computed by an OpenGL algorithm build in the PyOpenGL environment. Mearah

Member Avatar for Mearah
0
666
Member Avatar for cbraleyrun

Hello everyone, I have recently witten a ray tracer for a school project (I am working with Windows XP). Currently, I am simply writing my images out to .bmp files. However, I really want to display them on the screen using OpenGL and GLUT. All the images created by my …

Member Avatar for Muhammad.abid
0
197
Member Avatar for Neo7

Hello everybody, I hope I can explain myself clearly. I would like to design a preview for a program that print some data on a special card. Because the user can choose where to print the data on the card, I think it would be useful to give him a …

Member Avatar for Neo7
0
156
Member Avatar for tomtetlaw

I am doind a tutorial, here is my code: [code=c++]#include "functions.h" #include <glut.h> #include <stdlib.h> //this is the function with the error: void HandleKeyPress ( unsigned char key, int x, int y ) { switch ( key ) { case 27: // escape key exit ( 0 ); } } …

Member Avatar for MosaicFuneral
0
63
Member Avatar for tomtetlaw
Member Avatar for OffbeatPatriot

I'm trying to make a program to view 3d volumes. Basically you start with a bunch of data from an ultra sound or mri and then you load it into a 3d texture. Then you have a cursor made of three components between 0 and 1, and when you draw …

0
62
Member Avatar for kipl20

hi, i am new to opengl and graphics programming, basically i have loaded in a MD2 file and stored the model as an array. what i would like to know is how would i go about animating key frames. some information on how i set up the model. // declared …

Member Avatar for kipl20
0
205
Member Avatar for newcpp

I want to plot a rectangle by mouse click in opengl. But I failed to do it, it's very comfued, by the way, the rectangle just exists in a flash, then disappear. [CODE] [COLOR="Red"]void OnMouse[/COLOR](int button, int state, int x, int y) { glRectf(a,b,0,-10); } int main(int argc, char** argv) …

Member Avatar for daviddoria
0
131
Member Avatar for arpitha_ks

I have developed bargraph using openGL , problem is that....when i give high range input, the bars are merging with one another... though the bars seems to be merged , the separation should be seen after zooming. Please suggest me some solution in openGL , such that the barwidth is …

0
51
Member Avatar for mrnutty

I am trying to rotate the object by a input of key. I dont know why the object is not rotating. I used glRotatef(x,0,0,1); //where x is declared as float : here is my code : [code] #include<GL/glut.h> GLfloat x = 10; void initGL() { glEnable(GL_DEPTH); glDepthFunc(GL_LEQUAL); glClearDepth(1.0f); } void …

Member Avatar for MattEvans
0
116
Member Avatar for tomtetlaw

I have looked all through the open gl website and i cant fine where to download the SDK? can someone give me a download link? i am using c++ btw

Member Avatar for hasbro
0
81
Member Avatar for eenceo

I've been having some trouble using OpenGl in Delphi. Can anyone tell me what I might have done wrong. [URL="http://farm4.static.flickr.com/3133/3305023396_a976b4499b.jpg"] Click here for a screen shot.[/URL]

Member Avatar for eenceo
0
131
Member Avatar for Icebone1000

Hi, im reding a book where the way it draw poligons are like that: [CODE] glBegin (GL_TRIANGLES); glVertex3f (0.0f, 0.0f, 0.0f); glVertex3f (0.0f, 1.0f, 0.0f); glVertex3f (1.0f, 1.0f, 0.0f); glEnd(); glBegin (GL_QUADS); glVertex3f (0.05f, -0.05f, 0.0f); glVertex3f (0.95f, -0.05f, 0.0f); glVertex3f (0.95f, -0.95f, 0.0f); glVertex3f (0.05f, -0.95f, 0.0f); glEnd(); [/CODE] …

Member Avatar for Nick Evan
0
128
Member Avatar for BestJewSinceJC

After some research I found this link [url]http://splainhow.com/jogl_eclipse.html[/url] which explains how to set up a project in Eclipse to use OpenGL with it. But I want to integrate the OpenGL libraries for JOGL with Eclipse so that I can import and use them with any projects. Does that make sense? …

Member Avatar for stephen84s
0
98
Member Avatar for urufukiba

im trying to make a program that reads a text file in the format: 2 polygon 3 90 90 90 90 90 90 polyline 2 12 80 30 15 (not the real numbers obviously) and have the program read how many things, what type, how many points for that type, …

Member Avatar for urufukiba
0
92
Member Avatar for mrnutty

hi, I am confused on why my texture came out a different color? I have a bmp file of a cloud, skyblue color on the background and white clouds. BUt when i load it on a square the color becomes pinkish for background and cloud is white? Why pink-ish? here …

0
53
Member Avatar for sciwizeh

Hi, I've been testing GLFW joystick, trying to write a simple program to rotate a cube with the joystick. The fact that I'm using GLFW may complicate matters for debugging, but it's the only OpenGL library with joystick support that i have found. I don't believe that it should be …

Member Avatar for MattEvans
0
1K
Member Avatar for mrnutty

hey, I am just learning textures in OpenGl, from a certain tutorial site : [URL="http://www.spacesimulator.net/tut3_texturemapping.html"]http://www.spacesimulator.net/tut3_texturemapping.html[/URL] the site had a good tutorial for texture, but after loading the .bmp picture, it goes to create its own function for vertex3f and such ( I think). In any matter, I have not learned …

Member Avatar for mrnutty
0
288
Member Avatar for mrnutty

i am writing a code that will rotate the polygon but it seem as if it is not working any help? [code] #include<iostream> #include<Gl/glut.h> #include<cstdlib> using namespace std; GLfloat fPent = 0.0; // for rotating pentagon; GLfloat fSqr = 0.0; // for rotating square; void handleKeyPress(unsigned char key, int x, …

Member Avatar for sciwizeh
0
128
Member Avatar for mrnutty

I am practicing lighting and smooth shading. THe problem is that this code only shines the light for front and the right side , but when the objected is rotated, it shines at constant position (the front and right) and not to the side that are on the positioned light. …

Member Avatar for MattEvans
0
107
Member Avatar for mrnutty

hi, I started learning openGl yesterday. I made a simple program that supposed to create a triangle and a square, but its not working properly, any help please? [code] #include<iostream> #include<Gl/glut.h> #include<cstdlib> using namespace std; void handleKeyPress(unsigned char key, int x, int y) { if(key == 26) exit(1); } int …

Member Avatar for mrnutty
0
116
Member Avatar for En-Motion

I need to write a program where a user enters a string and this string is converted to 3D text with additional animation such as rotation etc. The text should be drawn using polygons or cubes. Does anyone know of any good tutorials etc. where I could get some help …

Member Avatar for Ezzaral
0
415
Member Avatar for michinobu_zoned

[QUOTE=hieuuk;755193]Don't really understand though. How you wrote your game anyways? I'm writing a tutorial about this game using C# but with XNA instead of OpenGL. If you want I could send you the tutorial, I think they should be the same idea.[/QUOTE] I'm having a hard-time getting OpenGL installed on …

Member Avatar for MattEvans
0
192
Member Avatar for Gaspacho

Hi there, we are currently deverloping a simple game for school project. As title shows, I'm talking about space invaders game (we use OpenGL & C#). We have actuaally made the game run in the mode that everything is displayed as red or yellow circles (textures are not yet implemented). …

Member Avatar for hieuuk
0
347
Member Avatar for hgedek

I am searching that information: Using CGI scripts , an opengl application will be shown on the web browser. our opengl application will consist of objects like shperes,balls... user can control them using mouse from browser.so my question is : firstly i want to learn what i need to learn?how …

0
69
Member Avatar for Clockowl

EDIT for moderators: Yes that "one might think that swapbuffer is slow" was me. Heh. :D Could someone change the topicname to "Optimizing OpenGL"? Thanks. Hey guys, I'm trying to optimize this OpenGL program, so the problem isn't C, but the program is. The program loads a vanilla WaveFront .obj …

Member Avatar for veelck
0
1K
Member Avatar for Emerald214

1) This is a sample OpenGL program. 2) I got this error when the console window (black screen) shows: freeglut Error: Function <glutDisplayFunc> called without first calling 'glutInit' 3) VC++ 2008, WinXP OS, Win32 consolde app project, all libraries installed. [code] #include <windows.h> #include <gl/glut.h> void display() { // clear …

Member Avatar for pavel989
0
142
Member Avatar for Emerald214

1) This is a sample OpenGL program. 2) I got this error when the console window (black screen) shows: freeglut Error: Function <glutDisplayFunc> called without first calling 'glutInit' 3) VC++ 2008, WinXP OS, Win32 consolde app project, all libraries installed. [code] #include <windows.h> #include <gl/glut.h> void display() { // clear …

Member Avatar for MosaicFuneral
0
2K
Member Avatar for the_swan

hiiiiiiiiiiiiiiiiiiiiiiii i'v a problem with dowing a circle in opengl I want to drow a fram of circles but my circle function did not implemented this the code that I try #include <windows.h> #include <gl\gl.h> #include <gl\glu.h> #include <gl\glut.h> #include <math.h> static void redraw(void); int main(int argc, char **argv) { …

Member Avatar for Rashakil Fol
0
158

The End.