434 Topics

Member Avatar for
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
62
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
67
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
259
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
268
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
92
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
192
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
383
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
492
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
90
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
286
Member Avatar for mangopearapples

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.

Member Avatar for mangopearapples
0
138
Member Avatar for rabihayass

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 …

Member Avatar for daviddoria
0
182
Member Avatar for daniel955

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

0
97
Member Avatar for Gh0st93

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 …

Member Avatar for Gh0st93
0
173
Member Avatar for daniel955

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 …

Member Avatar for daniel955
0
620
Member Avatar for takken1

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 …

Member Avatar for SgtMe
0
91
Member Avatar for DaSpirit

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 …

Member Avatar for mike_2000_17
0
623
Member Avatar for louiscos77

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 …

Member Avatar for louiscos77
0
559
Member Avatar for stemiros

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 …

Member Avatar for daviddoria
0
385
Member Avatar for xikkub

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 …

Member Avatar for xikkub
0
312
Member Avatar for kdcorp87

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 …

Member Avatar for Fbody
0
407
Member Avatar for Weird Nerd

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 …

Member Avatar for Weird Nerd
0
514
Member Avatar for inquisitivemind

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 …

0
84
Member Avatar for broli100

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

0
86
Member Avatar for LeeZH

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

Member Avatar for LeeZH
0
121
Member Avatar for ramziabuabad

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

0
95
Member Avatar for caelt

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 …

Member Avatar for PsychoLogic
0
169
Member Avatar for gisek

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 …

Member Avatar for emilo35
0
584
Member Avatar for daniel955

[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

Member Avatar for daniel955
0
153
Member Avatar for sDanyal

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 …

Member Avatar for Valaraukar
0
155
Member Avatar for ticktock

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 …

Member Avatar for ticktock
0
107
Member Avatar for TGeorge824

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 …

Member Avatar for mike_2000_17
0
260
Member Avatar for hystaspes

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 …

Member Avatar for hystaspes
0
56
Member Avatar for vannyn

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 …

Member Avatar for hanvyj
0
149
Member Avatar for koolman123

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 …

Member Avatar for daviddoria
0
123
Member Avatar for SpS

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)

Member Avatar for Sodabread
0
192
Member Avatar for shrublet

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 …

Member Avatar for NicAx64
0
158
Member Avatar for epicasian

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; } …

Member Avatar for Sodabread
0
192
Member Avatar for ticktock

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 …

Member Avatar for ticktock
0
2K
Member Avatar for Hand

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 …

Member Avatar for joshalb
0
132
Member Avatar for ceesdaname

Ok Im new to shaders and I am using glew... okay here is my code #include <iostream> #include <gl/glew.h> #include <gl/glut.h> float angle = 0.0f; //global shader handle GLhandleARB g_shader; char * LoadShader(char *file) { FILE *f; fopen_s(&f,file, "r"); if( f == NULL) return NULL; fseek(f, 0, SEEK_END); int size …

Member Avatar for PsychoLogic
0
245
Member Avatar for fpsasm

Hi, I know that there are a lot of webpages devoted in telling me how the OpenGL mouse function works, but I still don't understand. What I need to know, when my: [CODE] void processMouse( int button, int state, int x, int y){ ... } [/CODE] Returns x,y. What does …

Member Avatar for sfuo
0
211
Member Avatar for web3
Member Avatar for daviddoria
0
271
Member Avatar for Deep Thought

Hi Have been using OpenGL with Borland C++ Builder 4 for about 10 years but need to port across to Embarcadero C++ Builder 2010 and am developing on generous W7x64 platform. I cant remember where I downloaded the original package from but I need a new package containing the right …

0
63
Member Avatar for Neon87

Hello I want to create a web plugin to demonstrate some inverse kinematics algorithms on a basic 3D model on a web browser. I am using OpenGL API and my code is written in C++. I am really new to plugins and I have no clue where to start looking. …

0
35
Member Avatar for nwhitfield

I'm thinking about buying a opengl game programming book that looks pretty good, but its dated at being published at 2001. If you know anything about this book just please post. Thanks. Here's link to the book. Check it out. [URL="http://glbook.gamedev.net/oglgp.asp"]http://glbook.gamedev.net/oglgp.asp[/URL]

Member Avatar for mike_2000_17
0
99
Member Avatar for fpsasm

Hello, I am writing a OpenGL program, but I can't get the mouse to do what I want. The code looks like this [code] main() [INDENT]init OpenGL stuff display function1[/INDENT] Function1 [INDENT]Start graphCalculation[/INDENT] graphCalculation [INDENT]plot graph in OpenGL[/INDENT] [/code] What I've tried to do, is to add a "zoom" function, …

Member Avatar for fpsasm
0
131
Member Avatar for AkashL

I have heard you can efficiently use your GPU to do fast floating point calculations. This can be done using OpenGL but you may have to use the library in an unorthodox way or graphics card toolkits such as CUDA (by nVidia) which I guess is Graphics card specific. Does …

Member Avatar for 0x69
0
154
Member Avatar for AkashL

I have heard you can efficiently use your GPU to do fast floating point calculations. This can be done using OpenGL but you may have to use the library in an unorthodox way or graphics card toolkits such as CUDA (by nVidia) which I guess is Graphics card specific. Does …

0
113
Member Avatar for Jamesbch

Hello everyone, I'm working on my game project and my aim is now to produce the interface part. I've found that there is an easy way to produce some text on the screen with [I]glutBitmapCharacter[/I] and it's working quite well except the font choice is a little bit restrictive. So …

Member Avatar for Jamesbch
0
474

The End.