This topic is 3491 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

Hiya guys, I keep trying to find some examples online of fogs but keep coming up short... Could some please give me a example or tutorial on fogs? More importantly the examples. Thanks.

Share this post


Link to post
Share on other sites
Now you didnt really say much about what u needed, but i kinda like this one

http://developer.download.nvidia.com/SDK/9.5/Samples/3dgraphics_samples.html#FogPolygonVolumes3

Share this post


Link to post
Share on other sites
Fixed-function style fog is pretty trivial to implement in shaders so its been many years since people actively used this feature which is probably why you can't find many examples.

This and this from ATI's archives might be worth looking at. They're going to focus on shaders, but if you're lucky they also have the old FF path included. Being D3D8 shouldn't matter as, bar a couple of syntactic changes, D3D8 fog is the same as D3D9 fog.

hth
Jack

Share this post


Link to post
Share on other sites
Thanks for the reply. The thing currently I'm trying to work with just basics and don't know shaders yet. So if you now of a plain easy to understand ff fog example then please post just that :).

Thanks again for the effort of helping me out!

Share this post


Link to post
Share on other sites
For FF those two links are about as good as you'll get without doing some seriously hardcore digging into the archives of Direct3D samples. Look at them and then decide what you can/cant use.

Shaders have been around in some form or another for 6 years now. For over a year they've been the only route to using cutting-edge Direct3D graphics. Both of these timeframes are quite substantial in the world of IT - if you must insist on learning the FF techniques then fair enough, but understand that you will find it very hard to separate the two.

These days the only FF samples you're likely to find are as part of other shader-oriented samples where the FF code represents comparative or fallback functionality.


Cheers,
Jack

Share this post


Link to post
Share on other sites
As Specialist84 posted - yes.

Fixed Function = Deep Dark History Of Direct3D
HLSL Shaders = Shiny Future of Direct3D

Simply put - if you're new to this technology you'll be far better off investing in learning HLSL shaders.

Jack

Share this post


Link to post
Share on other sites

This topic is 3491 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this