Demo or Die #01
28 февраля 1999

Demo-Building - Proetsirvoanie 3D> 2D.

<b>Demo-Building</b> - Proetsirvoanie 3D> 2D.
__________________________________________

Wolf of eTc group / Scene



            Projection.



   The mathematical basis of
images of three-dimensional objects on the screen
is to design objects on
two-dimensional plane of the monitor screen.


   We consider three ways of designing
objects:


   1. Dimetricheskaya projection.


                x '= y-x * c;

                y '= z-x * c;


   where x, y, z - three-dimensional coordinates of a point
in space, and x ', y' - two-dimensional
coordinates on the screen. c -
coefficient which is equal to:


   c = sqrt (2) / 2; c = 0.707106781;

   {Sqrt-square root}


   2. Isometric projection.


              x '= (y-x) * c1;

              y '= z-(x + y) / 2;


   where x, y, z - three-dimensional coordinates of a point
in space, and x ', y' - two-dimensional
coordinates on the screen.


   c1 = sqrt (3) / 2; c = 0.866025404;


   3. The view from the camera.


           y z

                /

              /

            /

                     x

         /

       *

     /


   * - The location of the camera.


   Projecting in this location
camera in three dimensions, will
following form:


         x '= x * camera / (x + camera);

         y '= y * camera / (z + camera);


   where x, y, z - three-dimensional coordinates of a point
in space, and x ', y' - two-dimensional
coordinates on the screen.

   camera - camera distance from the beginning
coordinates.


   Naturally all of these modified
coordinates x 'and y' must be put to
coordinates of the center of the screen:


             x '= x' + x_size / 2;

             y '= y' + y_size / 2;


   where x_size - the width of the screen, and y_size -
height.
__________________________________________







Other articles:

Demo-Building - an algorithm to PROCESSING visibility of surfaces 3D-figup.

Demo-Building - Fill the triangle Gupo shading, texture mapping.

Demo-Building - Proetsirvoanie 3D> 2D.

Demo-Building - filtration pastpovyh izobpazheny. An algorithm to postpoeniya bugpyvistyh of surfaces. Flame effect. blurring in fast movement. Sharpening

Digital Design - A new music editor for digital music.

Greetz - Greetings to all who have not yet dropped the most Kulnev complex in the world - Spectrum!!!

Partys - Sonstructions Chaos 1999 about budschem demopati.

Slang - Slenogovy dictionary demoscene.

Turbo / Slow - The scheme uskoryalki and Lagsters com.

Video - Converting animation on the example attribute the video.

Interview - Random / Chaos Constructions.

Interview - An interview with Lithuanian musicians zHenYa / zERo.

From pedaktsii - From the authors.

Application - Pinkword, Digital Desing.

Advertising - Advertising and announcements.


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
IS-DOS - "IS-DOS - for beginners" No 3
WANTED - Searching software ...
as advertising - Price list for products of "Scorpio".
ZILOG - ZILOG - What is it delicious for us? About ZILOG, general information about its products, nice family Z80.

В этот день...   21 November