434 Topics
| |
hey guys, I am currently having problems with my OpenGL ES 2.0 application. I think I may have done my matrices wrong im not sure, but I cannot see my quad rendered to the screen. I believe it is something to do with the matrices I have set up which … | |
Hey I have a problem regarding skewness of non square objects when i scale them with respect to screen size and then rotate them in an orthographic view on the z axis. This is my code for setting it up to draw. The problem i am facing is that when … | |
Hey guys!! Can somebody help me... I cannot setup a glut project in codeblocks under ubuntu , it says The path you entered seems valid, but the wizard can't locate the include directory. This wizard cannot continue. -_- | |
Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering: Code for opengl initialization: glClearColor(0.5f,0.5f,0.5f,1.0f); float … | |
Note that I am using MinLinux. I'M trying to launch Team Fortress 2 from Valve's Steam and I'M getting the following error. Required OpenGL extension "GL_texture_compression_s3tc" is not supported. Please install S3TC texture support. I checked my Synaptic Package Manager and I already have the following two packages installed when … | |
Hey guys, I need a function that reads a text file and stores the character someway, (I am assuming a 2D Array would be best?) then a function that reads through the characters and if the char is something specific (like "X") then it would draw a square (QUAD) 10wx10h … | |
Im incrementing a value in a while loop, but its only incrementing when my mouse is moving. Any ideas? while (isAlwaysTrue) { value += 1; } Thats basically what Im doing. | |
I'm trying to write program in Python using PyOpenGL which I need to use glutMouseFunc for some mouse functionality but when I run the program I get the following error: Traceback (most recent call last): File "teapot.py", line 80, in <module> glutMouseFunc(mouseHandle) File "/usr/lib/python2.7/dist-packages/OpenGL/GLUT/special.py", line 137, in __call__ contextdata.setValue( self.CONTEXT_DATA_KEY, … | |
I found [here](http://zach.in.tu-clausthal.de/teaching/cg_literatur/frame_buffer_objects.html) an article about how to use the Frame Buffer Object in OpenGL,the only problem is my compiler gives an error on compilation `glGenFramebuffersEXT' undeclared (first use this function) " My question is , what are the FBO functions for OpenGL version 1.3 ,if there aren't any how … | |
shader.vert: #version 120 varying vec3 position; varying vec3 normal; void main() { position = (vec3(gl_ModelViewMatrix*gl_Vertex)); //get the position of the vertex after translation, rotation, scaling normal = gl_NormalMatrix*gl_Normal; //get the normal direction, after translation, rotation, scaling gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; } shader.frag: #version 120 varying vec3 position; varying vec3 … | |
Hi Everyone, I need to know how can we represent the projectile motion gven a certain angle and velocity, such that I can watch the animated ball moving in is path on screen.... all using openGL in C++ | |
I'm trying to visualize a model of lenticular images virtually with opengl pov-ray seen that it is possible by making an array of semi-cylinder lens in front of the square in POV-Ray to "play" Anyone know how to do with opengl? tks | |
IM A COMPLETE TOOL PLEASE IGNORE / DELETE THIS POST Hello everybody, im currently trying to learn 3d game development (ive developed 2d games in the past, nothing this complex, i am a third year programming student). Ive been working on this project in my spare time for the past … | |
I wrote a program to simulate a simple page flip animation in opengl and now i'm trying to replicate it with two images using texture mapping so that the second image appears on the "back" of the first image during the drag of the lower left corner of the page. … | |
OpenGL GLUT **My question is at the end of this topic** 1) a) Use your logo you drew within a world coordinate space that has 0,0 at the center. You may choose any width and height for your world coordinate space, glut window and viewport. Be sure that you separate … | |
I dont know what goes wrong in this code... Help me here I simply want to save the initial and final positions after dragging the mouse... #include"iostream" #include<glut.h> class point1 { public: point1() { x=0; y=0; } int x; int y; }p[2]; int flag=0; void processMouse(int button, int state, int … | |
how are you friends imhappy be with you my problem how can i fix **OPENGL.dll** | |
I'm an enginnering student, our lecturer has ask us to create an opengl app tat shows the bersenham so far i have derive the algo and the pixels...but i don't know how to draw a line between those pixels.. this is what i have so far void init(void) { glClearColor(1.0, … | |
I am making a project where i have a rotating and moving 3d cube and on click of any face of cube, that face should be enlarged. All the six faces of cube should have different images. I searched a lot but doesn't get any working. Any help regarding this … | |
HI all. I have a problem regarding how to drawing a crescent using opengl. i recently learn this opengl so i dont have much idea how to do it, here is what i have so far. void drawCrescentTriStrip(float step,float scale,float fullness) { glBegin(GL_TRIANGLE_STRIP); glColor3f(1.0, 1.0, 0.0); // glVertex2f(0.9f,scale); const float … | |
How can I iterate a buffer with a stride? For example, I saved the pointer to a vertex buffer for later use. I've got the stride, the pointer, and triangle count for vertices. I want to iterate my pointer using this info to get the vertices. I'm doing it wrong … | |
What are the last 4 values for? (m[0], m[4], m[8], m[12]) (m[1], m[5], m[9], m[13]) (m[2], m[6], m[10], m[14]) (m[3], m[7], m[11], m[15]) I've looked everywhere and cannot figure out what m[3], m[7], m[11], m[16] are for (ModelView Matrix).. It says to ignore them but I can't just ignore them … | |
Basically I have created a sprite sheet/tileset with dimentions of 320 x 2048, the tiles are each 32 x 32. I've been able to load individual files with textures in them but I don't seem to be able to load textures from a sprite sheet. Any help ? Here is … | |
In OpenGL, I'm reading about glVertexPointer which has a parameter: `const void* pointer` and it is a pointer to the coordinates of the first vertex. Thing is, it doesn't have any parameters that tell you the amount of vertices there are. I'm wondering if there is a way to copy … | |
I'm trying to write a simple particle system I use Python ,OpenGL and numpy libraries (on win7) this is the code I use to draw a single particle def draw(self, mode): glLoadIdentity() ## convert normal point to opengl point trns = self.__trans_to_opengl(self.trans) glTranslatef(trns[0], -trns[1], 0.0) ## this is the vertex … | |
How can I get camera view and Triangle count of models in OpenGL? I know it's a vague question but I'm just starting opengl and none of the tutorials explain how to get the current camera view. I hooked all OpenGL calls for a game and figured out how to … | |
Hello, everyone! I'm starting to learn OpenGL and I have a problem with linear transformations. The program is very basic: I want to draw 4 squares and make them move individually (by doing translations and rotation). I understand that I need to stock all the transformation in a matrix, so … | |
Hello, I am trying to make an OpenGL Hearts game ( like the one from windows 7 or such) but I expected some problems. First I will show you the code that iv done untill now : Card.h: #ifndef Card_H #define Card_H //#include <GL/glut.h> //#include <SOIL.h> #include <stdlib.h> class Card … | |
My Ubuntu version is 12.04. I'm simply trying to include GL/glu.h in my program, but I get the error: `fatal error: GL/glu.h: No such file or directory` I include it like this: `#include <GL/glu.h>` I have libgl1-mesa-glx-dbg, libgl1-mesa-dev, mesa-common-dev all installed. | |
hello everyone, i've trying to make a simple object(e.g. a simple robot with arms and legs) in openGL..but i've trouble finding how to write all the vertices within the code..is there any tool we can use to develop the objects separately..and drag the vertice co-ordinates into my program?? thank you |
The End.