Author Topic: FengGUI menu breaks jPCT textures  (Read 12938 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: FengGUI menu breaks jPCT textures
« Reply #15 on: February 13, 2008, 06:53:48 pm »
You may also try to add a

Code: [Select]
ARBMultitexture.glActiveTextureARB(ARBMultitexture.GL_TEXTURE0_ARB);
GL11.glEnable(GL11.GL_TEXTURE_2D);

before calling jPCT to arms (i.e. before calling draw()) to re-enable textures on stage 0.

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: FengGUI menu breaks jPCT textures
« Reply #16 on: February 13, 2008, 07:23:16 pm »
yeap, that arm thing brought my textures back, it's like switching to color tv  ;D thank you. i placed it between World.renderscene and World.draw. but menu still does not show up

here it is:


so, any guesses about what the problem is ?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: FengGUI menu breaks jPCT textures
« Reply #17 on: February 13, 2008, 07:34:22 pm »
No clue about the menu itself, but obviously FengGUI disables texturing and doesn't re-enable it again afterwards. I think it should take care of this. However, i can add it to jPCT...maybe i should do this instead of simply assuming that my exit state is my new entry state, which is what i'm doing ATM.

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: FengGUI menu breaks jPCT textures
« Reply #18 on: February 13, 2008, 07:44:46 pm »
ok. meanwhile i'll send a mail to owner of FengGUI

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: FengGUI menu breaks jPCT textures
« Reply #19 on: February 13, 2008, 08:39:27 pm »
I've updated the jar in that hacks-dir with a version that may be able to handle this problem. Could you please give it a try?

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: FengGUI menu breaks jPCT textures
« Reply #20 on: February 13, 2008, 08:46:40 pm »
yes, textures render correctly without arm thing with that jar

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: FengGUI menu breaks jPCT textures
« Reply #21 on: February 13, 2008, 09:26:40 pm »
Ok, fine. I've updated the 1.16rc1 with that fix. However, i'm not really sure that this is the whole story, so i'll wait for the reply you'll get from the FengGUI guy.