home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ray Tracing Box
/
RAY_CD.mdf
/
raytrace
/
povshell
/
povshell.doc
< prev
next >
Wrap
Text File
|
1994-01-17
|
22KB
|
531 lines
==============================================================================
POVShell Version 2.0
A Development Environment for POV-Ray
by Andreas Peetz [100101,1670]
==============================================================================
Contents:
1. Introduction
2. Installation/Quick start
3. Dialog elements
4. Menus, Commands and Hot keys
5. Editor keys
6. Option Quick keys
7. Special files and file formats
8. Warnings and errors
9. Distribution policy
10. Thanks
11. Contacting the author
1. Introduction
---------------
The 'Persistence of Vision Ray Tracer' (POV-Ray) is nowadays the most
sophisticated and best known non-commercial raytracing-program.
Its original authors, David Buck and Aaron Collins, and all the members
of the POV-Ray team have done (and are still doing) a pretty good job
on that program. I'd like to thank these guys for the many hours of
pleasure that I'm having with POV-Ray and the brilliant pictures produced
by it!
This description of the POVSHELL-program assumes that you are
familiar with using POV-Ray or at least own a version of
the POV-Ray-program. The actual version of PovRay is 2.1.
PovShell will also work with earlier versions and even with the
original DKB-Raytracer.
POV-Ray is designed to be a 'command-line-program', this means that you
have to supply all of its parameters on the command-line when calling
the program. This is fine for batch-processing, however, if you are
writing your own POV-Ray-scene-scripts, you have to run the program
repeatedly for quick preview-traces in order to test your scripts and
different parameter settings. You will soon get tired of typing the same
command-line over and over.
To become rid of that I wrote POVSHELL, a user-friendly easy-to-use
interface to POV-Ray. With POVSHELL you can
a) load and edit one or more POV-files,
b) set all raytrace-parameters via pulldown-menus
and option-windows
c) and finally call POV-Ray to trace the scene-file you are
currently editing with the parameters you have set.
POVSHELL was developed using the Turbo Vision-features of Turbo Pascal 6.0.
Turbo Pascal and Turbo Vision are registered trademarks of Borland
International, Inc.
2. Quick Start
--------------
2.1 Installation
The following files have to be copied to a directory of your choice (e.g.
the direcory of the POV-Ray-program):
POVSHELL.EXE (the executable)
POVSHELL.HLP (the help file)
*.TPL (template files)
That's all!
Note: If you are upgrading from version 1.0 of PovShell, you may replace the
old POVSHELL.EXE-file. Version 2.0 is fully compatible to version 1.0,
i.e. you can continue to use the DEF-files saved with PovShell 1.0.
2.2 Running the program for the first time
Note: Since version 2.0 context-sensitive help is available everywhere
in PovShell. Just press F1! For information on how to use the
Help system press F1 twice.
Start POVSHELL.EXE from the DOS-prompt. If this is the very first time you
are running POVSHELL, a dialog box will pop up where you have to specify
the default-POV-file-path, the default POV-Ray-output-path and the name of
the POV-Ray-executable.
This dialog-box can be activated later again via the Setup|Directories-
menuitem (see. 4.5). The information you enter will be saved in a file
and loaded whenever you run POVSHELL again. Close the box by pressing
ENTER or clicking the OK-button.
You will then see a desktop-screen with a menu-line at the top and a
status-line a the bottom. If you are familiar with the IDE of Turbo-Pascal
or any other Turbo-Language, you will 'feel at home' at once.
There are three ways to activate the menu-items:
a. Hold down the ALT-Key and press the red-typed character of the item.
Example: To open the 'File'-menu hold down ALT and F.
b. Press the F10-Key. You can then select an entry of the Top-menu-line
with the cursor-keys. Press RETURN to activate it.
c. If you have a mouse and a mouse-driver loaded (you will then see the
mouse-pointer on the screen), just move the mouse-pointer to the menu-
item and click on it.
Some commands can be activated by 'Hot keys', e.g. the File-open command
can be activated by pressing F3. All the Hot keys are listed at the bottom-line.
For now, press F3 to open a POV-file. A file selection box will appear.
Walk through the directories and pick one of the POV-files. If you are
confused now and don't know how to do this, refer to section 3 for further
assisstance.
Once you have opened a POV-file you will find it loaded into an editor-
window, where you can work on it (or not). For a description of the editor-
commands refer to section 5.
Now use the 'Options'-menu-items to set the trace-parameters. Assuming that
you are familiar with POV-Ray, you will certainly know the meaning of the
options and selections that are listed in the various dialog boxes. Again
further explanations can be found in section 4.
To trace the picture select the 'Run'-menu-item or just hold down the Ctrl-
key and press F9. If you have chosen to produce an output-file you will
be asked to name the output-file and then POV-Ray will be called with the
parameter-settings you have selected.
After tracing you will be returned to the POVSHELL-interface.
You may exit POVSHELL at any time by selecting 'Exit' from the 'File'-menu
or by pressing ALT-X.
2.3 Monchrome monitor support
People who want or have to use PovShell with a B&W-display should use the
commandline-switch /b to start the program. Type
POVSHELL /B
at the DOS-prompt!
3. Dialog Elements
------------------
The dialog-boxes offered by POVSHELL generally consist of three types
of elements: check-boxes, radio-buttons and input-lines. To switch between
the elements of a dialog-box use the TAB-key. To close a dialog-box
and confirm the changes made in it, press ENTER or click on the OK-button.
To close a dialog-box without changes press ESCAPE or click on the
Cancel-button.
3.1 Check-boxes [ ] [X]
Check-boxes are used for turning on and off various tracing-options, e.g.
anti-aliasing or the verbose-mode. If an option is turned off the check-
box looks like this: [ ]. if it is turned on it looks like this: [X].
Toggle with the space bar!
3.2 Radio buttons ( ) ()
Radio-buttons are used to select one (and only one) item out of a list
of items, e.g. to select the output-format (TGA, Dump or RAW).
If an item is selected the radio-button looks like this (), otherwise
like this: ( ).
Walk through the list with the cursor-keys, select one item with SPACE!
3.3 Input-lines
Whereever you have to enter a particular number (e.g. the output-file-
buffersize) or a filename (e.g. the output-filename) you will be prompted
for it in an input-line. Just type the values you want to use. If your
input is incorrect or out of range it will be rejected!
4. Menus, Commands and Hot keys
-------------------------------
4.1 File menu
- Open... : lets you select a POV-file that will be loaded into a
new editor window
- New: opens a new empty editor window
- Save: the file you are currently editing will be saved
- Save as...: the file you are currently editing can be saved under a
name of your choice
- DOS shell: opens a DOS shell. Return by typing EXIT at the DOS-prompt!
- Exit: Leave program. If you have unsaved files open, you will be
prompted to save them.
4.2 Edit menu
- Undo: lets you undo the last change you made to the current
editor window.
- Cut: cuts the selected text out of the current editor window and
places it in the clipboard. Select text by holding down SHIFT
and moving the cursor or by moving the mouse with the left
button pressed.
- Copy: copies selected text to the clipboard.
- Paste: inserts text from the clipboard to the current editor window
- Show clipboard: shows the clipboard window. The clipboard is a special
editor window which is used to exchange text-blocks between
two 'normal' editor windows
- Clear: clears the selectes text from the current editor window.
4.3 Search menu
- Find...: lets you find a string in the current editor window
- Replace: lets you find and replace a string by another string
- Search again: finds a string that was searched for again.
4.4 Window menu
- Size/Move: resize and move an editor window on the desktop
- Zoom: zoom an editor window to cover the whole desktop
- Tile: tile editor windows on the desktop
- Cascade: cascade them
- Next window: switches to next editor window
- Previous window: switches to previous editor window
- Close: closes the active editor window
4.5 Options menu
- Output...: (±Fx, ±C, ±B)
lets you specify the output-format, continue flag and output
-buffersize
Note: In version 1.0 of PovShell you also had to specify
the output-filename in this dialog-box. This has been
changed. You will now be asked for the output-file-name
each time you start a trace (see. 4.8 Run)
- Display...: (±D, +W, +H)
for the specification of the display-adapter, image-width
and image-height
- Trace...: (+Q, ±A, ±J, +R, ±MB, +MS, +MV)
lets you specify the rendering-quality, anti-aliasing,
anti-aliasing-jitter and -number of rays, the bounding
slabs-option, symbol-table-size and version compatibility mode
- Libraries...: (+L)
These are the paths that are passed to
POV-Ray via the +L option. Specify up to 10 paths,
separated by ;
- Misc...: (±V, ±P, ±X, +K, +S(R), +SC, +E(R), +EC)
lets you toggle the verbose, pause after trace and
early exit-flags, a clock value, and start/end-rows/columns
of tracing
- Save options...: lets you save the currently selected tracing parameters
in a DEF-file.
- Save Default options: saves options in the DEFAULT.DEF-file (see 7.2)
- Retrieve options...: lets you retrieve parameter settings that were
saved before.
4.6 Setup menu
- Directories...:
1. Default POV-file-path: this is the directory POVSHELL
will change to when you choose to open a POV-file
2. Default-Output-path: this the directory where the output-files
will be written to unless you do not change the directory
when prompted for the output-file-name.
If you leave it blank, the default-output-path will be the
directory of the POV-file you want to trace
3. Executable path: This is the path to the executable
POV-Ray-program (normally POVRAY.EXE).
Specify the full file name, e.g. C:\POV\POVRAY.EXE.
- Editor...: 1. Create Backup files: if you choose this item, the editor
will save a copy of each file you open using a BAK-extension
2. Insert-Mode: if selected the editor-cursor will be in
insert-mode on startup. You can toggle this by pressing
the Insert-Key or CTRL-V.
3. AutoIndent-Mode: if selected the editor will use the
autoindent mode, i.e. each time you begin a new line
the cursor will be placed in the column were the above
line starts. Good for writing structured scripts.
4. Save Desktop on exit: if selected PovShell will save the
names of all open files on program-exit. They will then be
reopened automatically on the next startup (cf. 7.5)
- Colors...: Lets you customize the PovShell colors (look at the online help
for a detailed description of the dialog box!).
This command will not be available if you tell PovShell to use
the B&W-palette by using the commandline-switch /b !
4.7 Templates menu
In this menu you get a list of predefined PovRay-templates. If you select
e.g. the CAMERA-item the following will be inserted in the current POV-file
at the actual cursor position:
camera {
location < , , >
look_at < , , >
}
Note: You can change the text of the templates by editing the related
TPL-file in the PovShell-directory. You can also create new Template-
files. They will then appear in the Templates-menu when you start
PovShell again.
In the TPL-files lines starting with a semi-colon will be ignored
by PovShell. So they can be used for comments.
The number of templates is actually limited to 22.
4.8 Run
Runs POV-Ray with the file you are currently editing and the actual
parameters settings.
If you have selected an output-format other than 'none' you will be
asked to name the output-file before PovRay is launched.
Default is: Default Output-file path from SETUP|DIRECTORIES...
+ the name of the POV-file you are tracing
+ an extension that is generated from the output-format
4.9 About
Displays the About-box that can be seen at program start.
4.10 Hot-Keys
- F1: context sensitive help
- F2: save file
- F3: open file
- Alt-F3: close file
- F5: zoom editor window
- Ctrl-F5: size/move window
- F6: next window
- Shift-F6: previous window
- Ctrl-F9: run
- F10: menu
- Alt-X: Exit
5. Editor keys
--------------
The Editor uses WordStar-compatible key-commands:
5.1 Cursor movement
Ctrl-E: cursor up Ctrl-X: cursor down
Ctrl-S: cursor left Ctrl-D: cursor right
Ctrl-A: word left Ctrl-F: word right
Ctrl-R: scroll page up Ctrl-C: scroll page down
5.1 Delete commands
Ctrl-G: delete character under the cursor
Ctrl-H: delete character left of the cursor
Ctrl-T: delete word beginning at cursor position
Ctrl-Y: delete actual line
5.2 Quick keys
Ctrl-Q-A: Replace a text string Ctrl-Q-C: Go to the end of the text
Ctrl-Q-D: Go to the end of the line Ctrl-Q-F: Find a string
Ctrl-Q-H: Delete line up to cursor Ctrl-Q-R: Go to the top of the text
Ctrl-Q-S: Go to line start Ctrl-Q-Y: Delete line beginning at cursor
5.3 Block keys
Ctrl-K-B: Mark start of Textblock Ctrl-K-C: Paste block from Clipboard
Ctrl-K-H: Toggle block-highlight Ctrl-K-K: Copy block to Clipboard
Ctrl-K-Y: Cut block to Clipboard
5.4 Others
Ctrl-L: Search again
Ctrl-V: Toggle Insert mode
Ctrl-M: New line (=RETURN)
6. Option Quick keys
--------------------
You have now a quick key access to all PovRay-options. You need not to use
the Options...-menu, if you remember the letter of the PovRay-option you
want to change, just press Ctrl-O and then this letter (e.g. Ctrl-O-V to
change the verbose option). Then the appropiate dialog box will pop up
and lets you make your changes.
Ctrl-O-A: AntiAliasing Ctrl-O-B: Buffersize
Ctrl-O-C: Continue Ctrl-O-D: Display-Adapter
Ctrl-O-E: End-Row/-Column Ctrl-O-F: Outputformat
Ctrl-O-H: ImageHeight Ctrl-O-J: AAJitter
Ctrl-O-K: Clock-Value Ctrl-O-L: Library-paths
Ctrl-O-M: Bounding slabs Ctrl-O-P: Pause when finished
Ctrl-O-Q: Quality Ctrl-O-R: Number of AA-rays (to be squared)
Ctrl-O-S: Start-Row/-Column Ctrl-O-V: Verbose
Ctrl-O-W: Image Width Ctrl-O-X: Allow early exit
7. Special files and file formats
---------------------------------
7.1 POVSHELL.CFG
POVSHELL will store the Default-POV-file-path, the output-path, the
path to the executable, its editor settings and color informations
in the file POVSHELL.CFG.
DO NOT EDIT THIS FILE! Use the appropiate commands and menus in POVSHELL to
change the parameters.
POVSHELL.CFG will be stored in the directory where POVSHELL.EXE resides.
It will be read by the program every time it is started and it will be
written every time you exit it.
7.2 DEFAULT.DEF
On startup, POVSHELL will scan the directory where POVSHELL.EXE resides
for a file named DEFAULT.DEF. If it is found the options stored in it
will be loaded.
There is no need to edit this file! If you want to save or change startup
options, select the Options|Save default options-menuitem.
7.3 DEF-File formats
Note:
a. If you have DEF-files written on your own you can load then into POVSHELL
via the Options|Retrieve Options...-menuitem!
b. If you have saved options from POVSHELL via the Options|Save Options...-
menuitem into a DEF-file you can also use these files outside POVSHELL by
typing
POVRAY +i<inputfile> +o<outputfile> <DEF-file>
at the DOS-prompt.
c. If you save options only those parameter settings will be written into
the DEF-file which are NOT the POV-Ray-DEFAULT settings!
7.4 TPL-Files (Templates)
Text-files with a TPL-extension will appear in the PovShell-Templates
menu. If you select an item of the Templates-menu the related file will
be inserted at the current cursor-position.
You may edit the pre-defined TPL-files or create new ones using the PovShell-
Editor or any other ASCII-text-file-editor.
For more information on TPL-files see section 4.7.
7.5 POVSHELL.DSK
This is the PovShell-Desktop file. If you have chosen the 'Save Desktop
on exit'-item in the Setup|Editor...-dialog-box all open files (i.e. their
names) will be saved in the Desktop-file when you exit the program.
On the next PovShell-startup the files listed in the Desktop-file will be
automatically reopened.
NEVER EDIT this file!
7.6 POVSHELL.HLP
This is the PovShell-helpfile. It includes all the help texts and binary
coded information on indices and hyper-links. NEVER EDIT this file!
PovShell will still work when the help file gets lost, but it *will*
crash if it gets corrupted!
7.7 Temporary files
Every time you call 'Run' from the POVSHELL-menu the following will happen:
1. The contents of the active editor-window will be saved in a temporary
file named $SHELL$.POV.
2. The actual parameter settings will be saved in a temporary file
named $SHELL$.DEF.
3. POVRAY.EXE is called using the temporary files.
4. The temporary files are deleted.
Normally the temporary files are stored in the actual directory. However,
if you have a DOS-environment-variable TEMP defined, the files will be
written to the directory where TEMP is pointing to.
If you want to use this feature place a command like
SET TEMP=C:\TEMP
in your AUTOEXEC.BAT and make sure that the specified directory exists!
8. Warnings and errors
----------------------
8.1 Output-file exists and CONTINUE is set to NO!
OK to overwrite?
This message occurs when the output-file you have specified already exists,
and the continue flag is set to NO, preventing you from unintentionally
overwriting the output-file. If you really want to overwrite it, just press
RETURN. If you want to keep it, press ESCAPE, select Run again and enter
a different outputfile-name.
8.2 DOS-Error xxx occured on execute! Check execution path in
SETUP|DIRECTORIES...
This message occurs when POVRAY.EXE could not be executed properly. A possible
reason is a wrong execution path entered in the Setup|Directories-dialog-box.
8.3 PovRay completed successfully.
Just an informational message. It says that ... (you guessed it!)
8.4 Error(s) reported by PovRay!
Possible reasons: Syntax errors in the script, unaccessible include files
or bitmaps, ... Look at PovRay's error messages, check the include-path.
8.5 Trace aborted.
This message pops up when you had the +x option enabled and interrupted
the trace by hitting a key.
8.6 Not enough memory for this operation.
Occurs when you opened too many files, or when you try to open a file that
is too big.
Note: File-size is limited to 64 KB.
There are a lot more error messages, but they are all self-explaining...
9. Distribution policy
----------------------
POVSHELL Version 2.0 is FREEWARE. This program may be used, copied and
disitributed without charge.
However, it is strongly recommended that the code and the documentation of
the program remain unchanged when distributed.
If you decide to upload POVSHELL to your favourite BBS or to an internet
site, please supply ALL the files that came with the program and send me
a short message containing the date of upload and the name, location and
phone number of the BBS, resp. the name and address of the internet-server.
POVSHELL consists of the following files:
POVSHELL.EXE (the executable)
POVSHELL.DOC (this file)
WHATSNEW.DOC (What's new in this release)
README.1ST (important notes)
AREA_LIG.TPL (pre-defined Template-files)
BOUNDED.TPL
BOX.TPL
CAMERA.TPL
CLIPPED.TPL
COLORMAP.TPL
CONE.TPL
FINISH.TPL
HEIGHT.TPL
IMAGE_MA.TPL
LIGHT.TPL
LOOKS_LI.TPL
NO_SHADO.TPL
PLANE.TPL
SPHERE.TPL
SPOTLIGH.TPL
TEXTURE.TPL
10. Thanks
----------
I want to thank all the people who helped me to improve POVShell since
the last release in Dec.1993.
Special thanks are going to Dan Farmer for a critical review of version 1.0
and to Webb Moore for his idea of adding the template-macro feature and
supplying the pre-defined TPL-files.
11. Contacting the author
-------------------------
If you have anything to say about the POVSHELL-program please do not hesitate
to contact me!
Questions, positive and negative comments, suggestions on improvements and
especially bug reports are always appreciated!
If you are on CompuServe, place a message in the 'POV Sources'-section of the
GRAPHDEV-forum or contact me via
CompuServe Mail: [100101,1670]
or Internet Mail: peetz@biochem.hoechst-ag.d400.de
Internet Mail is preferred and read daily!
Thanks for your interest in POVSHELL. Enjoy the program!
Andreas Peetz