Home Who's Online Today's Posts Mark Forums Read
Go Back   Dedicated to Cannabis Education, Recreational. Medicinal, and Cultivation. > 420 Cafe > Computer Stuff
Register FAQ Calendar Gallery Arcade Mark Forums Read Chat Room

Computer Stuff Geeks n' Tokers Unite.


DirectX Explained

Computer Stuff


Reply
 
LinkBack Thread Tools Display Modes
Old 02-28-2008, 10:31 PM   #1 (permalink)
Has many harvests
BudMaster
 
the.fatman.cometh's Avatar
 

Location: llǝɥs ǝɥʇ uı ʇsoɥƃ ǝɥʇ ɯɐ !
Gallery: 1
Thanks: 385
Thanked 228 Times in 150 Posts
the.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to behold
Activity Longevity
0/20 20/20
Today Posts
0/0 sssss2757
Cool DirectX Explained

DirectX explained

Ever wondered just what that enigmatic name means, or how to troubleshoot a problem you may be having with DirectX? Then read on.

Gaming and multimedia applications are some of the most satisfying programs you can get for your PC, but getting them to run properly isn’t always as easy as it could be. First, the PC architecture was never designed as a gaming platform. Second, the wide-ranging nature of the PC means that one person’s machine can be different from another. While games consoles all contain the same hardware, PCs don’t: the massive range of difference can make gaming a headache.

To alleviate as much of the pain as possible, Microsoft needed to introduce a common standard which all games and multimedia applications could follow – a common interface between the OS and whatever hardware is installed in the PC, if you like. This common interface is DirectX, something which can be the source of much confusion.

DirectX is an interface designed to make certain programming tasks much easier, for both the game developer and the rest of us who just want to sit down and play the latest blockbuster. Before we can explain what DirectX is and how it works though, we need a little history lesson.


DirectX history
Any game needs to perform certain tasks again and again. It needs to watch for your input from mouse, joystick or keyboard, and it needs to be able to display screen images and play sounds or music. That’s pretty much any game at the most simplistic level.

Imagine how incredibly complex this was for programmers developing on the early pre-Windows PC architecture, then. Each programmer needed to develop their own way of reading the keyboard or detecting whether a joystick was even attached, let alone being used to play the game. Specific routines were needed even to display the simplest of images on the screen or play a simple sound.

Essentially, the game programmers were talking directly to your PC’s hardware at a fundamental level. When Microsoft introduced Windows, it was imperative for the stability and success of the PC platform that things were made easier for both the developer and the player. After all, who would bother writing games for a machine when they had to reinvent the wheel every time they began work on a new game? Microsoft’s idea was simple: stop programmers talking directly to the hardware, and build a common toolkit which they could use instead. DirectX was born.

How it works
At the most basic level, DirectX is an interface between the hardware in your PC and Windows itself, part of the Windows API or Application Programming Interface. Let’s look at a practical example. When a game developer wants to play a sound file, it’s simply a case of using the correct library function. When the game runs, this calls the DirectX API, which in turn plays the sound file. The developer doesn’t need to know what type of sound card he’s dealing with, what it’s capable of, or how to talk to it. Microsoft has provided DirectX, and the sound card manufacturer has provided a DirectX-capable driver. He asks for the sound to be played, and it is – whichever machine it runs on.

From our point of view as gamers, DirectX also makes things incredibly easy – at least in theory. You install a new sound card in place of your old one, and it comes with a DirectX driver. Next time you play your favourite game you can still hear sounds and music, and you haven’t had to make any complex configuration changes.

Originally, DirectX began life as a simple toolkit: early hardware was limited and only the most basic graphical functions were required. As hardware and software has evolved in complexity, so has DirectX. It’s now much more than a graphical toolkit, and the term has come to encompass a massive selection of routines which deal with all sorts of hardware communication. For example, the DirectInput routines can deal with all sorts of input devices, from simple two-button mice to complex flight joysticks. Other parts include DirectSound for audio devices and DirectPlay provides a toolkit for online or multiplayer gaming.

DirectX versions
The current version of DirectX at time of writing is DirectX 10.0. This comes standard with Windows Vista, in part to handle the new graphics of the Windows Aero scheme. With so many versions of DirectX available over the years, it becomes difficult to keep track of which version you need. In all but the most rare cases, all versions of DirectX are backwardly compatible – older games which say they require DirectX 7 will happily run with more recent versions, but not with older copies. Many current titles explicitly state that they require DirectX 9 or 10, and won’t run without the latest version installed. This is because they make use of new features introduced with this version, although it has been known for lazy developers to specify the very latest version as a requirement when the game in question doesn’t use any of the new enhancements. Generally speaking though, if a title is version locked like this, you will need to upgrade before you can play. Improvements to the core DirectX code mean you may even see improvements in many titles when you upgrade to the latest build of DirectX. Downloading and installing DirectX need not be complex, either.

Upgrading DirectX
All available versions of Windows come with DirectX in one form or another as a core system component which cannot be removed, so you should always have at least a basic implementation of the system installed on your PC. However, many new games require the very latest version before they work properly, or even at all.

Generally, the best place to install the latest version of DirectX from is the dedicated section of the Microsoft Web site, which is found at DirectX® 10. You can download either a simple installer which will in turn download the components your system requires as it installs, or download the complete distribution package in one go for later offline installation.

Another good source for DirectX is games themselves. If a game requires a specific version, it’ll be on the installation CD and may even be installed automatically by the game’s installer itself. You won’t find it on magazine cover discs though, thanks to Microsoft’s licensing terms.

Diagnosing problems
Diagnosing problems with a DirectX installation can be problematic, especially if you don’t know which one of the many components is causing your newly purchased game to fall over. Thankfully, Microsoft provides a useful utility called the DirectX Diagnostic Tool, although this isn’t made obvious. You won’t find this tool in the Start Menu with any version of Windows, and each tends to install it in a different place.

The easiest way to use it is to open the Start Menu’s Run dialog, type in dxdiag and then click OK. When the application first loads, it takes a few seconds to interrogate your DirectX installation and find any problems. First, the DirectX Files tab displays version information on each one of the files your installation uses. The Notes section at the bottom is worth checking, as missing or corrupted files will be flagged here.

The tabs marked Display, Sound, Music, Input and Network all relate to specific areas of DirectX, and all but the Input tab provide tools to test the correct functioning on your hardware. Finally, the More Help tab provides a useful way to start the DirectX Troubleshooter, Microsoft’s simple linear problem solving tool for many common DirectX issues.
__________________
Are you a gamer? Do you like fantasy fiction?

-----------------------------------------------
"Give me the place to stand, and I shall move the earth" — Archimedes


the.fatman.cometh is offline   Reply With Quote
Sponsored Advertisements

Old 03-02-2008, 03:47 AM   #2 (permalink)
Has many harvests
BudMaster
 
the.fatman.cometh's Avatar
 

Location: llǝɥs ǝɥʇ uı ʇsoɥƃ ǝɥʇ ɯɐ !
Gallery: 1
Thanks: 385
Thanked 228 Times in 150 Posts
the.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to beholdthe.fatman.cometh is a splendid one to behold
Activity Longevity
0/20 20/20
Today Posts
0/0 sssss2757
Default

Did this help, Pappy?
__________________
Are you a gamer? Do you like fantasy fiction?

-----------------------------------------------
"Give me the place to stand, and I shall move the earth" — Archimedes


the.fatman.cometh is offline   Reply With Quote
Old 03-02-2008, 10:21 AM   #3 (permalink)
Just another old hippie
Moderator
 
Pappy's Avatar
 

Location: under a rock
Gallery: 0
Thanks: 295
Thanked 276 Times in 212 Posts
Pappy is a splendid one to beholdPappy is a splendid one to beholdPappy is a splendid one to beholdPappy is a splendid one to beholdPappy is a splendid one to beholdPappy is a splendid one to beholdPappy is a splendid one to behold
Activity Longevity
8/20 16/20
Today Posts
0/0 sssss1483
Default

Quote:
Originally Posted by the.fatman.cometh View Post
Did this help, Pappy?
Honestly, I haven't gotten around to trying to fix the problem. I find myself spending so much time with GP, that I don't have time for the games, anyway. I will let you know, if and when, I try to get the game to work. Thanks, so much, for your help.
I really don't have much desire, anymore, for technical thought. I have become much more introspective and spiritual, in my thoughts and ideas, since becoming a member of this fantastic site.

Pappy
__________________
You can't believe anything I say, and only half of what you see me do.
Pappy is offline   Reply With Quote
Old 03-02-2008, 11:27 AM   #4 (permalink)
Old Fart/Resident hippie
Admin
 
videoman's Avatar
 

Location: hippie commune
Gallery: 14
Thanks: 148
Thanked 657 Times in 344 Posts
videoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond reputevideoman has a reputation beyond repute
Activity Longevity
12/20 20/20
Today Posts
0/0 sssss2503
Default

The way I understand it, is that in the old days, when you wrote a game, you had to write drivers for each and every sound card that you wanted your game to support, along with input devices and video displays too.

This became a daunting task for the game writers, hence Microsoft invented DirectX, where the game writers, only had to make there game campatible with DirectX, and DirectX would communicate directly with the PC owners devices.

It was actually DirectX and Plug n Play that killed the small PC retailer in the PC market. Especially Plug n Play.
Before this was introduced, there was a need for personalized service.

You could make a small fortune editing, fixing and writng autoexec.bat/config.sys files, installing sound cards and the like.
Peace
__________________
A man should be judged by the quality of his work, not the quality of his piss.
videoman is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
pH testing meters explained Mogie Smokers n' Tokers 0 04-16-2008 07:49 PM
directx Pappy Computer Stuff 5 02-28-2008 10:40 PM
Bandwidth Explained the.fatman.cometh Smokers n' Tokers 2 02-26-2008 05:48 PM
tags explained greenpassion Suggestions & Support 6 12-10-2007 08:07 AM
Reputation explained greenpassion Suggestions & Support 22 09-30-2007 11:59 AM


All times are GMT -4. The time now is 03:06 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39