[comp.sys.hp] Colored points in Starbase.

beshers@cs.columbia.edu (Clifford Beshers) (05/08/91)

I've recently been doing some animation using Starbase that
consists solely of points.  Interestingly, the only way to
display a single 3D point is with the marker function.  Using
polymarker works quite well.  I can get between 10 and 30
thousand points per second.  Unfortunately, they are all of the
same color.  The polymarker function seems to ignore the
color/vertex specification I give it and just uses the marker
color.

The only other way to draw points is by drawing small lines,
which is costly both in space and time.

Does anyone know of a faster way of drawing 3D colored points?

Thanks,

Cliff

--
-----------------------------------------------
Clifford Beshers
450 Computer Science Department
Columbia University
New York, NY 10027
beshers@cs.columbia.edu

billk@hpsad.HP.COM (Bill Katz) (05/08/91)

	Try the marker_color() command.  From the polymarker(3G) man page:

          The marker is drawn with the current marker_color.  As  with
          all output primitives, polymarker is affected by the current
          drawing_mode and write_enable.

     MARKER_COLOR(3G)                                 MARKER_COLOR(3G)

     NAME
          marker_color  -  select  color  for  subsequent   polymarker
          primitives

	.
	.
	.

          Polymarker primitives are altered by this procedure.

	Hope this helps.

Disclaimer:  I just work on Spectrum Analyzers, I don't speak for HP.


______________________________________________________________________________

   _   /| 	-ACK!        Bill (the) Katz     Internet: billk@hpsad.hp.com
   \'o.O'	-PFHHHT!     Hewlett-Packard         UUCP: hplabs!hpsad!billk
   =(___)=	-COUGH!      Signal Analysis Div.   Phone: (707) 794-2300
      U		-ACK!	     1212 Valley House Dr.    Fax: (707) 794-4452
			     Rohnert Park, CA 95428
______________________________________________________________________________

lang@hpfcso.FC.HP.COM (John J. Lang) (05/10/91)

>	Try the marker_color() command.  From the polymarker(3G) man page:

marker_color can be used to set the color of markers, but every marker in
a single polymarker is still the same color.  It would be possible to follow
each marker color with a single point marker, but with a large loss in
performance.

Another way to do points besides move/draws is single pixel block_writes.
If you are willing to work in a 2d space, this may be a faster solution.

At HP-UX 8.0 a polypoint primitives was added.  It does support color
per vertex, but is only supported on the Turbo VRX.  I know of no plans
to support it on other current devices.

John Lang
HP-UTD Fort Collins, CO
Any opinions are mine, HP will listen to them if it wants to.