gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > fog and a sky box?

#168890 - iainprice - Mon Jun 01, 2009 7:52 pm

Hi, I have got fog working nicely but want a sky box. Is there a way of drawing my sky box at the edge of visibility without fog, thenenable fog and draw the rest of the scene? or am i limited to the choice between the two?

#168893 - DiscoStew - Mon Jun 01, 2009 8:35 pm

http://nocash.emubase.de/gbatek.htm#ds3dtoonedgefog

Quote:
Fog can be used to let more distant polygons to disappear in foggy grayness (or in darkness, or other color). This is particulary useful to "hide" the far clip plane. Fog can be enabled in DISP3DCNT.Bit6, moreover, when enabled, it can be activated or deactivated per polygon (POLYGON_ATTR.Bit15), and per Rear-plane (see there).


Hope that helps ya. :)
_________________
DS - It's all about DiscoStew