Creating an overlay on textures doesn't make walls transparent
I don't know why my Chams can't see through wall.That mean when my teammates or my enemy is in front of me,I can see him (with Chams).Then,when my teammates or my enemy is behind the wall or very far away from me I can't see them.(I got on my Chams)All Chams(include phantom Chams and ghost Chams) and wireframe also cannot see through wall.Any solution?Thanks,sorry for my bad english,english is not my primary language.
Creating an overlay on textures doesn't make walls transparent
You need to disable the Z buffer for whatever you want to be able to see through walls.
Can you post your code so far?
Thanks for reply.
To Biesi : What do you mean "Creating an overlay on textures doesn't make walls transparent"?
To Void : This is my Chams code :
if((m_Stride == 52))
{
pDevice->SetRenderState(D3DRS_ZENABLE, false);
pDevice->SetTexture(0, texRed);
pDrawIndexedPrimitive(pDevice,pType D3DparamvalX,nMinIndex,nNumVertices,nStartIndex,nP rimitiveCount);
pDevice->SetTexture(0, texRed);
pDevice->SetRenderState(D3DRS_ZENABLE, true);
}
Last edited by Xiao@; 11-28-2014 at 06:35 AM.
So if I understand you're saying it's sort of working? Do the characters show up to be red when they aren't behind a wall?
Yes the Chams is working.The characters show up with red Chams when they aren't behind a wall.When they are behind a wall I can't see them with red Chams.
Screenshot : https://imageshack.com/a/img661/18/V0a478.jpg (Aren't behind a wall)
https://imageshack.com/a/img540/5885/BGSxff.jpg (Behind a wall)
Sorry I dunno how to post image,please click the URL thanks.
Do you mind posting all of your code?
Xiao@ (12-06-2014)
Last edited by Void; 12-01-2014 at 12:35 PM.
Xiao@ (12-06-2014)
Which game is this? In some games models are not always drawn behind walls for performance reasons. Anti occlusion can be server side or client side, if its client side then you can hack it, you need to hook CreateQuery for that (vtable index 118). You can google "anti-occlusion v2" for code example.
This is Mission Against Terror 2 CiB.Maybe MAT2 cannot.Thanks for all your reply.I will try anti-occlusion v2.
Last edited by Xiao@; 12-07-2014 at 12:02 AM.