782 Topics

Member Avatar for
Member Avatar for ben1996123

Hi, I want to start learning OpenGL. I have searched for some tutorials and here is what I have done: 1. I downloaded the latest version of GLUT 2. I put the DLLs in C:\Windows\System32 3. I put the libs in C:\Program Files (x86)\CodeBlocks\MinGW\lib 4. Put glut.h in C:\Program Files …

Member Avatar for Moschops
0
560
Member Avatar for jaai
Member Avatar for jerl
0
151
Member Avatar for CreativeCoding

Yep. I just turned 13. And im too lazy to write so I'll just answer this stuff: Name: Sean Height: 5'5'' Weight: this is all like, stalker material here. Hair: blonde Eyes: blue Location: Washington, USA Age: 13 Hobbies: Music, animation (drawing it), programming, BMX, paintball, airsoft, and guns. something …

Member Avatar for transcue
0
150
Member Avatar for Peram

When I make an OpenGL game on this computer, it runs at normal speed. If I run it on literally any other computer, it goes really fast, making the games unplayable. Does anyone know what might be causing this?

Member Avatar for cahitburak
0
219
Member Avatar for Raik.48

Hello, I have chosen a project of developing a 2d action-adventure game with some rpg elements, in-game puzzles. I have considered developing with C++ and OpenGL. I do not have prior knowledge of these language but I had good grasp on C programming language. For C++ and OpenGL, I have …

Member Avatar for Raik.48
0
462
Member Avatar for BoBok2002

Revised Code. I have revised this code so many times that, I don't know what else to do. I posted this code a few days ago and a number of people gave me pointers which I included in my code. But it's still not working. Based on examples I saw …

Member Avatar for BoBok2002
0
1K
Member Avatar for tsy123

i,m making a 3d pool (billiard) simulation using c++ in opengl for my project. where can i get a proper source to refer as what i found on web were not very useful for me. Any links or sources from you are appreciable.

Member Avatar for apneweb
0
115
Member Avatar for saisakthi

Hi, I am very much new to cocos2d.. I am developing an application in android using cocos2d.. In that, [code]public class BaseLayer extends CCLayer { ChildLayer cl = new ChildLayer(); this.addChild(cl); } public class ChildLayer extends CCLayer { public ChildLayer() { CCLayer.node(); } . . }[/code] In this, arrowed line …

Member Avatar for saisakthi
0
240
Member Avatar for Jungletoe

Ok, I found this code after searching for days, and to my delight it actually worked. It loads a TGA file into the memory... but I have no idea about how to load it into an OpenGL texture that I can use to texture a cube. I have literally spent …

Member Avatar for myk45
0
1K
Member Avatar for awesome_cool

I've been Programming in C++ for a year. I am done with Basics and all other OOP concepts(like inheritance,polymorphism and STL) I want to be a game programmer, but i don't know what to study now? I've heard about OpenGL, DirectX, GUI libraries as a result i m confused to …

Member Avatar for thines01
0
529
Member Avatar for BoBok2002

I need help. I tried to load an image using SOIL. I was having problems with it so I found another code I am using. However, it looks like I am not loading it properly. It's simple but I think I'm confusing myself. I still can't wrap my head around …

Member Avatar for BoBok2002
0
5K
Member Avatar for Basteon

So, I need to make a program that draws a [URL="http://en.wikipedia.org/wiki/Automata_theory"]finite automata[/URL] from the input data. I had some experience with the [I]graphics.h[/I] header but as far as I know it's a Borland only header and VC++ doesn't support it. So I was wondering, is there a way to draw …

Member Avatar for sathishraji
0
1K
Member Avatar for tyricec

I'm having a problem with my struct I believe. [CODE]struct GLPoint { int x; int y; }; int totalmarbles = 64; GLPoint midhold[64]; double dist(GLPoint a, GLPoint b) { double distance = sqrt(pow(a.x - b.x, 2) + pow(a.y - b.y, 2)); return distance; } void init(void) { glClearColor (1.0, 1.0, …

Member Avatar for Tumlee
0
576
Member Avatar for tyricec

I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't …

Member Avatar for gusano79
0
155
Member Avatar for tyricec

I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't …

Member Avatar for tyricec
0
128
Member Avatar for Labdabeta

I need to convert a true type font into a list of three dimensional vertices using openGL. I looked at the NeHe tutorial, but it only creates a display list from the font and as far as I can tell it is not possible for me to extract the vertices …

Member Avatar for Labdabeta
0
120
Member Avatar for empyrean

Hi I am trying to run this C code in Visual Studio along with a set of Cpp files. It gives the below errors error 2143 : syntax error : missing ')' before '&' error 2143 : syntax error : missing '{' before '&' error 2059 : syntax error : …

Member Avatar for gusano79
0
273
Member Avatar for Labdabeta

I need to know how to extract the data in a display list in opengl. I have a font and use it to create a display list to draw, but then I want to get the actual vertexes of it so I can use them for collision checking. How can …

Member Avatar for Labdabeta
0
116
Member Avatar for tyricec

I'm trying to make my rectangles appear on screen, but it appears blank when I run the program. [CODE]#include <GL/glut.h> #include <stdlib.h> #include <math.h> using namespace std; struct GLPoint { GLint x; GLint y; }; void init(void) { glClearColor (1.0, 1.0, 1.0, 0.0); glShadeModel (GL_SMOOTH); } void display(void) { int …

Member Avatar for tyricec
0
234
Member Avatar for Zababa

Hello there guys! :) I've been given a sample code for my upcoming assignment in Computer Graphics and, according to the guide available in the course's site, I've set up Visual Studio 2008. What we've been given is a solution with some sample code which we must use as a …

Member Avatar for Zababa
0
216
Member Avatar for tomtetlaw

I don't really know what to ask here because the only indication I have that there is something wrong in my program is that nothing is showing on the screen. I'm loading a .obj model (it's just a cube, and i've checked all the verts/faces and they're all proper values) …

Member Avatar for tomtetlaw
0
143
Member Avatar for NoMoreRobots

I'm currently trying to learn OpenGL with the use of GLFW and the Addison Wesley book 'OpenGL Programming guide 7th edition'. Here is one of the first sample programs they present, it is meant to draw a white box. In this example I mixed it with a simple glfw window …

Member Avatar for NoMoreRobots
0
864
Member Avatar for Valaraukar

So I'm currently working as part of a team that is building a game engine and I have been considering our current code structure. As a team we decided it would be a good idea to create a plugin architecture that allows additional functionality to be added by other users …

Member Avatar for Valaraukar
0
191
Member Avatar for BoBok2002

Hi, I have drawn a human face using simple shapes such as big circle for the face, little circles for the eyes, lines for eyebrows and triangle for the nose. I have been asked to create a template for various expressions of the face (fear, happiness, disgust, etc). Once I'm …

Member Avatar for BoBok2002
0
453
Member Avatar for c++_fem

Hi, Does anyone know how to animate object so it follows a previously drawn spline? I tried by translating all object vertices by Spline_point[i]-Spline_point[i-1] by frames but this doesn't work. Does anyone have a better idea?

Member Avatar for c++_fem
0
107
Member Avatar for empyrean

I am trying to find the way to generate bezier curve using de casteljau algorithm for one of my assignment here. I am able to generate bezier curve using normal method but unable to start on generating using the above algorithm. It will be of great help if someone can …

Member Avatar for raptr_dflo
0
2K
Member Avatar for tyricec

I'm trying to compile this simple dot program with C++ that uses OpenGL. I made a struct GLintPoint to hold just points x and y. It seems I didn't delcare the struct according to the errors. [CODE]#include <GL/glut.h> #include <stdlib.h> #include <time.h> struct GLPoint { GLint x; GLint y; }; …

Member Avatar for tyricec
0
945
Member Avatar for BoBok2002

I drew a circle to represent a human face. I am drawing an arc to represent the mouth but I am having troubling positioning it in the right place. I have checked the value of x and y in the computation of the arc but can't seem to figure out …

Member Avatar for BoBok2002
0
135
Member Avatar for Zssffssz

well it sounds simpler than OpenGL... I want to use DOS style graphics in my prog (look at SC2000) no need for animation or interactivity or PostPicture(). So the queston is what header/librays do I need and how do i use it? Google just brought up stuff on makeing your …

Member Avatar for Zssffssz
0
222
Member Avatar for Labdabeta

What does it mean if my opengl objects are opaque from one side and translucent from another?

Member Avatar for Labdabeta
0
88
Member Avatar for scobi

[CODE]//#include <stdafx.h> #include <iostream> //line_poly_file.cpp #include <fstream> #include <windows.h> #include <glut.h> GLsizei wh = 250; GLsizei ww = 250; void DisplayLines ( void ) ; void MyInit ( ) ; void DisplayLines ( void ) { GLint xj, yj, j; glClear ( GL_COLOR_BUFFER_BIT ) ; fstream inStream; //inStream.open("R.txt", ios ::in); …

Member Avatar for scobi
0
309
Member Avatar for Obelisk4

Hi everybody ^^ I'm quite a newbie in loading image file, so I've try to improve myself by loading the TGA image structure (You can found it at [url]http://en.wikipedia.org/wiki/Truevision_TGA[/url], I'm quite believe in the information there) My problem is after loading and draw it onto the screen using OpenGL ES, …

Member Avatar for Greywolf333
0
978
Member Avatar for khalid_farooq

[CODE]/* * hello.c * This is a simple, introductory OpenGL program. */ #include<stdlib.h> #include <GL/glut.h> #include<iostream> #include<fstream> using std::fstream; using namespace std; void draw(void) { /* clear all pixels */ char fileName[] = "house1.txt"; fstream instream; instream.open("c:/house1.txt",ios::in); if(instream.fail()) return; glClear (GL_COLOR_BUFFER_BIT); GLint numstrip,numlines,x, y; instream>>numstrip; for(int j=0;j<numstrip;j++) { instream>>numlines; glBegin(GL_LINE_STRIP); …

Member Avatar for gusano79
0
617
Member Avatar for Labdabeta

I am still having major trouble with my openGL model program. The big issue is that I cannot figure out how to debug it since I am saving the important data to the graphics chip using vertex buffer objects (VBOs) so at least as far as I can tell, I …

Member Avatar for raptr_dflo
0
488
Member Avatar for leftovas17

Okay, first off, I know my code is atrocious. I am not a c++ programmer, but my OpenGL course requires it. My lack of c++ knowledge is most probably my biggest problem here. I am simply looking for quick fixes to my ignorant mistakes. I just need the algorithm to …

Member Avatar for leftovas17
0
268
Member Avatar for c.pentasuglia

I am working on an assignment for school and i seem to be having some issues. I am using OpenGl with free glut, and attempting to animate a pendulum. I can draw out the pendulum, but cannot determine how to make it swing. I have to make it swing from …

Member Avatar for c.pentasuglia
0
484
Member Avatar for NTxC

Hello, I need to write code which detects whether keystrokes are injected by applications (with SendInput, keybd_event) or are genuinely coming from the keyboard. I came across a possible solution: creating a WH_KEYBOARD_LL hook and checking the INJECTED flag. So I've made this so far: [CODE] HHOOK g_hHook; LRESULT CALLBACK …

Member Avatar for MonsieurPointer
0
442
Member Avatar for Labdabeta

How do I do 2D opengl? I need to be able to put stuff up on the screen so that it is not rendered in three dimensions, and I need the 3d stuff to still be 3d behind it.

Member Avatar for Labdabeta
0
152
Member Avatar for Labdabeta

Quick question (though I still want to get my long OpenGL question fixed) is there a faster way to Xor the bits of an integer than this: [CODE](MyInt&0x1)^((MyInt&0x2)>>1)^((MyInt&0x4)>>2)//etcetera[/CODE] Just to clarify by faster I mean faster to execute, not to type as this operation will have to be done many …

Member Avatar for murnesty
0
100
Member Avatar for glut

Hi, I'm learning OpenGL. I assumed this would be the best section to post this thread, because many games are made in OpenGL. There's no place to post this in my other forum, so yeah, I came here. Anyways, here's the problem. I first off do not have glut.h I …

Member Avatar for sfuo
0
212
Member Avatar for sujan.dasmahapa

Dear Friends I am wirting an application for drawing a rectangle on the screen using opengl and mfc. So I implemented the OnPaint function, OnDraw function is also giving the same problem. It's drawing fine. I want to implement pan, zoom, and rotate functionalities. Now everytime the mouse moves I …

0
84
Member Avatar for P0lT10n

Hello everyone ! I want to know what have I to for make a 3D environment ? I know how to use 3D Max 2010, but, if I do a "player", what extension need to have for use it ? And what "library" (OpenGL, etc.) should I use for this …

0
52
Member Avatar for mIXpRo

hi, this might take some time ... the goal is a game developer , the problem is where to start . here's the story : i've been looking around on how to get start with developing games specifically for mobiles , i started reading opengl and animating + modeling with …

Member Avatar for geethaa
0
170
Member Avatar for Labdabeta

Really quick question (I hope) before I buy Maya I want to know if it has the option of exporting coordinates for triangle vertexes rather than images. If it doesn't, is there software that would allow for modeling while exporting vertexes for 3d triangles?

Member Avatar for jwenting
0
156
Member Avatar for Labdabeta

I am still unable to get OpenGL Vertex Buffer Objects to work. I will just show you the code I have written so far: 3dglgui.h (I think this should be fine): [CODE]#ifndef CLASS_NAME #define CLASS_NAME "OpenGL Windows Class"//This can be overwritten to specify a unique class name #endif //Header Guards …

Member Avatar for raptr_dflo
0
160
Member Avatar for lukename

hello. Can you recomend me any good OpenGL models type? I would like a type wich would have good editors for that model type and it would be possible to use "skeletal animation" with it.

Member Avatar for mike_2000_17
0
101
Member Avatar for emorjon2

Hi All! I'm try to make a game in C++ with OpenGl. So far i've programmed the sprite and the platform. the next thing is to create a AI bot who will try to kill you in the game. but I've got the most bisarr problem with that: The AIBot …

Member Avatar for emorjon2
0
233
Member Avatar for Tiancailee

Hi i am having problems with my assignment. i am supposed to make a 2d top down view game and i started on doing the main menu. i tried at making a main menu and it worked. after that i changed the codes and put them into classes and this …

Member Avatar for daviddoria
0
253
Member Avatar for oamsath

Hello. I've posted here a few weeks ago about an idea i was hammering. I've refined it and removed some unnecessary features as it wasn't really needed. I'm a last year computer science student and this idea is for my graduation project. It is about a new programming language for …

Member Avatar for gusano79
0
173
Member Avatar for supidProgrammer

Hello again. I need help on OpenGL in console mode (with GLUT). How can I use full screen with GLUT? Please answer me. (don't miss Daniela Ruah (NCIS: Los Angeles) photos in Esquire of September... She's hot, hot, hot, hot, hot!!! :* )

Member Avatar for supidProgrammer
0
80

The End.