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

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    441

    Re: Printing the WGL fonts

    You would need to be a bit more specific, maybe you can post som part of your code, there are a lot of different things that can cause problems.
  2. Replies
    9
    Views
    1,446

    Re: Zoom a drawing

    gluLookAt should not be used to zoom as it will not perform a zoom it will move the viewpoint.

    If you want to zoom the only thing you need to do is to change the last parameter in the...
  3. Replies
    2
    Views
    259

    Re: Printing OpenGL objects

    I have no idea on this it all depends on how Qt does the printing, I think you should try on the Qt forum and see if they know more about it.
  4. Re: resources on creating images for use with glDrawPixels

    OpenGL does not help you with this, you have to load the images into memory yourself, and tell OpenGL in what format they are in the buffer when you use them.

    I suggest you have a peek on the...
  5. Replies
    4
    Views
    326

    Re: Selection problem

    You call gluPickMatrix(...) before you call glMatrixMode( GL_PROJECTION) and that looks a bit odd to me.
  6. Re: Resize a window without deformation

    Check your glViewport calls so that you update your viewports at when the window changes size.
  7. Replies
    3
    Views
    457

    Re: Zoom window in Perspective view?

    I suggest to have a look at glFrustum, you can use that instead of gluPerspective, you would have to do some math to calculate the correct values but it's not that difficult to do.
  8. Re: Closing OpenGL window in multithreaded application

    Well, as you use glut this might be the problem, glut was never designed to work in a multithreaded environment, have you tried to create the second window in the same thread as the main window ?...
  9. Replies
    12
    Views
    1,225

    Re: making a series of cubes

    Do you want to use glDepthFunc( GL_LEQUAL) ? and not GL_LESS ?

    I would assume GL_LEQUAL would give some weird results.
  10. Replies
    3
    Views
    393

    Re: Twisted cylinders

    As I said, Mesa has the GLU source for creating a cylinder in OpenGL, to add twisting is pretty simple so you can do that yourself without to much work.
  11. Replies
    3
    Views
    393

    Re: Twisted cylinders

    Look at the source code for GLU (you can find it for example if you download Mesa www.mesa3d.org)

    Adding the twist is very simple (as long as it is along the cylinder center axis) once you...
  12. Replies
    1
    Views
    397

    Re: Two Viewports

    With viewports I assume you mean that you show different viewports in one single window, and as you speak about keyboardfunctions I guess you use GLUT, is this correct ?

    To get any kind of help...
  13. Re: How to move a vertexarray to another point in space?

    You do not need any math knowledge to move your geometry, have a look at transformation in any OpenGL tutorial.

    A short hint is to put a glTranslated( x, y, z) before you render your geometry, if...
  14. Replies
    7
    Views
    658

    Re: Software Occlusion Culling

    There are a number of libraries out there to do video decoding (most for MPEG video), but it all depends on your license demands.
  15. Replies
    1
    Views
    257

    Re: polygon render side problem

    Sounds like a good idea, try and see if it works.

    As a quick test you could just flip the normals (negate all three values).
  16. Replies
    2
    Views
    254

    Re: picking

    glMatrixMode( GL_MODELVIEW);.... what matrix are your glTranslate/glRotate messing with ?
  17. Thread: sphere

    by mikael_aronsson
    Replies
    1
    Views
    171

    Re: sphere

    Use a glu sphere or you can get round GL_POINTS, make sure that you have:
    - blending enabled.
    - blend function like SRC_ALPHA,ONE_MINUS_SRC_ALPHA for example.
    - Make sure the points are valid size...
  18. Re: How to read models from different files and arrange them in a scene?

    Get yourself a tutorial on transformations in OpenGL (google or this website for example).

    You do something like this in your rendering code:


    // For each model you want to render
    ...
  19. Replies
    1
    Views
    434

    Re: Zooming and Preserve aspect ratio

    Orthographic projection is a "fake" 3D view without perspective depth and works fine for displaying 2D stuff like your image, i.e things don't get smaller with distance, if you look at gluPerspective...
  20. Replies
    2
    Views
    456

    Re: Box selection instead of picking

    Try something like this instead.



    int xsize=Math.abs(x0-x);
    int ysize=Math.abs(y0-y);
    gluPickMatrix( Math.min(x0,x)+xsize/2.0,
    Math.min(y0,y)+ysize/2.0, xsize, ysize);
    I have not tried...
  21. Re: vertex arrays, culling for a performance boost

    Yes you minimize the overhead of glVertex() calls and if vertices are used many times you only need to specify them one time, you should get a little improvment at least I guess.

    So you would...
  22. Replies
    7
    Views
    1,664

    Re: gluPerspective alternative?

    He was interested in how to do it, this can be found out be looking the the GLU source code in Mesa, this does not mean he has to copy the source code from Mesa, this will not have any impact on the...
  23. Replies
    7
    Views
    1,664

    Re: gluPerspective alternative?

    So what's wrong with Mesa then ?

    The SGI sample application source is also available (you can find link on Mesa website)

    Mikael
  24. Replies
    2
    Views
    440

    Re: Drawing a circle in pixels

    Hmmm, why use glDrawPixels ? and if you are then I assume you already have your circle some where in a buffer and want to draw it ? then just have a look at the documentation for glDrawPixels.
    ...
  25. Replies
    8
    Views
    606

    Re: Getting screen width/height

    This kind of information is pretty easy to find in the documentation for your OS, isn't anyone reading the docs any longer ?

    If you use Windows just go to msdn.microsoft.com, the entire MSDN...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4