View Full Version : OpenGL points alternatives
Quaternion
06-05-2001, 11:57 AM
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).]
davepermen
06-05-2001, 12:02 PM
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 http://www.opengl.org/discussion_boards/ubb/wink.gif its the opengl forum here http://www.opengl.org/discussion_boards/ubb/wink.gif
jwatte
06-06-2001, 12:57 PM
Billboard some quads with an attractive-looking point texture on them.
MarkSnyder
06-06-2001, 01:10 PM
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.
Did you try enabling point smooth? That will at least make them round, which may be enough.
-- Zeno
further info about point smooth for round points.
u must also enable blending with GL_SRC_ALPHA, ONE_MINUS_SRC_ALPHA
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.