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

  1. Replies
    4
    Views
    312

    Perhaps the way you initialize xmin and xmax is...

    Perhaps the way you initialize xmin and xmax is the problem. Try something like below.


    xmin = pc[0].x;
    xmax = pc[0].x;

    for (i = 1; i < p.length; i++) {
    if (pc[i].x <...
  2. Sorry. Didn't see that. I think I understand...

    Sorry. Didn't see that.
    I think I understand what you want. It can be done easily using arbitrary clipping planes.
    See the documentation on glClipPlane. To me it's unintuitive, but it works.
    In...
  3. ??? Don't know what this means ??? Do you...

    ??? Don't know what this means ???


    Do you mean glScissor?


    It would help if you posted a picture pointing out what you don't like and what you want.
    Have a feeling it's pretty easy to do...
  4. I just tried googling "Visual C++ 2010 OpenGL...

    I just tried googling "Visual C++ 2010 OpenGL Example" and got many hits.
    The first one is a pretty good YouTube tutorial on how to set up an OpenGL project.
  5. If you're goal is to make it clear which is the...

    If you're goal is to make it clear which is the inside and outside surfaces of a sphere, I think there are better ways than what I've done below. Actually, I've done two things below. One is to...
  6. If the blue sphere is full, you wouldn't see any...

    If the blue sphere is full, you wouldn't see any of the green circles because they would be totally inside the sphere?
  7. There are 3 spheres in my figure. The left and...

    There are 3 spheres in my figure. The left and right spheres are only there to clarify my approach. The central sphere is the final product. Is this not what you asked for? If not, I don't know...
  8. Actually, with a little bit of finagling you can...

    Actually, with a little bit of finagling you can accomplish your goal using gluSpheres.
    An example with image and code is attached ...

    2321



    void Carmine_Spheres (void)
    {
    static int...
  9. Replies
    1
    Views
    236

    Hello Reserved - Took a look at your code...

    Hello Reserved -

    Took a look at your code today and tweaked it to make it work. The results are below. Tried to keep the programming style close to yours so you'd understand how it works. Your...
  10. Replies
    1
    Views
    280

    You might try the FLTK forum for this question.

    You might try the FLTK forum for this question.
  11. Move the Update routine above the handleKeypress...

    Move the Update routine above the handleKeypress routine.
  12. 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;
  13. Replies
    9
    Views
    723

    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.
  14. Replies
    5
    Views
    1,235

    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...
  15. 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 ...
  16. Replies
    1
    Views
    308

    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...
  17. Codeblocks provides a sample opengl project. ...

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

    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?
  19. Replies
    2
    Views
    838

    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....
  20. 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...
  21. Glad to be of assistance.

    Glad to be of assistance.
  22. 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
  23. 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...
  24. 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.
  25. Sounds like a memory leak.

    Sounds like a memory leak.
Results 1 to 25 of 392
Page 1 of 16 1 2 3 4