<<<<<<<<<<<<<<<<<

vogle_ps(vogle) Vogle vogle_ps(vogle)

NAME

vogle_ps - a VOGLE renderer with a PostScript device driver

DESCRIPTION

The vogle_ps class renders an image defined with LYMB objects (camera, lights, actors and modellers) using the public domain VOGLE rendering library producing output for a PostScript device. The image can be sent to an output file, or to standard output.

SUPERCLASS

vogle_ps

MESSAGES

device_name? Returns the string "postscript".

expose! Overrides inherited method. The expose! message is sent after each image has been drawn by the renderer class. It is overridden here to call clear() in the VOGLE library, which produces a "showpage" for the PostScript device.

EXAMPLES

The following LYMB script demonstrates how an image is defined in LYMB. A camera is created which describes the view. A light is created which provides illumination. A geometric object is defined using a modeller and an actor. Finally, a renderer is created and informed about the elements (camera, light, actor) that comprise the image. The image is drawn by sending a render! to the rendering instance.

camera new: acamera position=(8,8,8) focal_point=(0.0,0.0,0.0) view_angle=30 on! ;

light new: alight position=(10,5,8) on! ;

cylinder_modeller new: cylinder_model;

actor new: cylinder color=(1,0,0) modeller=cylinder_model ;

vogle_ps new: arenderer actors=cylinder cameras=acamera lights=alight ;

arenderer render!;

SEE ALSO

actor, camera, light, renderer, model, phigs, gl, starbase, vogle_modeller, vogle_curses, vogle_sun, vogle_tek, vogle_x11

NOTES AND BUGS

The output will be sent to standard out, unless the inherited instance variable "output_file" has been set.

Color is not supported using vogle_ps.


Please send comments and suggestions to
consult@rpi.edu