782 Topics
![]() | |
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 … | |
hi, can anyone tell me how to draw a line using opengl es2.0 | |
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 … | |
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? | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 : … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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; }; … | |
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 … | |
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 … | |
What does it mean if my opengl objects are opaque from one side and translucent from another? | |
[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); … | |
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, … | |
[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); … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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. | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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!!! :* ) |
The End.