Partially fog

Blitz3D Forums/Blitz3D Programming/Partially fog

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

okey, my budy came with idea that worked :-)
here it is:

;render upper view(without fog)
CameraFogMode g_hNormalCamera, 0 ;turn of fog
HideEntity g_hUnderwaterScene
EntityAlpha g_hPlayer, 0 ;'HideEntity g_hPlayer
ShowEntity g_hAboveWaterScene
ShowEntity hWaterPlane
RenderWorld
CopyRect 0, 0, 1024, 768, 0, 0, BackBuffer(),ImageBuffer(g_hImageBufferUp)

;render down view (with fog)
CameraFogMode g_hNormalCamera, 1
EntityAlpha g_hPlayer, 1 ;'ShowEntity g_hPlayer
HideEntity g_hAboveWaterScene
HideEntity hWaterPlane
Showentity g_hUnderWaterScene
RenderWorld
CopyRect 0, 0, 1024, 768, 0, 0, BackBuffer(), ImageBuffer(g_hImageBufferDown)

; SetBuffer BackBuffer()
DrawImage g_hImageBufferUp, 0, 0
DrawImage g_hImageBufferDown, 0, 0