March 18th, 2008 Posted in Tips'n'Tricks, Tutorials | 1 Comment »
You can create with the FREE version of Demoniak3D a demo that is lauchable directly with a bouble-click on an executable file. But the end-user will always have access to demo’s source codes
(xml, glsl and lua files). Only the commercial version (PRO) of Demoniak3D makes it possible to protect demo’s source codes.
Once the demo coded and operational, just create a folder where you will copy your demo (xml, lua, glsl and media files). Then copy in that folder Demoniak3D.exe executable with its DLL and plugins (*.o3p). All plugins are not mandatory: if the demo, for instance, loads 3DS files only, vous can delete all others 3D loaders plugins (OBJ, etc.). Same thing for the particle_system_plugins folder: if you don’t use particle at all, the whole folder car be deleted. Now that the demo’s folder is ok, you need to do the following tasks:
- edit demoniak3d-config.xml file and change auto_load attribute of startup node. auto_load holds the name of the demo file: in our case it’s the main XML file, the one that contains the
root node demoniak3d.
- set to 0 check_version attribute. That will be disabled online check for new versions of Demoniak3D.
- rename Demoniak3D.exe: for example with myKool3DDemo.exe.
- archive all the demo in a nice zip file and put it in download somewhere in the Net.
The end user has only to unzip the demo and double-click on myKool3DDemo.exe to launch the demo.