Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: OpenGL points alternatives

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Location
    Israel
    Posts
    159

    OpenGL points alternatives

    I am working on a 3D editor and I need to mark points on the objects in the editor. OpenGL points are very unattractive (visually). I would like to know what is the most attractive way to create points, maybe using sprites?

    The biggest problem is that the points are getting into the object (I must not disable Depth test).

    I would like to have points like in 3D Studio Max.

    Thanks.

    [This message has been edited by Quaternion (edited 06-05-2001).]

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: OpenGL points alternatives

    glPointSize( size ) perhaps ( to get them bigger )

    EXT_POINT_PARAMETERS to get some z-division on it..

    point_sprites you have to do in software.. no one wants to write an

    EXT_POINT_SPRITES extension.. boring but true.. use dx there you can do it.. no dont use it its the opengl forum here
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: OpenGL points alternatives

    Billboard some quads with an attractive-looking point texture on them.
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Phoenix, AZ 85306
    Posts
    3

    Re: OpenGL points alternatives

    Or use a bitmap font with a point character or asterisk or whatever character you need in a single character string. This avoids rotating and scaling with a billboard. It will always be constant size, but will translate/rotate with the scene.

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    San Diego, CA, USA
    Posts
    769

    Re: OpenGL points alternatives

    Did you try enabling point smooth? That will at least make them round, which may be enough.

    -- Zeno

  6. #6
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: OpenGL points alternatives

    further info about point smooth for round points.
    u must also enable blending with GL_SRC_ALPHA, ONE_MINUS_SRC_ALPHA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •