It depends on how you do it. I used to render models in opengl (completely overriding the internal renderer for opengl) right inside the studio code. I had modified studiomdl.exe to allow for special flags and other things, which allowed for things such as transparency on a specific point, or other neat rendering tricks. I also had complete TGA loading, where it would load textures from an external folder (and keep the bitmaps inside for software and d3d modes) I'd read in the texture name, check if a tga exists in a special texture folder in the format something like textures/models/modelname/texturename.tga and then load that texture into the index instead. As for his other problem, it depends on how he defines g_texnum. Instead of defining it as simply int g_texnum; its gotta start somewhere high, like say, int g_texnum = 20000; because hl in opengl mode USES the exact same system, and it starts at 0, and increments for every texture loaded. So if you're also using the same indices, opengl thinks you're modifying something that already exists. And I believe the console is always texnum 0, which leads to other possibilities =)
-omega Blackened Interactive - http://blackened-interactive.com Front Line Force - http://www.flfmod.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Commando Sent: November 27, 2002 7:07 AM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Loading a mdl in OGL produces strange results Micheal, I am not positive about this, but I would suspect that you are running into problems because in HL you are inserting stuff into the middle of the HL rendering chain. I would suspect that at the point where your code is being called, OpenGL is in a state that will not allow you to draw the models directly. You may be able to save off the state, reset, do your render then reset the original state, but I am pretty rusty at OpenGL programming and don't feel like diving into the books this morning :( Good luck. Rob Prouse (Commando) Tour of Duty Mod http://www.tourofdutymod.com At 04:01 PM 27/11/2002 +1100, you wrote: >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 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

