Programs — VU-3D and Its Modified Version

Setevoy Sokol #03

VU-3D program

In this section we will examine (in a figurative sense) various programs.

1. Introduction

With VU-3D, you can create axonometric images of three-dimensional objects on the screen, view them from different viewpoints, modify them, load them into memory, or print them.

After the program loads, it asks whether you want to create new objects or load a data file from disk.

1.1. CREATE A NEW FIGURE (Creating an object)

After entering CREATE mode, the available commands are displayed in the top three lines of the screen. Each command is called by pressing its first letter. This principle applies in all modes.

CREATE works by entering a sequence of cross-sections of an object. These cross-sections are called Z-planes; each one has its own Z-coordinate value. A point on a Z-plane has X and Y coordinates. The X and Y axes are indicated at the bottom and on the left of the screen. Before entering a figure, you must choose the direction of the Z-axis so that it coincides with the plane of symmetry.

In CREATE mode, the user has access to the OPEN, CLOSE, FIGURE, MAGNIFY, REDUCE, NEXT Z and QUIT commands, as well as the control keys (arrow keys or 5, 6, 7 and 8).

OPEN

This command begins object creation after entering CREATE mode. It lets you define the shape of the object in the first Z-plane.

After pressing “O” (OPEN), the list of commands changes and a cursor appears on the screen. The cursor coordinates are shown at the bottom of the screen. Use the control keys (the arrows or 5, 6, 7 and 8) to move the cursor to the chosen point.

Press “S” (START) to set the figure’s starting coordinates. Then move the cursor to the next position and press “L” (LINE): a line will appear between the previous and current positions.

Move the cursor to another position and press “L” again. Repeat until you have drawn the desired figure, then press “E” (END). You will return to CREATE mode.

If you make a mistake while drawing a line, use “D” (DELETE) to remove the last line.

There can be more than one object in a cross-section. To start a new object or make a hole in an existing one, press “O” and draw new lines.

The lines forming each figure must be closed and must not intersect.

Once the figures in the first cross-section are complete, you can move to the next Z-plane by pressing “N” until the Z value (shown at the bottom of the screen) reaches the required value.

When you enter a new Z-plane, the figures from the previous cross-section are retained. They can be modified with the “M” (MAGNIFY) and “R” (REDUCE) keys and the arrows—that is, you can enlarge, reduce and move an object.

Several figures can exist in a Z-plane at the same time. Press “F” (FIGURE) to select one of them.

The selected figure is drawn with a dotted line. You can modify it with “M” (MAGNIFY), “R” (REDUCE) and the arrows without affecting the other figures.

MAGNIFY and REDUCE

Press “M” (MAGNIFY) to enlarge a figure that has already been drawn.

Press “R” (REDUCE) to make the figure smaller.

Moving a figure

Move a figure up, down, left or right using the arrows. You can also use 5, 6, 7 and 8.

CLOSE

To finish a particular object, press “F” (FIGURE) until that object is selected, then press “C” (CLOSE). That object is now considered complete, while you can continue building others.

QUIT

Close all existing objects and return to the main menu.

1.2. DISPLAY mode

In this mode, the three-dimensional object is drawn on the screen in perspective.

Three types of image are available:

  1. A “wireframe” drawing (FULL WIRE LINE DIAGRAM).
  2. A drawing “with hidden lines removed” (HIDDEN LINE DIAGRAM).
  3. A shaded drawing.

The user can view objects from any distance, from any viewpoint and at any angle, both from outside and from inside the object.

Press “F” (FAR) to move away from the object. Pressing CAPS SHIFT and “F” together slows the movement away.

Press “N” (NEAR) to move towards the object and then enter it.

The viewpoint can move around the object at a fixed distance. Pressing the arrows together with CAPS SHIFT slows the rotation.

MAGNIFY and REDUCE differ from NEAR and FAR in that they do not change the perspective.

Return from DISPLAY mode to the main menu.

1.3. PICTURE mode

After you have set the viewpoint and size of the object in DISPLAY mode, press “P” (PICTURE) to choose the colour and type of drawing, and to save the drawing to disk or print it.

1.3.1. HIDDEN LINE (Drawing with hidden lines removed)

To enter this mode, press “H” (HIDDEN LINE). The boundaries between the object’s planes are drawn as solid lines, but only the boundaries visible to the viewer are shown (unlike in FULL WIRE LINE DIAGRAM, the wireframe drawing). This command can take a considerable amount of time if the object has many faces.

Shaded drawing

Press “S” (SHADE). The command list changes, and the program asks where the light source is located. The first question can be answered:

  • “C” — at the centre.

The program then asks a second question.

Choosing colours

To enter this mode, press the corresponding command key (the key is not specified in the source).

Press keys 0–7 to select the appropriate colour for each of the prompts:

  • BORDER COLOUR? (Border colour?)
  • BANNER PAPER? (Program background colour?)
  • BANNER INK? (Program ink colour?)
  • SCREEN PAPER? (Drawing background colour?)
  • SCREEN INK? (Drawing ink colour?)
Printing

To enter this mode, press “P” (PRINT). The drawing will be printed on a printer.

Saving the drawing to disk

After pressing “K” (KEEP), you will be prompted for a filename. The picture is saved to disk as a screen file.

Return to DISPLAY mode.

1.4. MODIFY mode

After defining one or more objects in CREATE mode, the user can later modify or correct them in MODIFY mode, provided the changes are minor. This mode is very similar to CREATE. The available commands are MAGNIFY, REDUCE, NEXT Z and QUIT, along with the control keys (arrows and 5, 6, 7 and 8). These commands are described above.

1.5. ABANDON mode

Delete the existing data file to clear memory for CREATE mode.

1.6. SAVE mode

Save to disk the data file describing the object.

1.7. LOAD mode

Load a data file from disk.

In the appendix you will find a modified version of VU-3D. Here is what has been changed in the program:

  1. First, and most importantly, the program is now more than twice as short!
  2. The PRINT option (printing) has been removed. This may be a drawback, but you can always print using ART STUDIO.
  3. The options have been rearranged; I think this is more convenient.
  4. An option to exit to TR-DOS or REAL COMMANDER has been added.
  5. The program now starts directly in the menu, unlike the old version.

In short, load it and have a look; it might come in handy.

Share your thoughts about the article