This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
nintendo_64:fog [2018/07/04 03:19] David Rewrote parts of the article to make it more clear. |
nintendo_64:fog [2019/05/29 20:49] (current) David Updated dead link |
||
|---|---|---|---|
| Line 85: | Line 85: | ||
| ===== Setting Fog Color ===== | ===== Setting Fog Color ===== | ||
| - | The fog color is a simple RGBA value that you define in the display list. Generally, this should be the same color as the background. If the background is complicated (clouds, mountains, gradients, etc), [[https://level42.ca/projects/ultra64/Documentation/man/pro-man/pro11/index11.8.html|then you should try making the objects fade by transparency rather than by color]]. | + | The fog color is a simple RGBA value that you define in the display list. Generally, this should be the same color as the background. If the background is complicated (clouds, mountains, gradients, etc), [[http://ultra64.ca/files/documentation/online-manuals/man/pro-man/pro11/index11.8.html|then you should try making the objects fade by transparency rather than by color]]. |
| Fast3D / Fast3DEX / Fast3DEX2 / Fast3DZEX | Fast3D / Fast3DEX / Fast3DEX2 / Fast3DZEX | ||
| Line 120: | Line 120: | ||
| C/C++ | C/C++ | ||
| - | // Someone please fill this in later. | + | gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2) // If surface is fully opaque |
| + | gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_NOOP2) // If surface has transparency | ||
| 3.) Finally we clear the fog flag in the geometry mode. | 3.) Finally we clear the fog flag in the geometry mode. | ||
| Line 135: | Line 136: | ||
| ===== References ===== | ===== References ===== | ||
| - | * https://level42.ca/projects/ultra64/Documentation/man/pro-man/pro11/index11.8.html | + | * http://ultra64.ca/files/documentation/online-manuals/man/pro-man/pro11/index11.8.html |
| * http://ultra64.ca/files/documentation/online-manuals/man/n64man/gdp/gDPSetFogColor.html | * http://ultra64.ca/files/documentation/online-manuals/man/n64man/gdp/gDPSetFogColor.html | ||
| * http://n64devkit.square7.ch/n64man/gdp/gDPSetRenderMode.htm | * http://n64devkit.square7.ch/n64man/gdp/gDPSetRenderMode.htm | ||