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

Page 1 of 16 1 2 3 4

Search: Search took 0.01 seconds.

  1. Add something like a 'z' key shown below. ...

    Add something like a 'z' key shown below.




    float _angle = 0.0f;

    void handleKeypress (unsigned char key, int x, int y)
    {
    static short anim = 0;
  2. Replies
    9
    Views
    515

    So each individual tube is straight, not bent...

    So each individual tube is straight, not bent like a strand of hair?

    If you have a starting program written in Legacy GL, post the code, and I'll help you.

    This is not that hard.
  3. Replies
    5
    Views
    587

    OpenGL is a standard which looks like a...

    OpenGL is a standard which looks like a subroutine library when you get down to using it. It is not a development environment (IDE) and does not come with an editor. The good news is that most major...
  4. Here's a suggestion (without looking too closely...

    Here's a suggestion (without looking too closely at your code).

    Do not enable light0 or light1 until you are inside the 'drawRoom' routine.
    Then do something like this -



    glEnable ...
  5. Replies
    1
    Views
    186

    One path people have taken is to first export or...

    One path people have taken is to first export or convert the model into .obj format. Then do an obj to .h conversion. Apparently people have written scripts to do this. I've never tried them. Try...
  6. Codeblocks provides a sample opengl project. ...

    Codeblocks provides a sample opengl project. That's how I got started. It was very easy.
  7. Replies
    6
    Views
    645

    This implies that you can currently open a GL...

    This implies that you can currently open a GL window and display a scene with a bunch of points on the screen. Is that right?
  8. Replies
    2
    Views
    494

    I've got good news and bad news for you. I...

    I've got good news and bad news for you.

    I compiled and ran your code (actually the version by MensInvictaManet).
    It ran fine. The up and down arrows toggle between two versions of a cube....
  9. glut/glu are fine for learning OpenGL. Not too...

    glut/glu are fine for learning OpenGL. Not too familiar with glfw, but it sounds similar to glut in one important aspect - both packages are fairly limited in user interface capabilities. If you ever...
  10. Glad to be of assistance.

    Glad to be of assistance.
  11. I believe that what you are asking is addressed...

    I believe that what you are asking is addressed by this demo I posted a while ago. Check it out.

    Object and Space Rotations
  12. Are you hoping that if you transfer 'out.exe' to...

    Are you hoping that if you transfer 'out.exe' to another computer, it will run by simply double-clicking on it? Because that's a longshot. It definitely won't work if the operating systems are...
  13. First, confirm it by monitoring how much RAM your...

    First, confirm it by monitoring how much RAM your application uses while it is running. If you have a leak, it will show up clearly. RAM usage will go up until the app. crashes.
  14. Sounds like a memory leak.

    Sounds like a memory leak.
  15. Help us to help you. Put your code inside [...

    Help us to help you. Put your code inside [ code] and [ /code] tags.
    Make it as easy to read as possible. Use indentation.
    There are too many blank lines and commented out lines.
    For example...
  16. Replies
    4
    Views
    672

    Is it possible that concave polygons could result...

    Is it possible that concave polygons could result from this approach?
  17. Look at the Nehe Legacy Opengl tutorials. Also,...

    Look at the Nehe Legacy Opengl tutorials.
    Also, look at the codeblocks documentation.
    They provide simple examples of Opengl projects.
    Starting from one of those, it should be easy to make a cube....
  18. Thread: Door animation

    by Carmine
    Replies
    5
    Views
    613

    Break it down into small steps. Forget about the...

    Break it down into small steps. Forget about the animation at first. Can you generate the same scene with the door opened 30 degs? That would be a big step towards your goal.
  19. Replies
    3
    Views
    769

    If you're polygon vertices are defined in...

    If you're polygon vertices are defined in 3-space, i.e. (x,y,z) coordinates, then z-buffering is automatically done for you by OpenGL. All you have to do is enable it.
  20. Thread: Starting out.

    by Carmine
    Replies
    8
    Views
    653

    The math which underlies 3D graphics viewing and...

    The math which underlies 3D graphics viewing and modeling transformations is matrix multiplication. Fixed function OpenGL sort of hides this from you, which is a good thing for beginners. Functions...
  21. Thread: Starting out.

    by Carmine
    Replies
    8
    Views
    653

    gluOrtho maps a volume of space to the...

    gluOrtho maps a volume of space to the window/viewport you've opened.
    Anything outside of the specified volume would not show up in your window.
    See...
  22. Replies
    2
    Views
    348

    glClear should only be used once in the display...

    glClear should only be used once in the display function.
    I think you're problem was due to not using glClear and glutPostDisplay quite right.
    A simplified version of your code is shown below. It...
  23. Thread: Frame Counter

    by Carmine
    Replies
    1
    Views
    345

    Perhaps base_time should be a static variable?

    Perhaps base_time should be a static variable?
  24. Thread: Text rendering

    by Carmine
    Replies
    4
    Views
    805

    Interaction with the code is done with functions...

    Interaction with the code is done with functions like glutKeyboardFunc, glutMouseFunc, etc.
    The code below shows how to set up the keyboard to toggle or reset global variables.
    Note that at the...
  25. Thread: Starting out.

    by Carmine
    Replies
    8
    Views
    653

    Making a simple bulldozer from scaled cubes is...

    Making a simple bulldozer from scaled cubes is trivial using modeling commands such as glScale, glTranslate, and glRotate. The harder part for a beginner would be opening a graphics window with an...
Results 1 to 25 of 381
Page 1 of 16 1 2 3 4