434 Topics
| |
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 … | |
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 | |
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 … | |
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 … | |
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 ); } } … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 | |
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] | |
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] … | |
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? … | |
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, … | |
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 … | |
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 … | |
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 … | |
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, … | |
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. … | |
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 … | |
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 … | |
[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 … | |
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). … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) { … |
The End.