November 20, 2017
Archives  News  Civilization IV Dev Diary Available  


Monday, June 28, 2010
 

Click to enlarge
Civilization IV Dev Diary Available
6:00 AM | Cord Kruse | Comment on this story

Aspyr Media's GameAgent NonBlog recently added a new developer diary focusing on the effort to bring Civilization IV to Macintosh computers. The article includes discussion of some of the unique challenges the developers encountered and lessons learned which will aid in the porting of future game titles.

The most challenging aspect of porting Civ IV was its reliance on the Direct3D Effects framework for managing shaders and pipeline states and choosing rendering techniques at runtime. Rendering techniques are all specified in a high level language in “FX” files, which are compiled by the D3DX effects compiler. Techniques encapsulate global variables, pipeline state, texture/sampler state, and shaders. Multiple techniques are specified for a given rendering task so that the game can select the most appropriate method at runtime for the current graphics hardware. For example, HLSL shaders may be used on the more advanced GPUs while earlier GPUs fall back to a fixed-function shader method. On the Mac we would be using OpenGL, which has no real equivalent to the effects framework.

Although we had experience translating Direct3D shaders written in shader model assembly code to a form that we could use with OpenGL, we had no compiler for turning FX files into something usable. We were able to solve this problem by taking the compiled (binary) form of the FX files and interpreting and translating them at runtime. The embedded shaders are translated to “ARB” vertex and fragment program assembly language. We interpreted the other information about techniques, passes, and state and implemented our own versions of the D3DX functions for applying and managing them.

Check out the full article at the site below.

GameAgent NonBlog: Civ IV Dev Diary
Aspyr Media
Civilization IV
Buy Civilization IV


Other Mac Games News for Monday, June 28, 2010

IMG Reviews Jolly Rover12:57 PM
Macgamestore.com Announces 30% Off Sale On Over 1000 Games12:20 PM
• Civilization IV Dev Diary Available6:00 AM
Puzzle Agent Trailer Released6:00 AM
Sam & Max Episode 2 Reviewed6:00 AM
Vendetta Online Updated6:00 AM
 
View all of the Mac games news for Monday, June 28, 2010 on one page

Mac Games News for Friday, June 25, 2010

Blizzard Entertainment Global Writing Contest 2010 Unveiled6:00 AM
Cataclysm: The Changing Face Of Azeroth6:00 AM
City of Heroes Super Booster V: Mutant Pack Now Available6:00 AM
EVE Online: New Primae Vessel Available For Free June 296:00 AM
 
View all of the Mac games news for Friday, June 25, 2010 on one page


Recent Mac Games News

Thursday, June 24, 2010
Wednesday, June 23, 2010
Tuesday, June 22, 2010
Monday, June 21, 2010
Friday, June 18, 2010


Search for other Mac games news stories or browse our Mac Games News Archive.



Archives  News  Civilization IV Dev Diary Available