It's absolutely possible. Just take a look at IVModelRender::DrawModel() on the client, in addition to C_BaseAnimating::DrawModel() and C_BaseAnimating::InternalDrawModel() to see how studio models are rendered and how the function is called. This works well for regular screen-space panels, however for world-space panels like CVGuiScreen you'll probably have to render to a texture, and then render the texture on a panel. Check out view.cpp and view_scene.cpp around the places where IMaterialSystem::SetRenderTarget() is called. However the material system uses ITexture and the VGui system uses texture IDs, and I'm not sure how to bridge that gap so you can render the texture on the panel. I'm sure someone who knows more (read: Valve developer) can help.
Kamran wrote:
Is it possible to load a 3d model into a little panel to show on a VGUI screen? -- Kamran A Get Firefox! Safer, Faster, Better. <http://www.spreadfirefox.com/?q=affiliates&id=0&t=85> Down with Internet Explorer! Say "NO!" to Spyware! Use Firefox _______________________________________________ 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

