434 Topics
| |
I tried to #include <GL/glut.h> but when I compile, I get a [link error] at WinMain@16 or Win@16 (I forgot). I don't exactly know why and I don't know what to do either. Can somebody help please? Do you need that header file? (To fix it?) Thanks in advanced. | |
I have to make a simple 3d game. The game scenario consists of a spacecraft that is attacking the home planet by firing rockets from along its length randomly. The game player moves the baton up and down to stop the rockets before they reach the planet. The star field … | |
I am using VS2008 with TaoFramework's freeglut and OpenGl Can someone help me? I always get "CallbackOnCollectedDelegate" error when I apply this rotation and scaling with mouse and timer on my 3D Tetris game project, but if I don't apply timer the scale and rotate will be out of control.... … | |
I was running a game I wrote in python with pygame on my Mac 10.6 machine and I notice this Warning. "Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz." So does anyone … | |
Hi, C# in VS2008 using Tao.Freeglut and Tao.OpenGl I am required to create a 3d Tetris game. I have a menu named BuildMenu [CODE=C#] private static void BuildMenu(){ submenu1 = Glut.glutCreateMenu(selectMessage); Glut.glutAddMenuEntry("New Game(N)", 1); Glut.glutAddMenuEntry("Reset(R)", 2); Glut.glutAddMenuEntry("Quit(Q)", 3); Glut.glutAttachMenu(Glut.GLUT_RIGHT_BUTTON); } [/CODE] using these code I can make a menu pop … | |
I am trying to create 2 different rendering windows using OpenGL. My code looks like: [CODE]void display1(){...} void display2(){...} void init(){... //some declarations and function calls pertaining to display2} int main(){ glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(1024,512); glutInitWindowPosition(0, 0); glutCreateWindow("Window 1"); glutDisplayFunc(display1); glutPositionWindow(520,20); glutCreateWindow("Window 2"); init(); glutDisplayFunc(display2); glutMainLoop(); return 0; }[/CODE] The … | |
I am using Visual C++ Express Edition on Windows, and I am look at the windows task manager and I noticed that every second, in the process tab the memory of my C++ program increases about 8 K when I am not even doing anything. Also, I've noticed that if … | |
Hi guys, I'm planning to make a car game & for that I'll use Microsoft Visual C++ 2010 for programming, directX 10 for the graphics, & Nvidia PhysX engine for the physics. The problem is that I can't find any tutorial of directX and Nvidia PhysX, I only find of … | |
Hi, I need some help with OpenGL and rotation. I have a 3D door surrounded by a holder. The holder needs to move with the door and rotate when it's not on the floor. After that the door must be able to open without affecting the holder. It's based on … | |
Using GLUT, moving my mouse in the display window causes the animation to increase in speed. When running at an initial 60fps, moving the mouse causes the animation to accelerate and increase to 1000fps. My data might be wrong, but there is definitely a timing issue. I've tried implementing a … | |
i convert some opengl code from visual c++ 2006 to visual c++ 2010 i mean visual studio framework. problem is in visual studio 10 they r running but mainloop is not working, i mean windows r supposed to wait for key input but it shows and gone at instant. no … | |
Hello, I am using OpenGL in C++ to create graphics in a program of mine. In the window, there is the main section and a sidebar. My problem is that I do not know how to relocate the vanishing point in my window. Currently, it is at (0, 0), which … | |
Hi All, I am working on a graphics project which involves simplification of images using triangle decimation. I am coding along the lines of [url]http://mgarland.org/software/qslim.html[/url] and [url]http://jsomers.com/vipm_demo/meshsimp.html[/url]. The problem is that for the ply file that i have and the implementation that i did, there are small triangles spewed across … | |
Hello, I have library opengl32.dll but when I run my OpenGl application, it says that opengl.dll is not found. But opengl.dll is old and on other computers it works with opengl32.dll . Why application wants opengl.dll instead of opengl32.dll? So I tried to download all that libraries it wanted - … | |
| Heya, I just wanted some help with using vertex arrays. I wrote a Q3BSP map loader and this is the code that does the rendering, and it works as intended: [code=c++]glBegin(GL_TRIANGLES); for (int i = 0; i < curFace.meshVertexCount; i++) { int meshIndex = meshvertices[curFace.meshVertexOffset + i].offset; glVertex3fv(vertices[curFace.vertexOffset + meshIndex].position); … |
i write a function in c++ that take the name of obj file ... can you help me by tell9ing me how to read data using "in" and why his problem occur | |
I'm really frustrated right now because I've been looking all over the web on how to set up OpenGL to work with Microsoft Visual C++, but it seems like each website I find wants me to do something different. I feel like I'm missing something here...like I'm overcomplicating it. I … | |
Hi, I've just started reading about OpenGL and I found out that this is a really low level api. I've created some simple 2d games in xna and sfml and now I want to try my hands at 3d and OpenGL. I've already learned that I can't simply load a … | |
[URL=http://img690.imageshack.us/i/12946613.jpg/][IMG]http://img690.imageshack.us/img690/7592/12946613.jpg[/IMG][/URL] why is there a hole in my cube when I rotate it like this? colors: front side is red back side is white left side is blue right side is green top side is yellow bottom is teal | |
I have installed windows 7 which has a built-in intel graphics media accelerator. But there is no option available to check and change its properties. So the problem is that i am building a 3D game in OpenGL but when i run it a message appears that this program has … | |
Hey all I have this program that is supposed to output a stickfigure. I got this from my game programming elective class (which I now regret enrolling to) and the professor told us to work on it in a way that the class called "example" with the function render should … | |
I'm taking a graphics class, and we have just started using OpenGL. My professor gave us a simple program that draws a purple line, that we were supposed to compile. I took it home and tried to compile it, and i got a lot of undefined symbol errors. Any help … | |
hey guys, when i create and place object "A" for example at (0.0, 0.0, 0.0) and "B" at (0.0, 0.0, -10.0) the second object (B) "appears" to be in front of the first object (A) when the camera is at (0.0,0.0,+50.0) looking at -Z which is wrong because A is … | |
Hi to all! I want to write a c# application that plays an audio/video AVI file, and shows in overlay an aplha rectangle realtime generated (from a serial port). I'd like stability and good performance and i'm evaluating various libraries (EgmuCV, DirectShow, WMP,...) but i've not decided yet. Please someone … | |
Hey, at my camp, I made a random 3D maze gen off of OpenGL So, I downloaded OpenGL 3.7, and I placed the glut.dll in the right place, the header file in the right place, the lib file in the right place etc. But my conflict is that I used … | |
Hi guys....I want to make a simple game using openGL Should I go for GLUT or MFC...don't know anything about any of these.... please refer me to some ebooks on net or tutorials (not very advanced please) | |
Hello, all! :) Let me preface this by saying that I am a computer science student with only a rudimentary introduction to C++ so far, having worked mainly in Java up until now. I apologize if this is an overly simplistic question. A relative of mine has asked me to … | |
Hello all, My question is, when using Visual Studio, and compiling this piece of code: [code] int main(int argc, char *argv[]) { SDL_Init(SDL_INIT_EVERYTHING); SDL_SetVideoMode(640, 480, 32, SDL_OPENGL); SDL_WM_SetCaption("OpenGL Awesomeness", NULL); //run time error here SDL_Event event; while(event.type != SDL_QUIT) { SDL_PollEvent(&event); RenderScene(); SetupRC(); SDL_GL_SwapBuffers(); SDL_Delay(60); } SDL_Quit(); return 0; } … | |
Hey all, I am trying desperately to create a cube using VBO. I have the correct vertices that must be used yet when I render it, it only displays one part of the face of the cube (which in this case is a half triangle, since a square is made … | |
Hello. I have started to learn OpenGL in C/C++ and I want to use 2D graphics. My operating systems are Windows XP and Linux (Ubuntu). How do I load a image from a file and draw it on screen? My image files are png and jpg. Can I write a … |
The End.