home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn 3D Graphics Programming on the PC
/
Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso
/
rwwin
/
rwpaint.tx_
/
rwpaint.bin
Wrap
Text File
|
1995-11-14
|
10KB
|
220 lines
RenderWare(tm) v1.4 FCS MS Windows Demonstration Programs
=============================================================
----------------------------------------------------------------------------
This demonstration program is copyright Criterion Software Limited 1994.
Criterion Software grants you a license to use it only in the form as
supplied. You may not disassemble, decompile or reverse engineer this
demonstration program.
This demonstration programs is provided as is with no warranties of any
kind. Criterion Software will not, under any circumstances, be liable for
any lost revenue or other damages arising from the use of this
demonstration programs.
RenderWare is a registered trademark of Canon Inc.
Other trademarks acknowledged.
----------------------------------------------------------------------------
Installation
============
In order to ensure that RWPAINT.EXE can load all the sample scripts
supplied with RenderWare it is necessary to set the environment variable
RWSHAPEPATH. The environment variable RWSHAPEPATH should be set to point
to the directories containing the script and texture files to be
loaded. (Suitable sample scripts and textures may be obtainde from the
other RenderWare demonstration programs.)
Please note that this must be done outside of MS Windows; it
cannot be done from a DOS window under Microsoft Windows, To set
the environment variable RWSHAPEPATH, you must exit MS Windows and
return to the DOS prompt. Assuming that the RenderWare scripts and
textures have been installed in "c:\rwwin\scripts" and "c:\rwwin\textures"
the following command at the DOS prompt will set the environment
variable correctly:
set RWSHAPEPATH=c:\rwwin\scripts;c:\rwwin\textures
If you have installed the scripts and textures elsewhere, please
substitute that location for "c:\rwwin\".
It is strongly recommended that this line be added to the AUTOEXEC.BAT
file of the computer on which the RenderWare demonstration programs are
to be run. This will ensure that RWSHAPEPATH is set whenever the computer
is started.
RWPAINT.EXE
===========
RWPAINT.EXE is an enhanced version of RWVIEW.EXE. The user is able
to paint clumps - and save them out as scripts. RWPAINT.EXE has a
built-in material editor which gives the user a high degree of control over
the surface of a clump. RWPAINT.EXE also demonstrates RenderWare's user-draw
facilities.
The Application Controls
------------------------
As mentioned previously, RWPAINT.EXE is, essentially, an enhanced
version of RWVIEW.EXE. It operates in one of two modes. In "Drag"
mode - indicated by the selection of the arrow button in the toolbar -
RwPaint behaves exactly like RWVIEW.EXE. Clumps can be spun and dragged
with the left mouse button. In "Paint" mode - indicated by the
selection of the paintbrush button in the toolbar - the left mouse
button paints the polygons of a clump (or the entire clump)
with the material specified by the material editor dialog.
To bring up the material editor dialog box, click the paintbrush button on the
toolbar or press the key 'p'. The material editor is then opened with the
previous material used. Initially the default material is in effect;
Ambient, Diffuse and Specular are zero, Red, Green and Blue are zero, Geometry
Sampling is Solid, LightSampling is Facet, Opacity is one and the material has
no texture. Double clicking the left mouse button over a polygon
will invoke the material editor with the material of the polygon under the
mouse pointer.
Clumps may be loaded into the RwPaint by "drag and drop" or with the
Open item of the File menu. Clumps may be saved with the Save and Save As
items of the File menu. This enables the results of your painting to be saved.
The Material Editor
-------------------
The material editor has four areas. The top left area contains a sphere
rendered with the material shown by the editor's controls. If the material
editor was invoked with the toolbar button or keyboard it will initially
appear as a black circle characteristic of the default material. This sphere is
the 'model' and gives feedback on the changes you make to the color, lighting,
geometry and texture controls. Note that there is a cube inside the sphere
to help judge opacity settings.
The top right area contains a number of scrollbars. These control the ambient,
diffuse and specular reflection coefficients of the material, the red, green
and blue components of the material's color and the opacity of the material.
The bottom left area contains two groups of radio buttons. These control the
geometry sampling and light sampling of the material.
The bottom right area shows the textures currently loaded. These are textures
that have been loaded from scripts dropped on the main window or from texture
files dropped on the main window. Texture files may also be dropped on the
material editor itself. Click on one of these textures to apply it to the
model. The first 'texture' in the list is not actually a texture but rather
shows the currently selected color. Clicking on this will
remove the texture from the material. The check box provides control over
whether the textures are lit.
In "Drag" mode the application controls are as follows:
-------------------------------------------------------
1) Adding a clump.
Simply drop a script file on the application window from the File
Manager or use the Load item of the File menu.
2) Adding a sprite clump
Simply drop a texture file on the application window from the File
Manager.
3) Saving a clump
Click the left mouse button over a clump to select that clump.
Then select the Save or Save As items of the File menu. Save will
save the clump back to the file from which it was loaded. Save As will
prompt for the name of the script file to save the clump as.
4) Deleting a clump.
Click the left mouse button while over the clump and hold down the
SHIFT and CONTROL keys.
5) Panning and zooming the camera.
Hold down the right mouse button
Horizontal mouse movement will pan the camera around the scene.
Vertical mouse movement will zoom the camera into and out of the scene.
6) Tilting the camera.
Hold down the right mouse button and the SHIFT key
Vertical mouse movement will tilt the camera over and under the scene.
7) Panning or tilting the light.
Hold down the right mouse button and the CONTROL key
Horizontal mouse movement will pan the light around the scene.
Vertical mouse movement will tilt the light around the scene.
8) Spinning a clump.
Hold down the left mouse button over a clump.
Horizontal mouse movement will spin the clump about its Y axis.
Vertical mouse movement will spin the clump about its X axis.
9) Dragging a clump.
Hold down the left mouse button and the SHIFT key over a clump.
Horizontal mouse movement will drag the clump in X.
Vertical mouse movement will drag the clump in Y.
10) Dragging a clump toward and away from the camera.
Hold down the left mouse button and the CONTROL key over a clump.
Vertical mouse movement will drag the clump in Z.
In "Paint" mode the application controls are as follows:
--------------------------------------------------------
1) Adding a clump.
Simply drop a script file on the application window from the File
Manager.
2) Adding a sprite clump
Simply drop a texture file on the application window from the File
Manager.
3) Saving a clump
Click the left mouse button over a clump to select that clump.
Then select the Save or Save As items of the File menu. Save will
save the clump back to the file from which it was loaded. Save As will
prompt for the name of the script file to save the clump as.
4) Adding a texture to the material editor.
Simply drop a texture file on the material editor dialog.
5) Panning and zooming the camera.
Hold down the right mouse button
Horizontal mouse movement will pan the camera around the scene.
Vertical mouse movement will zoom the camera into and out of the scene.
6) Tilting the camera.
Hold down the right mouse button and the SHIFT key
Vertical mouse movement will tilt the camera over and under the scene.
7) Panning or tilting the light.
Hold down the right mouse button and the CONTROL key
Horizontal mouse movement will pan the light around the scene.
Vertical mouse movement will tilt the light around the scene.
8) Painting one polygon of the clump.
Click the left mouse button down over the polygon to be painted.
The material currently specified in the material editor will be
applied to the polygon. If the mouse is moved whilst holding down
the left mouse button, the material is applied to each polygon the
pointer moves over.
9) Painting each polygon in a clump.
Click the left mouse button whilst holding down the SHIFT over the clump.
The current material specified by the material editor will be
applied to each polygon in the clump.
The Menus
---------
The File Menu
Load... - Load a new clump.
Save - Save a clump.
Save As... - Save a clump to a new file.
Exit - Exit the demonstration.
==========================================================