New engine features

Top  Previous  Next

LOD manager

 

Med has just got a "level of detail" manager. While we all want to see detailed models when we're close to them, we don't care that much about their looks when we are far away and those models only use a few pixels on the screen. The LOD manager generates a set of 3 low polygon models for us and the engine swaps  them automatically when their distance to the camera grows above a user-defined value.

 

aum60_hot1

 

 

Panel needles

 

These new panel elements can be used to add watches or needle indicators to your games or applications.

 

var video_screen = 1;

 

function main()

{

       level_load("test.wmb");

}

 

panel clock_pan // displays a needle that shows the seconds

{

       pos_x = 300;

       pos_y = 250;

       needle(10, 5, "needle.pcx", 1, 1, 90, 60, 0, sys_seconds);

       flags = visible;

}

 

 

draw_line3d

 

Draws a 3D line with the given color and transparency.

 

var video_screen = 1;

 

function main()

{

       level_load("test.wmb");

}

 

starter draw_3d_lines()

{
       while(1)

       {
               draw_line3d (vector (100, 100, 100), null, 100); // move to first corner
               draw_line3d (vector (100, 200, 500), vector (255, 0, 0), 100);
               draw_line3d (vector (300, 600, 250), vector (255, 0, 0), 100);
               draw_line3d (vector (-100, 50, 700), vector (255, 0, 0), 100);
               draw_line3d (vector (500, 300, 200), vector (255, 0, 0), 100);
               wait(1);
       }
}