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

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    91

    I just took a look at some bvh files. They seem...

    I just took a look at some bvh files. They seem to come in two parts: 1) define the topology of a stick figure, and 2) list the motion data. To model this using OpenGL in the most general case,...
  2. Replies
    6
    Views
    91

    You have modeling transformation commands like...

    You have modeling transformation commands like glRotate between glBegin and glEnd. This is not allowed (look at the docs). It probably compiled and ignored those glRotates and glTranslates. You'll...
  3. I just posted some code/animation...

    I just posted some code/animation that shows how to do this and then some. The demo shows how to implement rotations around screen-fixed axes and/or body-fixed axes. The type of rotations you want...
  4. Replies
    0
    Views
    108

    Fixed Pipeline Axis Relative Rotations

    The self-contained GLUT demo below shows a way to implement OpenGL axis-relative rotations using fixed-function OpenGL. A simple robot model is interactively rotated around the screen axes (xyz) or...
  5. Thanks for taking the time to post. I am working...

    Thanks for taking the time to post. I am working on a response, but I must be sure I understand what your goal is. Because, there are lots of people out there who would want their rotations to behave...
  6. Rotation Sequences

    This might be your problem. If so, you can still use glRotatef, if done correctly.

    I doubt the problem is gimbal lock.

    But I still don't understand your problem. Rather than trying to explain...
  7. Not sure what you mean. Do you understand Push...

    Not sure what you mean. Do you understand Push and PopMatrix? In the code below, the modeling transformations on lines AAAAA, BBBBB, and CCCCC would only be applied to Object_A. Without the Push...
  8. Replies
    4
    Views
    220

    You may find 'gluBuild2dmipmaps' to be helpful.

    You may find 'gluBuild2dmipmaps' to be helpful.
  9. Replies
    12
    Views
    772

    Did you realize that you don't have to use...

    Did you realize that you don't have to use texture mapping to get the color gradient in your example?
    If you give the vertices of a polygon different colors, gl interpolates color across the surface...
  10. Replies
    12
    Views
    772

    Let me know if it helped.

    Let me know if it helped.
  11. Replies
    12
    Views
    772

    Positioning of the glLightfv statement has a...

    Positioning of the glLightfv statement has a major effect on lighting of the scene. In position marked AAAAAAAA the light source does not move with the objects in the scene. In position marked...
  12. Replies
    4
    Views
    414

    I used Microsoft Visual C++ at work for many...

    I used Microsoft Visual C++ at work for many years. It was quite satisfactory and improved with each release. At home I use code::blocks on an imac. MVC++ on Windows is WAY better than CB on the mac.
  13. Looks like an aliasing artifact to me. Try...

    Looks like an aliasing artifact to me. Try making the cuboids exactly the same size. This would put vertices of neighboring cuboids exactly on top of each other. In the figure, it looks like the...
  14. Replies
    12
    Views
    772

    I also can not insert images directly from my...

    I also can not insert images directly from my computer. A workaround is to upload the image to free image hosting site. There are sites set up to store images specifically for posting to forums. ...
  15. Not sure what you mean. I've written an STL...

    Not sure what you mean. I've written an STL displayer that can rotate a model independent of the unit box and original axes. Is this what you had in mind? BTW - this is done with one light source...
  16. You have declared two display functions using...

    You have declared two display functions using glutDisplayFunc. One of them is being ignored.
    I'm curious to see what your graphics look like. Are you seeing what you expected?
    Can you post a...
  17. You're taking a bit of a chance initializing your...

    You're taking a bit of a chance initializing your max and min variables using the code below.
    What happens if you get an STL model with all coordinates less than zero?
    This which would lead to...
  18. I don't see glEnable(GL_NORMALIZE) in your code. ...

    I don't see glEnable(GL_NORMALIZE) in your code. Should probably go in your initWindow routine.
  19. Oops. My bad. Just looked up .stl format and...

    Oops. My bad. Just looked up .stl format and found that normals are specified, so you don't have to calculate them. This simplifies things for you. I'd still go back to rendering a solid cube to...
  20. Glad to hear you got it working. A suggestion...

    Glad to hear you got it working.

    A suggestion to speed up your program. STL files can be very large. You don't want to be calling calculamaxmin every time you update the display. It only needs...
  21. Replies
    4
    Views
    280

    Are you using double buffering?

    Are you using double buffering?
  22. It's quite possible that u, v, and w will be 0.0....

    It's quite possible that u, v, and w will be 0.0. It means that the origin of the STL model is (0,0,0).
    That will not mess up the procedure I have given you because further up in the code you...
  23. Try to display BOTH the cube and the STL model on...

    Try to display BOTH the cube and the STL model on the screen at the same time. If everything works correctly, the model should show up totally contained within the cube (displayed in wireframe mode)....
  24. Replies
    4
    Views
    363

    I suggest you experiment with the circle routine...

    I suggest you experiment with the circle routine I posted. Try changing some of the numbers to see what happens. The size, position, and shape of the circle can all be controlled by changing those...
  25. My approach is to write a basic program that can...

    My approach is to write a basic program that can display a cube whose dimensions go from -1.0 to +1.0 in all 3 directions. You do not need gluLookAt to do this. You also do not need the variable...
Results 1 to 25 of 330
Page 1 of 14 1 2 3 4