# Search:

Type: Posts; User: mikeglaz

Page 1 of 2 1

1. ## Thread: resizing window while keeping the same width/height ratio

by mikeglaz
Replies
2
Views
2,523

### Can't figure out how to calculate cx variable.

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...
2. ## Thread: resizing window while keeping the same width/height ratio

by mikeglaz
Replies
2
Views
2,523

### resizing window while keeping the same width/height ratio

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...
3. ## Thread: how to draw a pentagon?

by mikeglaz
Replies
4
Views
4,730

### Ok, I get it. Thanks

Ok, I get it. Thanks
4. ## Thread: how to draw a pentagon?

by mikeglaz
Replies
4
Views
4,730

### How do I calculate the positions of the vertices?...

How do I calculate the positions of the vertices? I thought rotation and translation are OpenGL's primary ways of vertex transformations?
5. ## Thread: how to draw a pentagon?

by mikeglaz
Replies
4
Views
4,730

### how to draw a pentagon?

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):

...
6. ## Thread: Simulating gravity with falling object

by mikeglaz
Replies
1
Views
1,891

### I think I figured it out. when I set position it...

I think I figured it out. when I set position it should be position += velocity
7. ## Thread: Simulating gravity with falling object

by mikeglaz
Replies
1
Views
1,891

### Simulating gravity with falling object

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...
8. ## Thread: OpenGL vs MESA

by mikeglaz
Replies
12
Views
21,788

### I'm not looking for a driver. I'm looking for an...

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...
9. ## Thread: OpenGL vs MESA

by mikeglaz
Replies
12
Views
21,788

### ok, I compiled and installed GLEW using make and...

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...
10. ## Thread: OpenGL vs MESA

by mikeglaz
Replies
12
Views
21,788

### I'm using gcc on Linux Mint 13. I do have an...

I'm using gcc on Linux Mint 13. I do have an nVidia card. So will GLEW be hardware accelerated by my nVidia card?
11. ## Thread: OpenGL vs MESA

by mikeglaz
Replies
12
Views
21,788

### Ok, where do I get the nVidia implementation. I...

Ok, where do I get the nVidia implementation. I looked all over their site and all I see are .exe's.
12. ## Thread: Xi library?

by mikeglaz
Replies
1
Views
2,555

### Xi library?

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...
13. ## Thread: OpenGL vs MESA

by mikeglaz
Replies
12
Views
21,788

### OpenGL vs MESA

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
14. ## Thread: How to stop glutTimerFunc animation?

by mikeglaz
Replies
1
Views
6,328

### How to stop glutTimerFunc animation?

I have an animation started with glutTimerFunc. I want it to last for 5 seconds and stop. How would I do that?

mike
15. ## Thread: error too long to list in subject line

by mikeglaz
Replies
4
Views
2,462

### Re: error too long to list in subject line

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++...
16. ## Thread: error too long to list in subject line

by mikeglaz
Replies
4
Views
2,462

### error too long to list in subject line

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...
17. ## Thread: Asteroids

by mikeglaz
Replies
2
Views
2,380

### Re: Asteroids

thanx, that was it :)
18. ## Thread: Asteroids

by mikeglaz
Replies
2
Views
2,380

### Asteroids

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()
{
...
19. ## Thread: Mesa3D reinstall

by mikeglaz
Replies
3
Views
1,964

### Re: Mesa3D reinstall

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...
20. ## Thread: Mesa3D reinstall

by mikeglaz
Replies
3
Views
1,964

### Re: Mesa3D reinstall

Also, when I try to *make* OpenGLUT I get the following message: *** missing separator. Stop.
21. ## Thread: Mesa3D reinstall

by mikeglaz
Replies
3
Views
1,964

### Mesa3D reinstall

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. ...
22. ## Thread: segmentation fault

by mikeglaz
Replies
2
Views
1,121

### segmentation fault

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...
23. ## Thread: asteroids

by mikeglaz
Replies
4
Views
2,151

### Re: asteroids

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;...
24. ## Thread: asteroids

by mikeglaz
Replies
4
Views
2,151

### asteroids

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...
25. ## Thread: gluOrtho2D

by mikeglaz
Replies
4
Views
3,009

### Re: gluOrtho2D

Thanx a lot!
Results 1 to 25 of 28
Page 1 of 2 1