|
Neue Engine Features |
Top Previous Next |
|
video_aspect
Dies stellt das Verhältnis zwischen Breite und Höhe des Monitors ein, so dass Spiele in Wide Screen oder normalen (4 : 3) Modi laufen können.
void main() { // video_aspect = 4./3.; // start in 4 / 3 mode video_aspect = 16./9.; // start in 16 / 9 widescreen mode - force this aspect // video_aspect = 16./10.; // start in 16 / 10 widescreen mode level_load (test_wmb); fps_max = 70; video_mode = 7; // run in 800x600 pixels if possible video_depth = 32; // 32 bit mode }
screen_size
Dies erlaubt es nun, beliebige Größen für das Enginefenster anzugeben.
void main() { screen_size.x = 240; // start the game in QVGA mode (320 x 240 pixels, similar to a pda) screen_size.y = 320; level_load (test_wmb); fps_max = 70; video_depth = 32; // 32 bit mode }
Verschwommene Stencil Shadows
Der eingebaute st_stencilblur.fx Effekt lässt sie Stencil Schatten mit einem Poisson Filter verschwimmen, wodurch sie viel besser aussehen.
#include <acknex.h> #include <default.c> #include <mtlView.c> // include the built-in Poisson filter
STRING* test_wmb = "test.wmb";
void main() { shadow_stencil = 3; // use accelerated z-pass shadows stencil_blur(1); // blur the shadows using the built-in Poisson shader level_load (test_wmb); video_screen = 1; // start in full screen mode fps_max = 70; video_mode = 7; // run in 800x600 pixels video_depth = 32; // 32 bit mode }
action my_soldier() // simple test action { set (my, SHADOW); }
|