Welcome, Guest.

grey10110

  • Posts: 8
Imgui conflict with vgui
« on: January 01, 2022, 02:08:17 PM »
Hi,

I hooked d3d->EndScene() on garry's mod and im drawing a menu using Dear ImGui, everything works fine until i open the options menu (from gmod) this apply a grey filter on my menu kida like the options menu and this also occur while in game.

This is pretty annoying and i dont know how to fix it,
can anyone help me ?



It does int ingame too:

KittoniuM

  • Administrator
  • *
  • Posts: 1309
Re: Imgui conflict with vgui
« Reply #1 on: January 01, 2022, 02:26:27 PM »
ImGui is forbidden to be used by any game hacker under the BigPacket Chamber of Congress Social Document 11.3

grey10110

  • Posts: 8
Re: Imgui conflict with vgui
« Reply #2 on: January 01, 2022, 02:45:45 PM »
ImGui is forbidden to be used by any game hacker under the BigPacket Chamber of Congress Social Document 11.3
Lmao.

But didn't Bigpackets gmod used a modified version of ImGui ?

KittoniuM

  • Administrator
  • *
  • Posts: 1309
Re: Imgui conflict with vgui
« Reply #3 on: January 01, 2022, 02:53:49 PM »
Lmao.

But didn't Bigpackets gmod used a modified version of ImGui ?

Never ? LMAO

grey10110

  • Posts: 8
Re: Imgui conflict with vgui
« Reply #4 on: January 01, 2022, 03:02:05 PM »
And i imagine that you are not willing to help me so ?

KittoniuM

  • Administrator
  • *
  • Posts: 1309
Re: Imgui conflict with vgui
« Reply #5 on: January 01, 2022, 03:12:44 PM »
And i imagine that you are not willing to help me so ?

Solution would probably be stop using imgui, there is nothing I can do, ImGui is forbidden usage in this website.

grey10110

  • Posts: 8
Re: Imgui conflict with vgui
« Reply #6 on: January 01, 2022, 03:15:16 PM »
Why so much hate against this library ?

KittoniuM

  • Administrator
  • *
  • Posts: 1309
Re: Imgui conflict with vgui
« Reply #7 on: January 02, 2022, 09:07:13 AM »
Why so much hate against this library ?

because all nub pasters use it combined with some UnknownCheats offsets, bottleye bypasses and sell it for hundreds

KittoniuM

  • Administrator
  • *
  • Posts: 1309
Re: Imgui conflict with vgui
« Reply #8 on: January 02, 2022, 09:12:50 AM »
I hope you reconsider you usage of Imgui, you are looking for this:


//gamma correction
   m_Device->SetRenderState(D3DRS_SRGBWRITEENABLE, 0);

   //fix for drawing d3d9 if ingame cl_showfps is off!!
   m_Device->SetRenderState(D3DRS_COLORWRITEENABLE, 0xFFFFFFFF); //D3DCOLORWRITEENABLE_RED | D3DCOLORWRITEENABLE_GREEN | D3DCOLORWRITEENABLE_BLUE | D3DCOLORWRITEENABLE_ALPHA

grey10110

  • Posts: 8
Re: Imgui conflict with vgui
« Reply #9 on: January 08, 2022, 06:42:50 PM »
m_Device->SetRenderState(D3DRS_SRGBWRITEENABLE, 0);
Thanks, it works!

because all nub pasters use it combined with some UnknownCheats offsets, bottleye bypasses and sell it for hundreds
You know i am not pasting anything into my code because you dont learn anything by doing that and i hack games mainly to learn more about reversing and programming (and the "little" advantage it gives you XD), when i see a block of code instead of pasting it into my code i will read it, try to understand what it does and then rewrite it entirely into my own code to see if i correctly understood how the game works.

I use imgui because its a great library and i dont want to make a whole gui library only for some experiments/prototypes, but maybe one day i will do it.
« Last Edit: January 08, 2022, 06:44:07 PM by grey10110 »


Total Registered Members:





2017-2024 BigPackets. All rights reserved. All other trademarks, logos and copyrights are the property of their respective owners. This site is not associated with any company in any way.
Proudly powered by Simple Machines