Jump to content
  • Advertisement
Sign in to follow this  
xLeo

[DX9] .FX / HLSL Usage in advanced game programming?

This topic is 3327 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In advance games, such as Halo3, or Call of Duty 4, I understand that they must use .FX files, or some aspect of HLSL to produce advanced shader effects. However, I do not see any .FX Files lying around in their folders - do they somehow merge the .FX's into the executable? Thanks, Leo

Share this post


Link to post
Share on other sites
Advertisement
companies will either include the .fx files in the executable or they will use there own file format to hide them from people who are trying to peek at them.

Share this post


Link to post
Share on other sites
Many of them will just compile the shader/effect to a binary representation using fxc and then pack it into one of their resource files.

Share this post


Link to post
Share on other sites
Many times they also zip the files into .pak files. One example is Crysis, which puts all of its assets into .pak files. If you open the file with winzip or some other zip file reader, you can extract the files and examine their contents. However, keep in mind that they may not be obvious and poorly commented, but are still interesting to read anyways.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!