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 15 1 2 3 4

Search: Search took 0.01 seconds.

  1. 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...
  2. 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.
  3. Sounds like a memory leak.

    Sounds like a memory leak.
  4. 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...
  5. Replies
    4
    Views
    458

    Is it possible that concave polygons could result...

    Is it possible that concave polygons could result from this approach?
  6. 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....
  7. Thread: Door animation

    by Carmine
    Replies
    5
    Views
    500

    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.
  8. Replies
    3
    Views
    489

    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.
  9. Thread: Starting out.

    by Carmine
    Replies
    8
    Views
    571

    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...
  10. Thread: Starting out.

    by Carmine
    Replies
    8
    Views
    571

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

    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...
  12. Thread: Frame Counter

    by Carmine
    Replies
    1
    Views
    216

    Perhaps base_time should be a static variable?

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

    by Carmine
    Replies
    4
    Views
    412

    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...
  14. Thread: Starting out.

    by Carmine
    Replies
    8
    Views
    571

    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...
  15. Thread: Text rendering

    by Carmine
    Replies
    4
    Views
    412

    It's good that you posted some code and described...

    It's good that you posted some code and described your problem.

    It would have been better (i.e. more enthusiastic responses),
    if your code had been enclosed in [ code] and [ /code] tags,...
  16. Replies
    1
    Views
    203

    I found tinyobj easy to work with. They give you...

    I found tinyobj easy to work with.
    They give you source code as opposed to a library.
    Google it.
  17. Replies
    1
    Views
    170

    Post your code and explain where you run into...

    Post your code and explain where you run into trouble.
  18. Replies
    6
    Views
    503

    ??? These are contradictory statements. ????

    ??? These are contradictory statements. ????
  19. Thread: Robot Arm

    by Carmine
    Replies
    2
    Views
    321

    You won't understand it if someone gives you the...

    You won't understand it if someone gives you the 'full code'.
    You have to work through it to learn it.
    Start simple. Draw the first block, i.e. the one on the left of your diagram.
    Look at intro...
  20. First of all the background color you set is not...

    First of all the background color you set is not being displayed.
    This is because you asked for double buffering but never call glutSwapBuffers.
    It must be called at the end of your display()...
  21. Replies
    3
    Views
    322

    Take it one step at a time. Can you display a...

    Take it one step at a time. Can you display a plane moving across the screen?
  22. Replies
    3
    Views
    438

    http://www.opengl.org

    http://www.opengl.org
  23. Out of curiosity, what happens if you don't call...

    Out of curiosity, what happens if you don't call glClear the second time?

    I would look into using stencil planes.
    Draw the foreground first using nearFWD and farFWD.
    Use the same foreground...
  24. The Z coordinates of the terrain data in the...

    The Z coordinates of the terrain data in the tutorial run from 1 to 10.
    You've put the camera at z = 5.0, right in the middle of the data field.
    Not surprising you don't see much.

    I try to avoid...
  25. You realize that the tutorial you are following...

    You realize that the tutorial you are following is incomplete, right?
    There's stuff left out because they've been covered in previous tutorials.
    For example, that tutorial AND your code never set...
Results 1 to 25 of 370
Page 1 of 15 1 2 3 4