782 Topics
![]() | |
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, … | |
Ok i have a few questions. I'm fairly new to programming. Im starting to get a little functional with java, i can handle GUI's, threads, exceptions, 2d graphics, JDBC etc. I took a class in C++ only to find that I am not even close to producing graphics or GUI's … | |
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 want to write a program, which calculates and draws the path of a planet around a sun. Actually it just draws the planet and the sun (and the velocity and the gravity force vectors). The sun is still, it doesn't move, just the planet is moving. The planet … | |
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 … | |
OK, i recently got a few books on OpenGL, i also got Microsoft flight sim x, and a nice logitech joystick to use with it. so i want to try to figure out how to make OpenGL take input from the joystick. i haven't read much of the books yet … | |
Hey guys, I'm stuck on some undefined references to glut and OpenGL, even when I linked my projects with the correct libraries. Well apparently they aren't correct... I'm trying to compile this: [code=C] /* Copyright (c) Mark J. Kilgard, 1994. */ /* This program is freely distributable without licensing fees … | |
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 want to write a 3D virtual environment in c++ that can display videos on sides of a cube (using openGL is preferable). Also it has multi client and connect to the server that has a database of videos. the program should work online and can be displayed in web … | |
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 … | |
Well, i want to make an RPG (in the future it will become MMORPG). Anyway... I'll use C# and i haven't decided yet what graphical API I will use (DirectX, OpenGL, XNA, ..), but this isn't relative for my problem (an opinion would be good). Well, my doubt is: 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 … | |
Hi, hope someone can let me know what to do here... So, I just bought a new laptop for school and need it for architecture/modeling. I ended up with a vaio with an nvidia geforce go 7400 video card and (of course) loaded with vista home premium. The most important … | |
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 … | |
Hello, I am trying to make one patch transparent. What the documentation says about making only the specified object transparent is this: "alpha(object_handle,value) sets the transparency property only on the object identified by object_handle." However what I get is all pathces being transparent, even though I use ALPHA with a … | |
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) { … | |
i,m new members in this daniweb.2morrow is our final project about games using openGl.i,m so dissapointed bcause only today i know about this website.:( pray for me,k. | |
Hello all, I am a final year student developing a project on Image processing. I am thinking of using OpenGL for back-end processing. Is there any particular advantage in this choice like improved performance or ease-of-use? Are there any other options also available? I can code only in C/C++ & … | |
Hello, I am new to C++ and am not currently in a class teaching it. I am wondering well, basically, WHAT OpenGL is, how to operate it, a direct link of how to get it, and maybe some example code of where to get it? If someone could tell me … | |
How does vertexes work? I'd like newbie friendly answers and in detail :) PS: I've already tried to google it but i couldn't find any good answers. So no "omgz google is your friendz n00b" answers please. :) | |
Hello there! I'm trying to run C++ programs using OpenGL library on a machine with a nVidia video card. But... I'm getting this error message: nVidia OpenGL driver Driver component sizes mis-match. Retry to keep going. Cancel to exit. The same program runs smoothly on another computer with a very … | |
I'm writing a C++ project using OpenGL in Microsoft Visual Studio 2005. I already have code for importing a jpeg image, but I don't know how to place it on a plane in 3D so I can view it in either ortographic or perspective projection. Also, how do I set … | |
Hi All, I'm currently working on my project (which try to perform degree reduction for a Bezier curve). I've spent a long time trying to find library or useful class to help me perform matrix inversion. For example degree reduction in Bezier's curve (let's say from degree 3 to degree … | |
Hi, May I know how to declare a Class in C++ window application form? Below is my code and error as shown below as well. here is my class declaration: [code=cplusplus] public ref class CLoadObj { public: bool ImportObj(t3DModel *pModel, char *strFileName); System::Void ReadObjFile(t3DModel *pModel); System::Void ReadVertexInfo(System::Void); System::Void ReadFaceInfo(System::Void); System::Void … | |
I am trying to use sprites, which I made in the form of bitmaps, in my program. Is there a library that will allow me to easily display them? I tried to use OpenGL but my computer will not allow it to initialize. I would simply like to display bitmaps … | |
I'm a beginer in OpenGl. I downloaded glut 3.7.6 package but I didn't find glu.h, glaux.h, opengl.h, opengl32.h and gl.h in there. Where can I get it ? And if I've found it, how to set it so it can work well. I'm using VC++ 2008 Express. Please tell me … | |
Hi I have fiddled around with other GUI's such as pygame and wxPython but i wanted to use something a little more powerful when it came to 3D objects and i saw what PyOpenGl can do. But i spent ages looking for any help but i couldn't find any place … | |
Hi all, I want to have a MDI application with OpenGL enabled on child forms. additionally each form can have controls than OpenGL. I have tried Nehe's lessons but all of them have used an infinite loop to call glDraw function which can not be done in MDI application as … | |
Hi all, I want to created an MDI application in Managed C++.NET, which can use OpenGL. I have created an application VC++, which uses OnDraw function of CView class to render OpenGL drawings. But i am unable to find an alternate of CView class (actually some function like OnDraw which … | |
HI all, I am trying to add a 3D scene to my c# application, so I am using Tao libraries. I am not very experienced with c# and a complete beginner in OpenGL. At the end, I could open a window with my OpenGL graphic using Glut, but the problem … | |
Hi everyone, I am studying graphics programming using Direct3D in windows............To write a Direct3D program on windows..........I use the native Win32 API.........which includes all the datatypes, functions and other operations for the Windows OS & its windowing system.......... I wanna learn OpenGL so that i can develop graphics programming on … | |
Hey guys, I've written quite a large piece of code the past few days, and today I've cleaned it up a bit, divided it into functions (I know, bad, should've done it the other way around) etc. etc. The project is a simple 3D thingamadingy, the program is able to … | |
![]() | Hey, I am having a really weird problem with my OpenGL Program. When I compile it in Debug mode and run it through Visual Studio 6, it works fine, but when I run it from windows, it works fine until the part where you go to manipulate the camera of … ![]() |
I am using a G3 and mac 10.5.4. How can I get the latest driver for my graphics card, NVIDIA Corporation NVIDIA GeForce4 MX OpenGL Engine? thanks. | |
Greetings! I would just like to ask you guys something. I am planning to create my mini 3d game...Do you guys know any good steps to start with....I have programming knowledge in C, C++, Java, Javascript, Perl, Php and Openlaszlo... I am also studying LindenScript and OpenGL.... Can anyone provide … | |
how are graphic's API's created such as DirectX and OpenGL. And is using GDI which is the graphic portion of the winapi, a graphic API itself? or are you able to create your own with C++ for 2D rendering instead of using anyone elses. Or does writing an API involve … | |
I did Hello world about a month ago, (my first language was BASIC), and now im onto things like Templates and I got all of my classes pointers and filing stuff down fine...Im trying to get OpenGL and SDL going (I'm already doing pretty good with the Allegro library). Idk … | |
Does anyone know a good way to get a bitmap (or other picture file format) and put it on the screen using OpenGL??? I mean, that kinda thing is hard enough in the sissy, user-friendly syntax of JAVA. Anyone?...anyone?...Bueller? | |
I have 2 problems -- 1. When I try having IDLE list the modules of python it gives me this error: [code]Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> help() File "D:\Programs\Python\lib\site.py", line 346, in __call__ return pydoc.help(*args, **kwds) File "D:\Programs\Python\lib\pydoc.py", line 1648, in __call__ self.interact() File … | |
I may be dating myself, but anyone else care to open up to their past "like/love" of the computer erra to date? What do I mean? I mean, what thing or things did you find most appealing in computers over the years? Was it the creation of Linux or windows, … | |
For Visual Studio 2008. I am not sure if this is the right place for it, but maybe someone here can help me. I have my program set up for Open GL, I also want to put Open AL in there too. Now I scoured the net for tutorials and … | |
I am a new programmer but I am devoted to make a game. Can I make a game engine that have [I][U]software rendering and openGL[/U][/I] . With a [I][U]little bit of AI and dynamic lightning[/U][/I] and [I][U]sprites/models[/U][/I]. I am[B] not[/B] asking the ~~~~~ [I][U]like Half life or Quake engine[/U][/I], just … | |
Hi, I have seen in python`s help (the .chm file) that in the opengl section it has a code like this: import gl, GL, time def main(): gl.foreground() gl.prefposition(500, 900, 500, 900) w = gl.winopen('CrissCross') gl.ortho2(0.0, 400.0, 0.0, 400.0) gl.color(GL.WHITE) gl.clear() gl.color(GL.RED) gl.bgnline() gl.v2f(0.0, 0.0) gl.v2f(400.0, 400.0) gl.endline() gl.bgnline() gl.v2f(400.0, … | |
Well to start let me say that I'm only a newbie, as my status says, but after a year of C++ I have what I consider a pretty good grasp over the basics of the language. I'm still at school for the summer doing an internship and have a lot … | |
Hello. I am a relatively new python programmer, but I know my way around the language. I have decided to do some work with PyOpenGL -- I just finished a game that had to be in XNA, now I have a bit more free reign and I prefer to do … |
The End.