434 Topics
| |
Hi, I am writting a game engine for my fps game that uses C++ as the language and OpenGL as the renderer. I find though that the graphics are looking more like Half-Life 1 rather than Half-Life 2 (if you know what I mean). Even though both these games used … | |
I have reinstalled my compiler successfully (finally) and got right back to work. I have created a glModel class as follows: [CODE]class glModel { private: int numv; int numn; unsigned int model; unsigned int textu; unsigned int norma; float *vars; float *norm; public: glModel():numv(0),numn(0){vex=new float[1];tex=new float[1];nex=new float[1];} glModel& Vertex(float tx, … | |
Hello World ! I have problem regarding background music in my 3D scene demo in openGL..anybody knows a simple source code to load audio files in openGL? | |
Hey I am a real amateur and I am trying to teach myself and I have been following the tutorials at [url]http://www.youtube.com/watch?v=VJGqalveGmM[/url] and I am just not able to get it to work, any help would be greatly appreciated. This is the error I am getting, I have been doing … | |
Hi, I have a question and I apologize if it is too newbish. I have been for a while now trying to learn OpenGL but I cannot understand how its coordinate systems works. I know coordinate geometry as I did some math long ago as well as equations (linear, polynomial … | |
Hi, I am writing a game in C++ and OpenGL. My whole environment is based on cubes so I guessed bounding box collisions were best. I can currently move around and my program is detecting collisions (I used this tutorial: [url]http://www.3dcodingtutorial.com/Collision-Detection/Collision-Boxes.html[/url]). Now I want to make it so that when … | |
I decided to post this problem in a new thread. I have a simple program in OpenGL and it doesn't work. What happens is that a transparent window forms and when you hit the 'X' it says that the Release of the Device Context and Rendering Context failed. Here is … | |
ookay people, here is the code c++; im trying to read BMP image file. [CODE]#include <iostream> #include <fstream> using namespace std; void listing (void) { unsigned char pixel; int x, pix; ofstream debug("debug.txt", ios::out); ifstream inpaint( "source.bmp",ios::binary); if(!inpaint) { cout << "File not opened\n"; exit(1); } for(x=1; x<=54; x++) { … | |
Can somebody help me, I wish to learn OpenGL and I don't understand how to set it up. I am using a windows XP machine with Code::Blocks 8.2 and MingGW. How do I get OpenGL working? | |
When I put crosshair (glutSolidCube()) at screen centre..it is affected by MOdelview transformation...how to hold it at screen centre this cube...(crosshair)...help me ... | |
Hello World ! I have problem regarding displaying a text which should not be affected by model view transformation...I have to display a cross-hair at the center screen for targetting enemies...when I put cross hair in the middle of center, it gets affected by some model view trasformation...as in pC … | |
Hello everyone! I have found a really weird result when I display a 2D texture (with GL_QUAD) on the screen at a different size to what it normally is: E.G when I display a 64x32 image(texture) on the screen at 128x64 and it contains an alpha channel the pixelated borders … | |
Hello World ! How to load a Bitmap image or any other format in openGL ? I am so much confused where I need to begin my innings ? confused while studying lot of theories and concepts...plz can anyone tell me the steps from starting altough i have read some … | |
So, I've bought two books, one on DirectX 10 and one on OpenGL. The first one i bought was the directX 10 book, and NONE of the code compiled because of some LPCSTR error. So stupid me thinking it was another thing that microsoft goofed on i bought a book … | |
I am trying to render a car using OpenGL. The car has a chassis and 4 wheels. The chassis is simply a cuboid and the wheels are cylinders. I have their positions from the Bullet physics engine as openGL matrices. If I pass these matrices to glMultMatrixf() in turn and … | |
So I'm learning OpenGL on my own and I have to say I'm really liking it. I really have not been able to do much, you'd laugh if i told you how much i knew but are there any real techniques for drawing shapes? I'm having trouble trying to figure … | |
Hello World ! I want to move a rectangle from going one point to another point in openGl. I am reaching the position but movement is so fast when I execute the program..it already in reached state. how to add delay so that I can see moving rectangle. | |
I am currently writing a program that uses OpenGL and so it uses the include file: #include <GL/glut.h> Now when I try to compile and run the program I get this message in the error folder: "fatal error C1083: Cannot open include file: 'glut': No such file or directory" Lastly, … | |
I am a humble programmer who is about to lose his remaining sanity at trying to get FTGL and/or FreeType working with Visual Studio 2010. FTGL is version 2.1.2 and FreeType is version 2.4.4. Inside of the project directory I have freetype.dll and ftgl_dynamic_MT_d.dll, and I have linked to the … | |
Hey guys, I just started to try and use OpenGL and I wanted to run an example but I get linker errors. The code is just fine but it has linker errors says the console. Linker Errors/Console: [CODE] [Linker error] undefined reference to `glFinish@0' [Linker error] undefined reference to `wglSwapBuffers@4' … | |
So I'm beginning to move onto the OpenGL 3 phase. I found some source code and I've been playing around with it. How would I implement something with the same effect as glTranslate, but without using any deprecated coding? I'm trying to make a 2D game engine with it. I … | |
What is the difference between SDL and EGL ? Can we use OpenGL ES with both ? If my device has support for SDL or EGL then I hope I need to know any one of them. Kindly Help. :confused: | |
hello, I am new to clutter (and pyclutter). I have been trying to use pyclutter. I haven't found any good tutorial for it so far. I mean nothin that really explains properly. I saw a couple of example programs but when I tried to use pyclutter I dint get any … | |
I find the OpenGL Co-ordinate system really hard to use. I would much rather have things like glVertex2f(-100,-100) put a vertex back 100 pixels in the X and Y direction from the origin, instead of it being totally off the screen. Is there any way that I can do this? … | |
hello guys, i want my code to display the raw image "texture.raw", and at the same time, display a flashing text exactly besides it in a seperate viewport or with some other way. Please help me with this, as this code doesnt do that, it just flashes the image and … | |
Hi guys, I am doing a project wherein i have to make an OpenGL animation and its a Sainsbury advertisement and it kinda sucks till now. Now i really need to add images, viewports and be more creative. Following is the code till now, (yeah laugh at it...it sucks more … | |
Hey guys, Here's my problem: I've been following [URL="http://www.zeuscmd.com/tutorials/opengl/03-OpenGLWindow.php"]ZeusCMD tutorials on OpenGL[/URL], and when I tried compiling [ICODE]main.cpp[/ICODE], I get an initializer error. I am not sure what caused it, since it seems exactly the same as the example. I linked all libraries it tells me to (-lglu32 -lopengl32). I'm … | |
hey guys, i'm designing a satellite for my project....the thing is its looks kinda plain...so i read abt texture coor....but i'm not sure how to use it....could you help me out with this.... [CODE] glColor3f(0.5f, 0.0f, 1.0f); glTranslatef(0.0f,0.0f,0.0f); gluCylinder(pObj,5.0f, 5.0f, 10.0f, 24, 24); //drawing cylinder(but got holes...=(,must cover them up) … | |
Hey peeps! I'm getting into OpenGL and I'd really like to learn it. However, I'm frustrated with the license for GLUT so I'd like to go the Win32 route and hopefully learn more from this route. All the tutorials I've found so far for that though are from around 2001 … | |
Hi! I have a problem with SDL and OpenGL. I wrote a code to convert SDL Surfaces to OpenGL textures. Now I have a function to Draw a rect(with opengl) on a SDL_Surface. That's the code to draw a rect: [CODE] void DrawRect(SDL_Rect *rect, GLuint texture) { float x = … |
The End.