Join thousands of game developers in our forums and read over 2 million messages
Purchase vouchers for use on future orders or as a gift for others.
toolbar powered by Conduit
Join thousands of game developers in our forums and read over 2 million messages
Purchase vouchers for use on future orders or as a gift for others.
toolbar powered by Conduit

Dark Lights adds a suite of light mapping commands and features to DarkBASIC Professional and Dark GDK, and also includes a versatile lightmapping tool with full source code.
Dark Lights is available for DarkBASIC Professional and Dark GDK.
Here are some of the features that Dark Lights supports:
The light mapper supports three types of lights, point lights which emit light equally in all directions and reduce in bightness over distance, directinonal lights which shine in a particular diretcion over all distances equally, and spot lights that shine in a particular direction like a flash light.
You can set the attenuation for point lights to control how light fades over distance from the light source. You can set the parameters for quadratic, linear, or no attenuation and the radius over which the light has effect.

You can add transparent objects that allow light through but modify the colour of the light on its way through. This can be used for stained glass windows that create a pattern on the floor behind when a bright light shines through them. There are three modes of transparency available, black colour key transparency that blocks or allows light through, alpha mapped texture for transparency that varies over the object and colours the light, and semi-transparent with consistant transparency over the object and colours the light.
The light mapper reads the vertex normals of the objects that are being light mapped and colours curved surfaces accordingly. You can also set the quality for curved surfaces to be higher than that for flat surfaces to make sure there are enough pixels to smooth the surface correctly.
Objects can cast shadows over each other or be set to only receive light and not cast shadows. You can set the shadow bluring to remove any sharp edges that are created in the transition between light and dark. Soft shadows can be achieved by either bluring or by using multiple point lights instead of a single point light to smooth the transition of shadows.
The light mapper uses a fast ray casting engine to quickly work out if a point will be in shadow and allows many lights to be used whilst still maintaining quick build times in the order of minutes for complex scenes and seconds for simple scenes.
The light mapper allows you to start the light map process as a thread so that you can continue to display its status on screen whilst it is in progress. You can end this thread at any time before its completion allow you to cancel it without ending your program.
A form of global illumination, ambient occlusion creates realistic shading on surfaces by testing how much of a global light each point can see. Those points in corners or holes will see less of the global light and be darkened accordingly.
You may be wondering what use these sorts of commands would be in DarkBASIC Professional and Dark GDK. After all, even the fastest lightmapping routines would still take too long to be run in-game on complex levels. However there are many applications for this extension. A large number of people when creating games, build their own 'game editors' as well. Using this you could now add sophisticated light mapping functions directly into your tools. You could write your own stand-alone light mapping application with this. Write your own interface perhaps and use this extension to handle the actual mapping.
You could of course use it in-game if your game suits it. For example in a simple scene, dynamically generated, you could lightmap the entire level before the player even gets to start it. The threading options available mean you could even be doing this while the player is going through the intro sequence / game menu. Finally the editor we include with the DLL can be used to lightmap your own levels and objects. Using an intuiative 3D interface you can fly around your level, place lights, change the colour, fall-off distance and other attributes, before rendering the scene. You can then fly around the rendered scene and if you like it, save it out as a native DBO object. No more messy conversion with file formats - you can now import and map directly to DBO files which DBPro will load and display exactly as they appear in the editor. We even give you the source code to the editor, so you can add your own enhancements and learn from it. A free demo version of the editor is now available to download (see below).
This is a demo version of the free light mapping editor that comes with the Dark Lights DLL. The editor allows you to place lights, set their colour, range and style, and light map any DBO object. This editor is just an example of what you can make with the Dark Lights DLL, and the full source code is included when you buy Dark Lights. Please note that saving DBO files on the demo version misses out random polygons from the object.
| Dark Lights Editor Demo | |||||||||||||||||
| Download: | Dark Lights Editor Demo | ||||||||||||||||
| File Size: | 10.32 MB | ||||||||||||||||
|
|||||||||||||||||
| Updated: | 11th Jan 2010 | ||||||||||||||||
| Description: | This is a demo of the editor that comes with the Dark Lights DLL for DarkBASIC Professional. It requires DirectX 9.0c Feb 2006 Edition. | ||||||||||||||||
| Downloads: | 3345 | ||||||||||||||||
| 91% Off - Dark Game Studio Bonanza | |||||||||||||||
|
Creating your own PC games is now easier than ever with this special compilation of game making tools. This bundle contains: DarkBASIC Professional, Dark Lights, Dark AI, Dark Physics, DarkBASIC Electronic, Dark Shader, eXtends, Treemagik G3, Plant Life, DarkMATTER 1, DarkVOICES, DarkGAME Studio, FPS Creator FREE
|