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.02 seconds.

  1. 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...
  2. 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...
  3. 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...
  4. Replies
    4
    Views
    148

    You may find 'gluBuild2dmipmaps' to be helpful.

    You may find 'gluBuild2dmipmaps' to be helpful.
  5. Replies
    12
    Views
    645

    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...
  6. Replies
    12
    Views
    645

    Let me know if it helped.

    Let me know if it helped.
  7. Replies
    12
    Views
    645

    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...
  8. Replies
    4
    Views
    354

    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.
  9. 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...
  10. Replies
    12
    Views
    645

    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. ...
  11. 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...
  12. 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...
  13. 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...
  14. 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.
  15. 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...
  16. 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...
  17. Replies
    4
    Views
    242

    Are you using double buffering?

    Are you using double buffering?
  18. 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...
  19. 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)....
  20. Replies
    4
    Views
    333

    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...
  21. 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...
  22. Thread: 3D rotation

    by Carmine
    Replies
    8
    Views
    609

    What U did is exactly what my post suggests. I'll...

    What U did is exactly what my post suggests. I'll take a look at your rectangle problem.

    To maintain the axial orientation of the box, you can do two rotations as shown in the code and figure...
  23. Thread: 3D rotation

    by Carmine
    Replies
    8
    Views
    609

    Let's call your first vector 'A' and the...

    Let's call your first vector 'A' and the destination vector 'B'. Only one OpenGL command is needed to rotate 'A' to 'B'. It's glRotatef (angle, u,v,w), where 'angle' is the angle between 'A' and...
  24. Thread: 3D rotation

    by Carmine
    Replies
    8
    Views
    609

    This is a more of a math question than a GL...

    This is a more of a math question than a GL question.
    It is more than a simple rotation because your destination line segment (1,1,1) is longer than your starting segment (0,0,1).
    Therefore it is a...
  25. Replies
    4
    Views
    333

    Try adding 'glClear(GL_COLOR_BUFFER_BIT)' to the...

    Try adding 'glClear(GL_COLOR_BUFFER_BIT)' to the top of the 'Soccer_Field' routine.

    Also, change the glOrtho parameters back to what you had before.
Results 1 to 25 of 326
Page 1 of 14 1 2 3 4