
HUD map
Needs to show zones. 

Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
Ok, sometimes it shows up in black. When it's black, if I go to chat, or the in-game menu, or even console input, then it appears as normal. Most of the time, it reverts back to black. Sometimes it doesn't show up in black, though. Weird. Any idea why?
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
Here's two screenshots, the first is the black map, the second is the map with the gui on, so you can see it did show up when I brought up the ingame menu. 

Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
- Jonathan
- A Brave Victim
- Posts: 3391
- Joined: Thu Feb 03, 2005 12:50 am
- Location: Not really lurking anymore
Fun. Can you do a glIsEnabled state dump just before calling DrawMap? Like this:
And also for GL_TEXTURE_2D.
Code: Select all
printf("GL_LIGHTING: %i\n", glIsEnabled(GL_LIGHTING));
Code: Select all
GL_LIGHTING: 0
GL_TEXTURE_2D: 1
GL_LIGHTING: 0
GL_TEXTURE_2D: 1
GL_LIGHTING: 0
GL_TEXTURE_2D: 1
GL_LIGHTING: 0
GL_TEXTURE_2D: 1
GL_LIGHTING: 0
GL_TEXTURE_2D: 1
GL_LIGHTING: 0
GL_TEXTURE_2D: 0
GL_LIGHTING: 0
GL_TEXTURE_2D: 0
GL_LIGHTING: 0
GL_TEXTURE_2D: 0
GL_LIGHTING: 0
GL_TEXTURE_2D: 0
GL_LIGHTING: 0
GL_TEXTURE_2D: 0

It flashes right a few times, while syncing with the server. Then settles in with the 0's, and shows a black map. Farther up in the history, GL_LIGHTING is also 1.
Edit: I put the two calls right before the two if statements that wrap DrawMap, if it matters, right after glLoadIdentity().
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
- Jonathan
- A Brave Victim
- Posts: 3391
- Joined: Thu Feb 03, 2005 12:50 am
- Location: Not really lurking anymore
I wonder where they may be left on (edit: when exactly is lighting on? Does it draw at that time?). Anyway, try
somewhere before it draws.
Code: Select all
glDisable(GL_TEXTURE_2D);
glDisable(GL_LIGHTING);
That seems to have fixed it. Thanks! I'll let you know if it doesn't work again.
Committed, too. Also, I turned it on and committed that. I can't really think of any reason not to have it on in the trunk.

Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: luke@dashjr.org
Heh, too little too late, Luke, but thanks. 

Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden