DeleD Level Preview Plugin
Version:2.0.0
Author:Salvatore Russo "Il Buzzo"
Info:info@ilbuzzo.net

Description:
This small plugin has been built on the top of Irrlicht 0.12.0
modified by me and built as a static library.
Its main feature is level preview in a powerful 3D Engine
without using an external loader.

Note:You need Directx 9.0c to run plugin

Installation:
Copy this plugin in DeleD's plugins folder, delete the old (if any) levelpreview.cfg and the game is done.

Usage:
Create your level in DeleD (be sure of using DeleD 1.6+, it has been tested up to DeleD Pro 1.72, added support for dxs deled files),
and then launch this plugin. You must choose at this point your settings:
 -Camera Settings:
    -Position in Ellipsoid: Here you can choose to position camera from bottom to top of collision
                            ellipsoid. 
    -Move Speed: Camera moving speed.
    -Rotate Speed: Camera rotation speed.
    -Place Camera in the center of Level: You place this camera rightly at the center.
    -User Defined Position: You can define your camera preferred position.
    -Near Value: Value of the near clipping plane.
    -Far Value: Value of the far clipping plane.  
 -Collision Settings:
    -Enable Collision: You enable collision and you can choose collision ellipsoid radius (X,Y,Z).
    -Enable Gravity: You enable gravity and can set gravity value (disabling you can fly).
 -Engine Settings:
    -Resolution: Screen resolution wanted.
    -Device: Disabled for now ;).
    -Fullscreen: Check it if you want to load Engine in fullscreen or you'll see it windowed.
    -Preview Only Selected Objects: Disabled for now ;).
    -Hide Mouse Cursor: You won't see a cursor checking this item.
    -Ignore Shadows: You'll see level full bright (no shadows) but this way normal flashlight will not work (but shader based flashlight will).
    -Enable Wireframe Mode: You can set wireframe as starting modality.
    -Enable Backface Culling: You can enable or disable backface culling prior to load engine.
    -Use Normal Mapping: Disabled for now ;).
 -Level Settings:
    -Shadow Opacity: You can set here shadow opacity as in DeleD, it will affect shadow intensity in levels.
    -Level Scaling: You can set level scale.
    -Background color: You can change background color.
    -Skybox: You can use a skybox loading all six textures, you need to load all 6 textures to show a skybox.
 -FX Settings:
  I'll add other FX to this Dialog, but for now there is only Flashlight.
  -Flashlight FX Settings:  
    -Opening angle: Cone of light angle in degrees (maximum 90).
    -Maximum distance: Maximum distance of visible objects (it's used an exponential decay).
    -Screen ratio (X,y): X and Y value of screen ratio (I added ratios other than 4:3 (my new laptop is 16:9)).
    -Light Color: You can choose your favourite light color.
    -Laser Mode: You can set this to turn your flashlight into a laser.
    -Use this shader if possible: You use this shader if possible and permitted by hardware or default light will be loaded.

Press ok, waits a little and the game is done.

Control main camera with:
W or Up Arrow : go front.
S or Down Arrow: go back.
A or Left Arrow: strafe left.
D or Right Arrow: strafe right.
Turn Around with mouse.

Other Commands:
F: Activate or De-Activate flashlight.
ESCAPE or ALT+F4: Exit plugin.
I: Show some infos.
C: Reset camera position.
B: Toggle backface culling mode ON\OFF.
M: Toggle wireframe mode ON\OFF.
G: Toggle gravity ON\OFF.
K: Toggle collisions ON\OFF.
P: Take a screenshot in jpeg format.
F1: Show command list ON\OFF.

Some notes about settings:
Your settings from now on are saved and loaded from file, so if you make some errors and
want to return to original setup, please remove "levelpreview.cfg" file from DeleD's plugins
directory and engine will create a new file with original setup on next plugin launch.
REMEMBER THAT IF YOU ARE INSTALLING A NEW VERSION OF PLUGIN REMOVE OLD "levelpreview.cfg".

To Do in the short period:
-Let user choose his favourite controls.
-Add Newton physics engine camera control and jump code.
-Add Normal Map Support.

To Do in the long period:
-Add main character............
-Add some enemies........
-Who knows.........

I hope you find this plugin usefull.
Thanks to all DeleD team and user for support.

-ChangeLog and bug fixes:
  -2.0.0:
       -Modified to be compatible with DeleD 1.6+ new plugin system.
       -Added some resolutions (including widescreen ones).
       -Some minor bugfixes.
       -Please notice that old plugin system is discontinued so, if you want to use this plugin up to DeleD 1.52
        you need to use 1.1.3 version avaible from my site.
  -1.1.3:
       -Modified texture creation flag, so now all textures are
        converted to 32bit, while before in some cases you
        could have poor resolution materials (thanks to nextdoorcat to make me notice it ;)).
  -1.1.2:
       -Added support for alpha blended color materials (thanks to nextdoorcat to make me notice it ;)).
  -1.1.1:
       -Added save screenshot from within Engine.
       -Added alpha map textures support.
       -Ported all to Irrlicht 0.12.0 modified engine.
       -Solved a minor bug signaled by trucker2000 (thanks ;) ).
  -1.1:
       -Plugin now search textures path from DeleD.ini,and takes its dir without using DeleD.
       -Added a light and laser shader written by me based on VS 1.1 and PS 2.0.
       -Added the possibility to reset camera position in real time (thanks for suggestion).
       -Added the possibility to switch between wireframe and textured mode in real time and from interface.
       -Added the possibility to enable or disable gravity and collisions in real time.
       -Added level scaling in settings.
       -Added shadow opacity chooser in settings.
       -Added skybox if wanted.
       -Added background color chooser.
       -Added near and far clipping planes settings.
       -Added real time echo info for commands.
       -Added real time status and commands info.
  -1.0 Final built 4:
       -Solved Access violation Bug caused by levelpreview.cfg absence.
  -1.0 Final built 3:
       -Solved Access Violation Bug when removing collisions.
       -Using Irrlicht 0.11.0 static modified built.

This software is released as is so use at your own risk...;)