• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Makefile.SHH A D03-May-20222.7 KiB12973

READMEH A D10-Feb-19921.8 KiB3528

glgraphics.cH A D10-Feb-19922.8 KiB15189

main.cH A D10-Feb-19922.6 KiB13158

render.cH A D10-Feb-199217 KiB699557

version.cH A D10-Feb-1992852 3510

xgraphics.cH A D10-Feb-19927.6 KiB288213

README

1Raypaint reads a rayshade input file and opens a graphics window into
2which the image is progressively rendered.  Graphics support routines
3are provided for X11 and GL (SGI / RS6000).  Note that raypaint displays
4a greyscale image when running under X.
5
6Command-line arguments to raypaint are identical to rayshade arguments.
7
8By default, raypaint refines areas of the image that it considers
9"interesting" (largish and contrasty).  The mouse may be used to direct
10raypaint to concentrate on particular regions.  Holding down the
11left mouse button causes the indicated region to be single-sampled down
12to the pixel level.  The right button causes the region to be supersampled.
13When either button is released, raypaint continues to refine by
14either single-sampling (if the left button was pressed) or supersampling
15(if the right button was pressed).  If either button is pressed while the
16cursor is pointing at a region that has already been resolved to the
17pixel-level, raypaint will instead choose its own region to refine.
18
19The middle mouse button may be used to sweep out a rectangular region to
20which raypaint should restrict its refinement:  Press and hold the middle
21mouse button while pointing at one corner of the region of interest,
22drag the cursor to the opposite corner and release the mouse button.
23Note that no rectangle will be drawn.  Refinement will continue inside
24of the indicated region.
25
26When every pixel has been sampled, an image file is written.
27
28Note that raypaint is intended to be an example application, not a
29polished tool.  You are encouraged to tear apart raypaint to improve
30it or build your own application.
31
32To compile, move either xgraphics.c (X11) or glgraphics.c (SGI) to
33graphics.c, edit the Makefile and change GRAPHICSLIB to reflect your
34choice of graphics support, and run make.
35