HGE zbuffer bug.
  • NobleQiaoNobleQiao June 2008
    Hi , I find a zbuffer bug when using HGE for my game.
    if you enable HGE_ZBUFFER and use NOZWRITE Blend Mode only(no ZWRITE Sprite at that time,but will appear later.),zbuffer will be writen because the default zwrite state in D3D is TRUE.
    I fix this bug by adding codes in bool HGE_Impl::_init_lost()
    line 973:
    CurBlendMode = BLEND_DEFAULT;
    if (bZBuffer)
    pD3DDevice->SetRenderState(D3DRS_ZWRITEENABLE, FALSE);

    because CurBlendMode is NOZWRITE but D3D 's ZWRITE is TRUE(default) at init time.

    BTW : Why HGE forum bans gmail Email Address for register.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Who's Online (0)