Building a Stereoscopic Application

The task is to develop a stereoscopic applications including visual stereocomponents (Stereo Vision components). This stereoscopic application can be used in architectural visualization, engineering and scientific visualization, educational programs and entertaining programs. As means of the development language, C# and DirectX 9.0 have been chosen.

Use of library SVN most adequately for a
development interactive stereoscopic demoscenes.

Everyone demoscene represents a set: a subset of geometric objects, a
subset of light sources, a subset of structures, a subset of cameras. Each
geometric object is set: a subset of vertices (the vertex is defined by the 3D
coordinates and coordinate of texture fitting to it), a subset of surfaces
(surfaces are defined by three vertices) and a material (the material is
characterized by a rate of dispersion and a reflex of light, a texture), a
locating of an object (i.e. its translation, an axis of spin, an angle of spin,
a rate of scaling). Each light source is set: its attitude, orientation (the
vertex in which routes a light source), by type (background, target, dot), a
color (in RGB a format). Each texture represents the rectangular raster file,
the certain sizes (for example, 62*128, 128*256, 256*512). Each camera is set:
The location, target (the vertex in which routes a camera), an angle of sight,
an angle of turn concerning the axis.

Interactive stereoscopic dynamic demoscenes can is extra to contain: the
script, digital characters, dialogues, design. Characters are usually developed
in simulating packets, for example, 3DS MAX, Maya. At use of more modern means
characters can be framed according to 3D scanning's.

As scopes of library of stereovisual components SVN it is possible to
yield: architectural visualization, engineering and scientific visualization,
educational programs and entertaining programs. Objects fashioned in such
programs are better perceived in 3D. They require animations, lively interaction
with the user. As a structure of similar programs it is possible to use
stereoscopic demoscenes, animated models.

For realization 3D applications the applied programming interface should
be used, for example - the Direct3D API. Properties of this API are: it is used in
Windows, the program is written on C, C ++, or C#, use of API by means of calls
from a code. The script 3D applications contains the following: a load of mesh
and textures, for each frame - reading of user input, a calculation of physics,
AI, a frame rendering by means of API calls, a determination of transformation
matrix for meshes, a determination of parameters of drawing, a determination of
parameters of a texture, meshes drawing.

Pic. 1 Esplorer1

Program Esplorer v.1.0 is developed for realization of scientific
visualization. The given program is intended for dynamic visualization of
geometric models of building constructions (in particular geodetic domes),
titles of building constructions, with realization of a stereomode of a viewing.
The program works in fullscreen mode. For a viewing of a geometric models in a
stereo it is necessary is extra to have a videocard of firm NVidea, to set the
driver of a videocard and, fitting to it, the stereodriver. For
stereovisualization it is possible to use method PageFlipping (with glasses of
firm Edimensional), or a method anagliph (with glasses Red Cyan).

There are properties: road2 - a surface of an earth, road0 - a
surface of road, road1 - a surface of an earth, house1 - the first dwelling,
house2 - the second dwelling, obj - a geometric model of a building
construction, word - a title of a construction.

Pic.1 Esplorer 2

The graphic library of stereo-visual components SVN is applied to a development
of stereoscopic interfaces in interactive demo scenes for architectural
visualization and in stereoscopic dynamic applications for scientific
visualization.

Example of the program Esplorer v.1.0

Application can become stereo-viewer, only after addition all auxillary classes.
Also it loads all components which are required such as road, house, obj, word.
The declaration of class is resulted futher:

The interface for our program stereo-viewer will consist of several components.
They contain in the form and include the models of road, earth, building,
architectural object. They allow the user to see dynamic stereoscopic virtual
scene with architectural object. Component are loaded by separate methods causes
InitializeGraphics() method, which is used to load in stereo-viewer a full set
of components and establish width, height, and depth of the scene.

In this article it is submitted the program of stereo-viewer. The application of
stereo-viewer, however, can be advanced. Now, it does not support open of files
with geometric models, move camera, among other functionalities. This elements
could be added.