434 Topics

Member Avatar for
Member Avatar for jamesl22

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 …

Member Avatar for SasseMan
0
139
Member Avatar for Labdabeta

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, …

Member Avatar for Labdabeta
0
153
Member Avatar for pcgamer2008

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?

Member Avatar for pcgamer2008
0
1K
Member Avatar for lordvoldemort

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 …

Member Avatar for Sodabread
0
148
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
199
Member Avatar for jamesl22

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 …

Member Avatar for jamesl22
0
973
Member Avatar for Labdabeta

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 …

Member Avatar for Labdabeta
0
199
Member Avatar for ilnura

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++) { …

Member Avatar for ilnura
0
144
Member Avatar for Labdabeta

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?

Member Avatar for Labdabeta
0
464
Member Avatar for pcgamer2008

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 ...

Member Avatar for mrnutty
0
52
Member Avatar for pcgamer2008

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 …

Member Avatar for pcgamer2008
0
267
Member Avatar for helpfullProgram

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 …

Member Avatar for helpfullProgram
0
260
Member Avatar for pcgamer2008

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 …

Member Avatar for mrnutty
0
86
Member Avatar for Khoanyneosr

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 …

Member Avatar for pseudorandom21
0
344
Member Avatar for altreality

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 …

0
90
Member Avatar for Khoanyneosr

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 …

Member Avatar for n.cramp
0
170
Member Avatar for pcgamer2008

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.

Member Avatar for pcgamer2008
0
119
Member Avatar for Kontext

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, …

Member Avatar for daviddoria
0
247
Member Avatar for Ardgari

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 …

0
51
Member Avatar for mangopearapples

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' …

Member Avatar for Stefano Mtangoo
0
527
Member Avatar for DaSpirit

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 …

0
60
Member Avatar for EMT

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:

0
66
Member Avatar for woofers

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 …

Member Avatar for TrustyTony
0
256
Member Avatar for tomtetlaw

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? …

Member Avatar for myk45
0
237
Member Avatar for smokin745

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 …

0
91
Member Avatar for smokin745

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 …

Member Avatar for smokin745
0
191
Member Avatar for CrazyPixel

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 …

Member Avatar for CrazyPixel
0
373
Member Avatar for gopi17

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) …

Member Avatar for emilo35
0
463
Member Avatar for moreautemps

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 …

Member Avatar for mrnutty
0
89
Member Avatar for OpenSDL

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 = …

Member Avatar for mike_2000_17
0
281

The End.