In the HLMV code, which I believe uses the StudioModel class, find the bit where it says:
glBindTexture( GL_TEXTURE_2D, g_texnum ); and add: glGenTextures(1, (unsigned int *)&g_texnum); before it, and comment out g_texnum++; I'm assuming that the HLMV class uses the StudioModel class - if it doesn't, then try to find something similar to the above (a glBindTexture followed by a glTexImage2D without any glGenTextures preceeding it). Francis "DeathWish" Woodhouse ----- Original Message ----- From: "Michael Shimmins" <[EMAIL PROTECTED]> To: "HLCoders" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 5:01 AM Subject: [hlcoders] Loading a mdl in OGL produces strange results > This is a multi-part message in MIME format. > -- > [ Picked text/plain from multipart/alternative ] > Hi, > > Just curious, anyone got an explanation as to why loading a mdl file > using the source code from HLMV in OpenGL through a VGUI menu loads the > model's skin as the console background image? > > I was playing around trying to get model loading for VGUI menus working, > and stumbled across this strange behavior. > > Thanks, > > Michael Shimmins <mailto:[EMAIL PROTECTED]> > Sesechial Software > > _______________________________________________________ > Important - This email and any attachments may be confidential. If > received in error, please contact us and delete all copies. Before > opening or using attachments, check them for viruses and defects. > Regardless of any loss, damage or consequence, whether caused by the > negligence of the sender or not, resulting directly or indirectly from > the use of any attached files our liability is limited to resupplying > any affected attachments. Any representations or opinions expressed are > those of the individual sender, and not necessarily those of Sesechial > Software. > > > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

