The Game Creators
The Game Creators Home Online Shop Click to Login
 
DarkBASIC Professional
Order Online
Hands on DB Pro
International Sites
Brazilian DarkBASIC Professional site Brazil
French DarkBASIC Professional site France
German DarkBASIC Professional site Germany
Italian DarkBASIC Professional site Italy
Japanese DarkBASIC Professional site Japan
Newsletter
Issue 82 is out now
The Game Creators Newsletter
Get our free newsletter
Forums
Join thousands of game developers in our forums and read over 1.4 million messages
Free Software
Download a free version of FPS Creator
Twitter
Keep up to date with all the latest events at The Game Creators
Programming
GBN
Dark Game Studio
Get Firefox!
Dark Lights

We are pleased to announce Dark Lights for DarkBASIC Professional. Dark Lights adds a suite of new light mapping commands and features to DarkBASIC Professional, and also includes a versatile lightmapping tool with full source code. Here are some of the features that Dark Lights supports:

  • Three types of light: Directional, Point and Spot Lights
  • Variable attenuation point lights, both quadratic and linear attenuation are avaible.
  • Curved surfaces are smoothed correctly.
  • Realistic shadows and variable shadow blurring.
  • Transparent objects that modify the colour of the light ray as it passes through it.
  • Uses very fast ray casting to achieve quick build times
  • Start the light mapping as a thread so you can display its status whilst it works.
  • Ambient occlusion for realistic global lighting.

Lights

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.

Attenuation

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.

Transparency

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.

Curved Surfaces

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.

Self Shadowing

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.

Speed

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.

Threading

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.

Ambient Occlusion

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. 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 using something like BlueGUI, 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)

Demo Download

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 (v1.2)
Download Download: dark_lights_demo_v102.zip
  File Size: 10.32 MB (10571 KB)
   
56Kb: 29 Mins 21 Secs 128Kb: 12 Mins 35 Secs
512Kb: 3 Mins 12 Secs 1Mb ADSL: 1 Mins 36 Secs
  Released: 3rd July 2006
  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: 5209

Dark Lights is available now.

Order Now

Dark Lights

Add full lightmapping support to your DarkBASIC Professional games and utilities with this royalty free DLL

  $ Dollar € Euros £ Sterling Click to Buy
Price: $25.00 €15.99 £12.99 Click here to buy

Dark Lights is distributed electronically.
You must download this product. Download instructions are sent after purchase.
It is not available boxed or on CD. DarkBASIC Professional 6.2+ is required to use this pack.
Note: If you don't own the DBPro Enhancements Extension DLL then you must download the 6.2b Extras file which allows compiling of the Dark Lights editor.

Ultimate Expansion Pack 2008

Save 30% - This pack contains 12 great DarkBASIC Professional extensions:
Dark Physics, Dark A.I., Enhancement Expansion Pack, Unity (Lua), EZ Rotate, Texture Max, Dark Ink, 2D Kit, Enhanced Animations, Dark Lights, Extends and Styx.

  $ Dollar € Euros £ Sterling Click to Buy
Price: $249.99 €158.99 £124.99 Click here to buy
You Save: $107.94 €74.89 £62.90  

All items in this pack are distributed electronically.
You must download these products. Download instructions are sent after purchase.
This pack is not available boxed or on CD. DarkBASIC Professional 6.1+ is required to use Dark A.I and Dark Physics.


Send this page by Email Printer Friendly Page Web Site Assistance



Dark Data
A library that gives one the ability to create a database with keyed filing systems, and resuable direct access records Read >
DarkCLOUDS
Creates a live, real-time sky for your DarkBASIC Professional games Read >
Dark Video
A complete movie encoder and decoder solution Read >
DarkNet
Multiplayer library Read >
Green-Ear
Integrated voice and text chat, voice morphing, private channels and more. Read >
Dark Physics
A complete royalty-free physics engine. Read >
Tree Party
Realistic tree system built for real time game renderings Read >
Dark Source
Source code snippet collection Read >
PureGDK
Dark Basic for Pure Basic Read >
Dark Ink
Brand new print library Read >
2D Kit
Extension new 2D commands. Read >
Enhanced Anims
Comprehensive 3D animation DLL. Read >
Dark Shader
Easy and impressive shader creation. Read >
Dark Lights
Fast light mapping system. Read >
Dark A.I.
Pathfinding, teams and zones. Read >
STYX
ActiveX, Flash, XML and much more. Read >
eXtends
Hundreds of exciting new commands. Read >
Unity
LUA scripting support for your games. Read >
EZ Rotate
Easy object and world rotation. Read >
Enhancement Pack
OGG replay, File Blocks, EAX and more. Read >
Texture Max
One model, infinite variations! Read >
Nuclear Glory
A comprehensive collision system. Read >
Pure Plugin
DLL creation system. Read >
Cloth & Particles
3D Cloth & Particles. Read >
Newsletter 82
Read our free monthly newsletter online

10 year anniversary, DarkBASIC Pro FREE, Lee Bamber Interview & loads more!

Subscribe for free:

DB Pro
GBN
Latest Releases

FPSC Model Pack 36
DB Pro Add-on Pack 2009
FPSC Model Pack 35
FPSC Model Pack 34
Dark Data
FPSC Model Pack 33
FPSC Model Pack 32
FPSC Model Pack 31
DB Pro Upgrade 7.4
DarkCLOUDS
Dark Video
Magic Particles
FPS Creator Bonanza

User Gallery
Who (2)
Delphi
VR-arena2 botmania
VR-arena2:botmania
Who
Inside The Horror
Visit our new screen shot Gallery