Saturday February 11, 2012 7:49 AM AEST

Inside a next-gen 3D engine

By Logan Booker
10:59 Apr 6, 2006
Tags: game | pc | 3d | fps | action | nvidia | ati
«  »
Inside a next-gen 3D engine

Shaders and DirectX
The engine behind Project Offset is designed with Shader Model 3.0 in mind, introduced in the DirectX 9.0c. However, Green says that SM 2.0 is supported and is the baseline for running the game.

An important thing to understand about SM 2.0 and SM 3.0 is that they are very similar. The primary advantage of an SM 3.0 codepath is the ability to use more instructions in a shader and the availability of additional instructions. Green uses the example of partial derivates, a function that allows for the calculation of one variable while related variables remain constant, which is included in SM 3.0 but not SM 2.0. Obviously, these sorts of functions allow an SM 3.0 codepath to typically be more efficient than a functionally-identical one in SM 2.0.

Currently Offset is being developed with DirectX 9. Green says that the engine is ready to be switch over to DirectX 10 (and presumably SM 4.0) once Vista hits. Although they haven't had much of chance to play around with DX 10/SM 4.0, Green says that from what they've seen, they should be able to draw more objects on screen at one time.

 

LEFT: HDR off. RIGHT: HDR on

High Dynamic Range
HDR isn't so much an effect as it is a type of calculation. Basically, HDR calculations are used to figure out colour values that exceed the brightness levels of the current bit-depth (usually 24 or 32) and are always floating-point (not integer). The result is better representation of light in various environments, and allows the use of actual effects like bloom and exposure. Due to the use of FP rather than INT, HDR typically incurs a noticeable speed hit.
HDR was introduced with SM 2.0 in DirectX 9. The introduction of SM 3.0 in DX 9.0c did make improvements to HDR (upping precision from 24-bits to 32) but not to any great degree.

Performance hit: 'Low - This is a core "feature" to the rendering pipeline, and the [Offset] engine was designed from the ground up to support it,' explains Green.

Difficulty/Time to implement: 'Moderate - to convert an established engine over to HDR can be a little tricky, but with a engine written from scratch it's pretty straight forward,' says Green.

 

LEFT: Specular bloom off. RIGHT: Specular bloom on.

Specular Bloom
A benefit of implementing HDR into a rendering pipeline is the easy in which specular bloom can be added and indeed is what many people incorrect describe as HDR lighting itself. A bright light has a tendency in real life to 'feather' out from the edges of objects it shines through. Green describes to as a 'soft glowing halo' and the effect can be seen to great effect in the above screenshots.

'[It] creates some great visuals when you are in a dark area looking into a bright outdoor environment. Or for blowing out those specular highlights,' explains Green.

Performance hit: 'Low to medium - adds several post processing (screen buffer) passes, and adjusts the quality of the halo effect based on user settings.'

Difficulty/Time to implement: 'The bloom effect was simple to add into the engine thanks to its post processing architecture. This was the first post processing effect added to the engine, and there are several variations on the effect implemented.'

 
«  »
 
This article appeared in the April, 2006 issue of Atomic.

Behind the scenes with Mass Effect 3! GTX 560 VGA round-up! Essential Skyrim tweaks to improve your game! Plus reviews, news, hardware, more games, and easy to following modding guides for PC builders. ON SALE NOW!
 
Latest Competitions
 
Atomic Magazine

Issue: 133 | February, 2012

Atomic is a magazine aimed squarely at computer enthusiasts, gamers, and serious PC upgraders.

Every month we bring you the latest reviews of new technology and PC components, in depth features on everything from overclocking to console hacking, and gaming previews and interviews.
 
Latest Comments
 
Latest User Reviews
Battlefield 3 is the new benchmark online FPS
90%
A very fun and realistic multiplayer ride.
 
Antec Kuhler 920 - liquid cool
90%
Antec Kuhler 920 silent but effientive out of the box no maintence water cooling kit
 
Antec's Lanboy Air - our new favourite case
90%
Antec Lan boy Air in red a very cool design
 
Antec's Lanboy Air - our new favourite case
90%
This product overall is awesome.
 
MSI's GT780 laptop as fast as it gets
90%
Nice laptop
 
 
Close Get the February, 2012 issue of Atomic mailed to you for $8.95, including postage.

Buy nowDigital Version