Totaly looking to do the same thing for our MOD. Want to make a weapon model selection GUI.. (we have replacement models for our weapons).. currently its an external app, but i'd like to incorperate it ingame..
On Wed, 27 Jul 2005 00:39:28 -0700, Skyler York wrote > 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 -- ^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^ + L A D N E T webmail Unix or DIE! +^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^ -= www.ladnet.org =- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

