782 Topics

Member Avatar for
Member Avatar for rehamz

hi please, i want to write code to draw array of circle on screen but without opengl, and i have problem with graphics.h i don't know who can i use it's function and my compiler can't built it . thanks in advance .

0
77
Member Avatar for broli100

Hi, I have problem with OpenGl tesselator - the polygon shapes are ok but when I light on polygon then I can see the triangles with another light levels. I know that tesselator draws polygons from triangles but I dont get why I can see that triangles in final stage. …

0
60
Member Avatar for broli100

Hi, I want to put GLSL shader in my game to get realistic shadows and lighting. But when I use polygons GL_POLYGON ,they are totally black. Only thing that works OK with shader is glutSolid bullshit like glutSolidTeapot and glutSolidCube and so on. So I wanted to know the source …

Member Avatar for broli100
0
256
Member Avatar for Kanoisa

Hi guys, As some of you may know im working on learning more c++ and trying to become a good programmer, iv got things like classes, function pointers and template classes under the belt as far as i can see (although to be honest i have never found a place …

Member Avatar for Ketsuekiame
0
198
Member Avatar for genux

Hi Was wondering if anyone did know of a way to convert games (to get involved with companies) to convert games in Windows to Linux ? put like a opengl wrapper around the DirectX stuff as such. without using wine(x). I would like to have UT3 on a linux platform …

Member Avatar for genux
0
106
Member Avatar for Chaos3737

In my code below, I want to display the text contained in the variable finalscore. I know how simple it sounds, but I can't figure it out. Thanks! [code] #include <glut.h> #include <cmath> #include <cstdlib> #include <time.h> #include <string> using namespace std; GLfloat tplayer; GLfloat tobject; time_t Start_t, End_t; double …

Member Avatar for Chaos3737
0
615
Member Avatar for Chaos3737

Please help with my C++ OpenGL code! I am trying to make a simple game in OpenGL with C++ (my first). The issue I'm having is that the WSAD keys move the sphere AND the cube. Since the goal of the game is going to be to get points by …

Member Avatar for VBNick
0
462
Member Avatar for jadrian

I was having some issues using a rendering worker thread in my application and created a stripped down application to troubleshoot, but stumbled onto a problem that is probably so obvious I am just completely overlooking it. The pertinent code is as follows: [CODE] BOOL GameDlg::OnInitDialog() { CDialog::OnInitDialog(); pDC = …

Member Avatar for nbaztec
0
236
Member Avatar for Kanoisa

Hi everyone, I'm not so sure if this belongs in here or in computer science but I think as I want to use c++ this may be the place. I was wondering if anyone could point me towards some tutorials/references or books on methods for approaching the design of larger …

Member Avatar for Bench
0
144
Member Avatar for sfuo

So far I have written a program that draws text to the screen and I am able to change the font type but I am unable to change the font size. Here are the 3 main parts of my code that I think you need to see. Font structure: [CODE]typedef …

Member Avatar for sfuo
0
336
Member Avatar for epicasian

I'm looking for a good introductory book for 2D OpenGL Game Programming. The only books on OpenGL I've seen were on 3D. Does anyone know of a good 2D OpenGL Book? Thanks in advance, EpicAsian

Member Avatar for epicasian
0
201
Member Avatar for nearest

I am working in open gl using visual c++.I have made a quad a balls.Now i want to bounce the balls on quad repeadetly but i donot know how to do this??i thought of timerfunction to use but i donot know how to use it??which coordinates to set.here is the …

Member Avatar for daviddoria
0
211
Member Avatar for broli100

Hi, I try to make graphic editor with buttons on the left and opengl window on right. Currently I have done it like two windows - opengl and that tool bar.But I want it to be in one window like in most of programs. I have looked for it for …

0
63
Member Avatar for jinjonBoo

Hi there everyone. I'm new to Python, and i'm programming a game application, using pyOpenGL. The thing is, the program crashes and exits when i push a key (but i don't want (at least for now) help for that), but i wish i could see the error that appears on …

Member Avatar for Tech B
0
350
Member Avatar for bladethebric

what comand is used for printing a text ?? OpenGL programing .. with GL in front .. IF ( something is set ) bla bla bla bla bla bla print text ( what is the comand ) else same here ?? GL_printtext .. or something ??

Member Avatar for bladethebric
0
112
Member Avatar for m khan

hi...i ant to ask how to use both glutSolidSphere() function and drawing polygons together .i try my bst but not getting that.when i am calling in display its displaying just spheer but not the polygons which i draw. ..

Member Avatar for mrnutty
-2
47
Member Avatar for m khan

can nay on etell me tht why if i am moving a ball thn my hurdl also moving .. here is the code [code]#include <glut.h> // Also included gl.h, glu.h #include <Math.h> #define PI 3.14159265f // Global variables char title[] = "Bouncing Ball (2D)"; int windowWidth = 640; // Windowed …

Member Avatar for Ezzaral
-1
153
Member Avatar for frispee

Hi I am trying to write a code to draw a sphere centered within a cube using openGL. Yesterday I had written it in such a way that the values of the side length of cube and dia of sphere are give in the code itself.That worked perfectly. Now I …

Member Avatar for daviddoria
0
159
Member Avatar for em-kay

Hello FirstPerson First of all, Im not an openGL expert but Im trying to write a code of a movng object and Im facing some problems. So i need your help please here is the code [CODE]#include <iostream> #include <cmath> #include <windows.h> #include <gl/Gl.h> #include <gl/Glu.h> #include <gl/glut.h> double r=600/4,delta=1/r; …

Member Avatar for em-kay
-2
2K
Member Avatar for weaponx69

Hello all, I'm am trying to get this program to work for class tomorrow. Maybe someone would be kind enough to be able to check it out for me. I'm using the g++ compiler in Ubuntu trying to get this openGL application to work. It compiles fine but has a …

Member Avatar for weaponx69
0
125
Member Avatar for brightsolar

Hi everybody have not posted in a while. In all truth i am stuck but very close to finding the collision answer. Note 1 (Most of this skelton was premade for the assignment). Some variables i don;t even know what they do like Vy1. Incx, Incy. Stuff like the file …

Member Avatar for 0x69
0
205
Member Avatar for SgtMe

Hi. I am trying to get texturing to work in PyOpenGL in 2D. I have the following code so far for textures: [CODE]def tex(path): img = pygame.image.load(path) img.convert_alpha() try: ix, iy, image = img.get_width(), img.get_height(), pygame.image.tostring(img, 'RGBA') except SystemError: ix, iy, image = imgs.get_width(), img.get_height(), pygame.image.tostring(img, 'RGBA') ID = glGenTextures(1) …

0
87
Member Avatar for Expora

Hi all I'm learning to use OpenGL but im having trouble with my compiler I'm using CodeBlocks but i keep getting the gl/glaux.h: No such file or directory and a couple of error: syntax error before "xxx" I don't know if I need to install any OpenGL stuff as I …

Member Avatar for LauraWelch
0
140
Member Avatar for Bluefox815

Hi, I was trying to make an OpenGL/SDL program with 3D graphics, but the code I've written doesn't work. I made an OpenGL/SDL program that displays in 2D with no problems, so I think my OpenGL code is the problem and not my SDL code (I'm not entirely sure though). …

Member Avatar for Bluefox815
0
71
Member Avatar for em-kay

Hello guys , I just wrote a code of Cellular Automata using OpenGl but I need your help in converting this code to a C++ code here is the code : [CODE]#include <windows.h> #include <math.h> #include <gl/Gl.h> #include <gl/Glu.h> #include <gl/glut.h> #include<iostream> #include<cstdlib> using namespace std; GLsizei Height= 800; GLsizei …

Member Avatar for iamthwee
0
233
Member Avatar for anollipian

Hi I'm Starting At my Graphics Project Now I'm going to Make a 3D animated Poster It'll have flying Houses & People .. I'm using OpenGL & 3DMax .. What Should i be knowing for starting at that project ? Lightening , Texturing , .. hmm Would you please tell …

Member Avatar for daviddoria
0
78
Member Avatar for ashwini_rt

hii everyone1.. how can i update a text file i,e only one particular record in a file i'm using openGL with vc++ ... my sample code to write into a text file when a store button is clicked is over here..after every 8sec i have to update only x_quad and …

Member Avatar for Ancient Dragon
0
236
Member Avatar for Expora

Ok I've posted a couple of posts before regarding OpenGL stuff, but I realized I'll be better off learning c++ first (yeah!). So I started reading through some tutorials and already got the hang of if statements, variables, funcitons, and loops. So I decided that I could make a little …

Member Avatar for Expora
0
115
Member Avatar for Expora

Hello all I started toying around with some tutorials using opengl and glutt but i encountered a problem using MVC++ IDE. The problem is that it says "initrendering" identifier not found and drawscene says undeclared identifier. the code is [CODE] #include <iostream> #include <stdlib.h> #include <StdAfx.h> #include <GL/glut.h> using namespace …

Member Avatar for Expora
0
101
Member Avatar for thehivetyrant

HI there, I've been trying to implement a class of a ball i was given by an tutor but am having troubles. She gave me: [B]TBall.h[/B] [CODE] class TBall { public: double _radius; // defines the radius of the ball TVector _position; // defines the position of the ball TVector …

Member Avatar for Salem
0
169
Member Avatar for tomtetlaw
0
54
Member Avatar for esash28

Hi everyone.. I am a new programmer to OpenGL using C++. I have an nxn grid having numbers in each cell of the grid.. I have to swap the content of two cells.. ie., the numbers in 2 cells selected, have to be swapped. I am not knowing how to …

Member Avatar for daviddoria
0
931
Member Avatar for RehabReda

hi guys i wanna ideas for my project knowing that the team consists of two members the doctor rejects anything that is easy and not new the project time is a month or 3 weeks really ur help will be appreciated Thanks in advance

Member Avatar for jwenting
0
89
Member Avatar for thehivetyrant

Hi there, I have an OpenGL scene containing a circular plane, ball and box. I'm attempting to set up bounding box's around each for a primative form of collision detection. I am trying to follow a tutorial from here: [URL="http://www.morrowland.com/apron/article/gl/boundingbox/index.php"]http://www.morrowland.com/apron/article/gl/boundingbox/index.php[/URL] But it says i should use TVector3 ... i have …

Member Avatar for thehivetyrant
0
95
Member Avatar for buffonomics

Is it possible to programmatically determine the currently installed graphics driver in windows, Mac, or Linux? methinks to check the system registry for windows. If so, where and what about the other OS? Major props to anyone who can answer this one :P Thanks

0
91
Member Avatar for thehivetyrant

Hi there, i have this rectangle and i want to be able to rotate this shape around another when i press a key. i have been able to make it rotate where it is. There are two problems i am having difficulties with: - I can get the shape to …

Member Avatar for thehivetyrant
0
1K
Member Avatar for sciwizeh

trying to use the code from an online book to learn OpenGL. i'm using Dev-C++, because i can't find a good way to get GLUT into VS 2008 PRO without muckin about in C:\windows\system32 which i try to stay away from. (any suggestions appreciated) so this is the code: [CODE=C++] …

Member Avatar for jephthah
0
676
Member Avatar for yakovm

I wrote winapi application.Which during creation defined : [code=c++] CreateGLWindow(hwnd,"OpenGL",800,600,16,fullscreen); CreateWindow(TEXT("button"), TEXT("Choose Shading Mode"), WS_CHILD | WS_VISIBLE | BS_GROUPBOX,10, 610, 300, 120, hwnd, (HMENU) 0,hInstance, NULL); CreateWindow(TEXT("button"), TEXT("Wireframe"), WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,20, 630, 100, 30, hwnd, (HMENU)IDC_M_WIRE , hInstance, NULL); CreateWindow(TEXT("button"), TEXT("Flat"), WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,20, 660, 100, …

Member Avatar for yakovm
0
254
Member Avatar for osha

i want to make a key from keyboard toggle (on and off key ) that's for a polygon in openGl by using c++ this polygon appear when we press this key as solid and when we press this key again it appears wired can you help me thaxxxxx osha

0
31
Member Avatar for ashwini_rt

hello can any one help me out dt how top create a symbol library using openGL? ...how to fetch dis symbol and display on screen ??...

Member Avatar for ashwini_rt
0
61
Member Avatar for Saabrina

So I've got a major issue in my program. I'm working on building something in OpenGL (using glut), the problem is that I changed my TexureLoader from being just a function, that takes the storagevariable as reference and the name, to a class, which just takes the name (and got …

Member Avatar for Saabrina
0
125
Member Avatar for rajeshswain

Hello, I am creating a windows application to draw 3d cubes. I am preferring to give all the details of the cube in the code itself i.e. dimensions, colour etc.. Suppose there will be two cubes, say with different dimensions and we provide the details with the manner that is …

Member Avatar for superbokey
0
561
Member Avatar for VilePlecenta

I have made a simple test application that I use to paint objects while I study and try to give them physics such as gravity, velocity, wind, momentum, etc. I have the app setup like this: [CODE]WM_PAINT PaintFunction(); break; DWORD CalculationsThread() { while( 1 ) { //-_-_Calculations here SendMessage( WindowsHandle, …

Member Avatar for VilePlecenta
1
115
Member Avatar for dalcocer

I am trying to get a WndProc Mapping solution to work so that I can avoid just making my WndProc static. In addition, a mapping solution is supposed to be great because I don't need to declare variables in my .cpp file, I can do it in my .h file …

Member Avatar for Kyle Wiering
0
188
Member Avatar for imclumsy

Hey guys, I am trying to read a skel file and create a skeleton from it, but I don't understand how to do the joint class. Here is what i have now: this is the main class. [code] public static void main(String[] args) { // Frame frame = new Frame("Simple …

Member Avatar for emilo35
0
164
Member Avatar for emilo35

Okay, so what I'm trying to do is to write a program that reads several TGA images and bunch them together into one bin-file for later use. I got this code from [URL="http://nehe.gamedev.net"]NeHe OpenGL[/URL], Tutorial 24, and it is what I use to load my images: [CODE=C++] bool loadTGA(char *path, …

Member Avatar for emilo35
0
298
Member Avatar for Hawkpath

Alright guys, I have a really weird error here. I'm programming a program that lets you specify the red, green, and blue components then stores them in arrays and uses the colors when drawing shapes. The program worked perfectly until about five minutes ago. Nothing affecting that specific part of …

Member Avatar for mrnutty
0
192
Member Avatar for simonblack

Hi I have a P5GD2-X that I'm thinking about upgrading. I'm confused about what it can take though. In the Manual it says, PCI Express x16 and people online say that any PCIe card is backward compatible. My question is what kind of card will be worth it. As I'm …

Member Avatar for simonblack
0
150
Member Avatar for rahul8590

I have been working with opengl for past 2 months and find in very difficult to manage with it . The actual code for rendering the image is very less , compared to the code written to handle the view and other opengl attributes / controls. Is there any library …

Member Avatar for mrnutty
0
153
Member Avatar for tien113

[CODE]/* Hello World for OpenGL */ #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> void drawing(void); /* This program will create a window with GLUT-library * that will remain open until it will be closed */ int main(int argc, char** argv) { glutInit(&argc, argv); /* initializarion of OpenGL library */ glutInitDisplayMode(GLUT_SINGLE | …

Member Avatar for tien113
-1
199

The End.