ok, I figured out how to keep the aspect ration with gluPerspective but I can't figure it out with glFrustum. Specifically I don't know how to calculate the cx variable. The instructions for...
Type: Posts; User: mikeglaz
ok, I figured out how to keep the aspect ration with gluPerspective but I can't figure it out with glFrustum. Specifically I don't know how to calculate the cx variable. The instructions for...
I feel like this question must have been asked a 1000 times but I can't seem to find it in the forum. When I resize my window all my objects get distorted. I want them to keep the same width/height...
Ok, I get it. Thanks
How do I calculate the positions of the vertices? I thought rotation and translation are OpenGL's primary ways of vertex transformations?
It seems like translations and rotations are not allowed between the commands glBegin() and glEnd(). If not, how am I supposed to draw something like this (a pentagon):
...
I think I figured it out. when I set position it should be position += velocity
I'm currently taking a Calculus course and a Physics course. I wanted to play around with OpenGL and to simulate and ball being dropped with an acceleration of -9.8m/s^2. I'm guessing I need to use...
I'm not looking for a driver. I'm looking for an API to develop in. I noticed that OpenGL is on version 4.3 while Mesa is on 3.1. I know that on Windows I'm able to use version 4.3 with the...
ok, I compiled and installed GLEW using make and make install. But now how do I use it? Inside my Makefile I used the following for MESA:
objects = main.o
cube: $(objects)
g++ -o...
I'm using gcc on Linux Mint 13. I do have an nVidia card. So will GLEW be hardware accelerated by my nVidia card?
Ok, where do I get the nVidia implementation. I looked all over their site and all I see are .exe's.
In my Makefile I have the following:
objects = main.o Asteroid.o Bullet.o Projectile.o Ship.o
asteroids: $(objects)
g++ -o asteroids $(objects) -lX11 -lXi -lglut -lGL -lGLU -lm
I got the...
I was wondering why in the Linux world we must use MESA instead of OpenGL? Is MESA identical to OpenGL? Also, why is MESA behind in version numbers compared to OpenGL?
thanks,
mike
I have an animation started with glutTimerFunc. I want it to last for 5 seconds and stop. How would I do that?
mike
Actually compiling the .cpp files individually gives me the same error. And yes, I DO have a main() function. What I found out fixed the issue is in the appendix of the blue book:
g++...
I'm new to OpenGL. I tried compiling the first program in the red book (the white square against a black background) and was successful. Now I'm trying to build the classic Asteroids game. My...
thanx, that was it :)
Hi, I just started playing around with OpenGL. I'm creating the classic Asteroids game. I have a problem when creating the actual asteroids.
here's my constructor
Asteroid::Asteroid()
{
...
I also went in to Synaptic and tried installing anything to do with Mesa from there. Now when I try to configure Mesa I get a new error: "checking for INTEL... configure: error: Package requirements...
Also, when I try to *make* OpenGLUT I get the following message: *** missing separator. Stop.
My computer crashed and I had to reinstall Ubuntu 10.04. But now I don't remember what I did to install Mesa3D. If I remember correctly you have to *make* dri2proto-2.3 and libdrm-2.4.21. ...
My computer was on during a storm and the power went out. Now, any Mesa3D program I try to compile with gcc `pkg-config --cflags --libs glut` myProgram.c -o test, I get a segmentation fault when I...
The frame rate isn't the problem as I added this j loop to my code and when I fire, the bullet waits for about a second and then appears at the end (10 translations down):
case ' ':
for(i=0;...
Hi. I'm just starting my OpenGL adventure. Could someone help me with the code of how to make an object fly across the screen (i.e. a flying bullet). I have my spaceship flying around nicely but...
Thanx a lot!