Thread: Chams problem

Results 1 to 11 of 11
  1. #1
    Xiao@'s Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Heart
    Posts
    457
    Reputation
    16
    Thanks
    120
    My Mood
    Aggressive

    Exclamation Chams problem

    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.

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Creating an overlay on textures doesn't make walls transparent

  3. #3
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    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?

  4. #4
    Xiao@'s Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Heart
    Posts
    457
    Reputation
    16
    Thanks
    120
    My Mood
    Aggressive
    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.

  5. #5
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    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?

  6. #6
    Xiao@'s Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Heart
    Posts
    457
    Reputation
    16
    Thanks
    120
    My Mood
    Aggressive
    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.

  7. #7
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Do you mind posting all of your code?

  8. #8
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Quote Originally Posted by Xiao@ View Post
    pDevice->SetRenderState(D3DRS_ZENABLE, true);
    Why do you enable it right after disabling

  9. The Following User Says Thank You to Biesi For This Useful Post:

    Xiao@ (12-06-2014)

  10. #9
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Biesi View Post


    Why do you enable it right after disabling
    Because he wants the characters to be different color when they aren't behind a wall. Well, that would be the case if he didn't use the same texture in both those instances.

  11. The Following User Says Thank You to Void For This Useful Post:

    Xiao@ (12-06-2014)

  12. #10
    lvous's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    348
    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.

  13. The Following 2 Users Say Thank You to lvous For This Useful Post:

    Void (12-04-2014),Xiao@ (12-06-2014)

  14. #11
    Xiao@'s Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Heart
    Posts
    457
    Reputation
    16
    Thanks
    120
    My Mood
    Aggressive
    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.

Similar Threads

  1. Cham problems ...
    By darkfire1710 in forum CrossFire Hacks & Cheats
    Replies: 8
    Last Post: 07-29-2009, 08:53 PM
  2. simple chams problem
    By NAV33D in forum Combat Arms Europe Hacks
    Replies: 20
    Last Post: 03-05-2009, 08:46 AM
  3. Simple Chams Problem
    By Picachu729 in forum Combat Arms Hacks & Cheats
    Replies: 9
    Last Post: 03-01-2009, 08:59 PM
  4. Chams problem
    By White97TA in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 12-19-2008, 07:16 AM
  5. Chams Problem X(
    By Biller01 in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 09-15-2008, 05:29 PM