Learning HLSL, and D3DX updates too often

posted in IfThen Software
Published May 03, 2011
Advertisement
If you want to learn HLSL, I highly recommend ShaderX2: Intro & Tutorials, specifically the article "Introduction to the DirectX High Level Shading Language". The book, along with a couple of the other ShaderX books, has been made available for free over at http://tog.acm.org/resources/shaderx/ so you don't even need to purchase it! You can also find that specific article on the MSDN at http://msdn.microsof...y/ms810449.aspx.

I plan on avoiding D3DX in future projects. There are of course the overhead and inflexibility concerns, but my main motivation is the fact that it gets updated much more frequently than DirectX. Now, this isn't a bad thing if you are releasing a final product with an installer and everything, since you can package in the DirectX updater, but it is a real pain to deal with if you are just releasing demos. The demos are usually packed up into a .zip file without an installer, which makes things easier on both the user and myself. The problem I have encountered is that most users do not keep their copy of D3DX up-to-date, while I usually have the latest version. This requires the user to install the update, either by downloading a separate "dependencies" file along with the demo or getting the update directly from Microsoft. A lot of people don't want to bother doing that.

I only use D3DX for creating textures, so avoiding it won't be that problematic overall. However, I will need to brush up on my bitmap format knowledge and figure out how to use libpng.

Today marks the last day of the "knowledge" phase of the R&D I am doing. I will be entering the "experience" phase tomorrow, which involves actually using the information I learned. The point of the "experience" phase is to get me more comfortable with the new techniques, and iron out the first big wave of unforeseen problems which inevitably rise up when doing something for the first time. On a side-note, I suppose calling these the "research" and "development" phases respectively would be more fitting, but I like the more general feel of the other set of names.

[size="1"]Reposted from http://invisiblegdev.blogspot.com/
0 likes 2 comments

Comments

Aardvajk
Don't quote me on this, but I [i]believe[/i] it is legal to ship a demo with a copy of the relevant D3DX dll just sitting in the program's exe directory, which will be checked when Windows attempts to link at runtime.

Obviously this is not good for a finished product as the dll will not benefit from future updates, but it is fine for one-off demos and means that you just add another file to your zip.
May 03, 2011 09:52 AM
bubu LV
No, it's not legal. Can't find link to MSDN site with exact text, but here's same text: http://stackoverflow.com/questions/265376/directx-redistributable-package-breakdown
May 03, 2011 02:01 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement