Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: mikeglaz

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. 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. 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. Replies
    4
    Views
    2,219

    Ok, I get it. Thanks

    Ok, I get it. Thanks
  4. Replies
    4
    Views
    2,219

    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. Replies
    4
    Views
    2,219

    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. Replies
    1
    Views
    842

    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. Replies
    1
    Views
    842

    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. Replies
    12
    Views
    8,399

    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. Replies
    12
    Views
    8,399

    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. Replies
    12
    Views
    8,399

    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. Replies
    12
    Views
    8,399

    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
    1,393

    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. Replies
    12
    Views
    8,399

    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. Replies
    1
    Views
    5,436

    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. Replies
    4
    Views
    2,242

    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. Replies
    4
    Views
    2,242

    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
    1,498

    Re: Asteroids

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

    by mikeglaz
    Replies
    2
    Views
    1,498

    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. Replies
    3
    Views
    1,777

    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. Replies
    3
    Views
    1,777

    Re: Mesa3D reinstall

    Also, when I try to *make* OpenGLUT I get the following message: *** missing separator. Stop.
  21. Replies
    3
    Views
    1,777

    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. Replies
    2
    Views
    927

    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
    1,551

    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
    1,551

    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
    2,225

    Re: gluOrtho2D

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