434 Topics

Member Avatar for
Member Avatar for Johnathon332

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 …

0
160
Member Avatar for nousername19

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 …

0
86
Member Avatar for Donna55555

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

Member Avatar for JasonHippy
0
1K
Member Avatar for Labdabeta

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 …

Member Avatar for Ketsuekiame
0
266
Member Avatar for lewashby

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 …

Member Avatar for rubberman
0
93
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
382
Member Avatar for Doogledude123

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.

Member Avatar for Doogledude123
0
1K
Member Avatar for 2hamed

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

Member Avatar for 2hamed
0
761
Member Avatar for dot_binary

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 …

0
65
Member Avatar for jackshannon4

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 …

Member Avatar for jackshannon4
0
172
Member Avatar for Hanna Jane

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

Member Avatar for saurabh5584
0
3K
Member Avatar for mauro.delazeri

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

0
70
Member Avatar for Fedhell

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 …

0
130
Member Avatar for BlinkOnly

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

0
158
Member Avatar for Vaspar

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 …

Member Avatar for Vaspar
0
786
Member Avatar for vaishvik.nakhashi

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 …

Member Avatar for vaishvik.nakhashi
0
2K
Member Avatar for ISSA RICHY
Member Avatar for gerbil
0
22
Member Avatar for gopi17

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

Member Avatar for myk45
0
339
Member Avatar for Pankti Shah

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 …

0
110
Member Avatar for rahman86

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 …

0
46
Member Avatar for triumphost

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 …

Member Avatar for triumphost
0
309
Member Avatar for triumphost

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 …

Member Avatar for mike_2000_17
0
157
Member Avatar for kelechi96

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 …

0
106
Member Avatar for triumphost

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 …

Member Avatar for triumphost
0
211
Member Avatar for ido098

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 …

Member Avatar for ido098
0
131
Member Avatar for triumphost

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 …

Member Avatar for mike_2000_17
0
139
Member Avatar for GDICommander

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 …

Member Avatar for chvkishore.20
0
1K
Member Avatar for taigi100

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 …

0
119
Member Avatar for tomtetlaw

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.

Member Avatar for tomtetlaw
0
138
Member Avatar for cool_zephyr

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

Member Avatar for cool_zephyr
0
174

The End.