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

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: something like glTranslate (with absolute values) !?

    Yes, the best way to have a indepdent object is to start from a begining.

    example draw a group of objects

    Lets say we have set 0,0,0 as the center of the screen in the projection matrix.
    ...
  2. Re: something like glTranslate (with absolute values) !?

    Try this setup should draw in the center of the screen:

    void Draw_scene(void)
    {
    glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //Clear the screen

    glMatrixMode (GL_PROJECTION); // Tell...
  3. Re: something like glTranslate (with absolute values) !?

    I maybe did not understand you question fully.

    There are many factors that effect where an object is drawn on the screen, from the projection setting to the matrix calls like glTranslate.

    You...
  4. Replies
    11
    Views
    975

    Re: OpenGL Programming..

    I am not sure about borland C++ 3.1, but you can download like 5.0 or greater for free and it has openGL support.

    Also you can download DEV-C++ by Blood Shed software for free. I have a link on...
  5. Re: something like glTranslate (with absolute values) !?

    You can reset the matrix by using glLoadIdentity() each time you move an object with glTranslate.
    By that not the best way, since will work correctly if you are using a camera.

    Better is to use...
  6. Replies
    11
    Views
    975

    Re: OpenGL Programming..

    Most C/C++ compilers out there today have openGL library's and can be used to create an openGl program.

    DEV-C++ by Bloodshed
    Borland's C/C++
    Microsoft Visual C++

    Also other languages have...
  7. Replies
    1
    Views
    1,932

    Re: drawing a simple car and a chopstick man

    Take a look at some of the examples on my website

    www.angelfire.com/linux/nexusone/

    The clock example is a good example of creating a object from openGL primitives.
  8. Thread: 3D Clock...

    by nexusone
    Replies
    1
    Views
    573

    Re: 3D Clock...

    I have a simple 3D clock on my web site

    www.angelfire.com/linux/nexusone/
  9. Replies
    3
    Views
    373

    Re: Transparency with a non-alpha texture?

    If you have to use BMP files you can create two versions of the BMP file.

    One is the image and the other is the transparentcy mask.

    You load the first image as a RGB and the second as the Apha...
  10. Replies
    5
    Views
    540

    Re: Help ! Newbie looking for header file...

    Did you tell DEV-C++ to use the openGL librarys when running the linker?

    Look under project options, linker settings and add:

    -lopenGL32 -lglu32 -lglut32(if you use glut)
  11. Replies
    5
    Views
    540

    Re: Help ! Newbie looking for header file...

    DEV-C++ comes with all the headers needed to compile a openGL program (gl.h, glut.h, glu.h).

    The files are located in the DEV-C++ directory under INCLUDE/GL/

    You should be able to compile most...
  12. Replies
    11
    Views
    3,683

    Re: Bloodshed Dev-C++ Compile problem.

    No you use GLUT in place of GL AUX, most websites have examples using GLUT. nehe.gamedev.net

    I have not used the GL aux with DEV-C++, but I noticed that the glaux.h header is missing from the...
  13. Replies
    11
    Views
    3,683

    Re: Bloodshed Dev-C++ Compile problem.

    The AUX library is out of date, use GLUT library instead.

    Did you include the -lglaux in the linker command, that would case you to get an error on those commands?

    But anyway the AUX library is...
  14. Thread: compiler...

    by nexusone
    Replies
    2
    Views
    292

    Re: compiler...

    OpenGL does not have its own compiler, it is a graphics API, written using the C language.

    To compile a openGL program, all you need is to choose what languge you want to use and a compiler with...
  15. Replies
    11
    Views
    3,683

    Re: Bloodshed Dev-C++ Compile problem.

    Are you using the openGL library that came with DEV-C++ or did you download one from somewhere else?

    DEV-C++ librarys look like this:

    libopengl32.a
  16. Replies
    4
    Views
    436

    Re: OpenGL Installation?

    DEV C/C++ comes with the needed openGL headers and librarys.

    Please list what headers you are missing?

    I have the setup for using openGL under DEV C/C++ on my website to make sure you have...
  17. Replies
    2
    Views
    277

    Re: OpenGL example programms

    I have a some examples using these shapes on my website. www.angelfire.com/linux/nexusone

    Also nehe.gamedev.net

    Also is not a cube and a block the same thing?

    A ball is called a sphere in...
  18. Re: Help!!! How to change colours randomly and use gluCylinders?

    Did you mean the following:

    1. I would like my gluCylinder to change colors at random?

    or

    1. How to change colors at random?
    2. How do you use gluCylinder?

    In C/C++ you can use the...
  19. Replies
    3
    Views
    384

    Re: coordinates? (beginner question)

    OpenGL uses floats because your 3D world is created using vectors and because the math required to create a 3D world.

    When not use pixels you ask, imagine switching resolution from a say 640 x 480...
  20. Replies
    5
    Views
    608

    Re: Creating teapot more than once

    What function are you using to draw the teapot?

    This example will work under any C/C++ compiler:

    glPushMatrix();
    glTranslatef( 0,0,0); // location of first teapot
    glutSolidTeapot(1); // Draw...
  21. Replies
    6
    Views
    456

    Re: Help starting with OpenGL!!!

    Look's like a build error durring the linking of your library files.

    Are you compiling a using the Microsoft windows API or using something like the GLUT api?

    If you are using a GLUT based...
  22. Re: question about pausing movement of object

    // Place in keyboard routine
    if (key_press == 'S')
    {
    object_state = 0;
    glutTimmerFunc( 300 (time in milliseconds), my_timmer, 0); // restart object in X time;
    }

    // Place in...
  23. Replies
    4
    Views
    443

    Re: Timing the redisplay?

    Use glutTimerFunc, and you can set the time interval that you display is updated.
    And is not effected by CPU speed.

    glutTimerFunc( Time_in_milliseconds, function_to_call, id_number);

    Note it...
  24. Replies
    5
    Views
    629

    Re: opengl download

    OpenGL.org set's the standards, but it is up to the OS maker and video card maker to write librarys and video drivers that are compliant.

    It would be a real task for openGL own its own to try and...
  25. Thread: opengl newb

    by nexusone
    Replies
    1
    Views
    243

    Re: opengl newb

    Just to use it for openGL applications, make sure you have the newest version of your video drivers. Example: ATI has its openGL video drivers in the same install as the direct X ones.
    Nvidia also...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4