David, Here are a couple of suggestions:
1) Check out the vgui_screen class. There is a pretty good tutorial here: http://developer.valvesoftware.com/wiki/VGUI_Screen_Creation You'll need to do a little more than the tutorial to get the dynamic text. 2) You could use a Sprite (env_sprite) that is textured with a Procedural texture. You can attach the sprite to the player. Then, in the procedural specification for the texture mapped to the sprite, use code the draw whatever you want, whenever you want. Here is a place to get started: http://developer.valvesoftware.com/wiki/Procedural_Materials As always, there are probably easier methods, but these will work. Steve On Wed, Mar 5, 2008 at 12:03 PM, David Adams <[EMAIL PROTECTED]> wrote: > -- > [ Picked text/plain from multipart/alternative ] > Just to follow up on my original question and what you guys are talking > about, ive found the code that i need to place the voice icon over someones > head, the problem is its an icon and not text. How can I create in real > time text rather then loading an icon? > > To be more specific, it looks like they create a mesh using meshbuilder and > load the icon onto that, if i understand it correctly. Is there some > drawtext function somewhere to put text in there, or perhaps this is the > wrong way to go about doing it and i will have to create a new class > altogether? thanks again! > > On Wed, Feb 27, 2008 at 5:34 PM, Tony omega Sergi <[EMAIL PROTECTED]> > wrote: > > > how do you do it garry if you don't mine me askin? i was thinkin about > > this a bit and i think rt s might be a good way to do it as well but > > again the text could look shit that way too > > > > On 2/27/08, Garry Newman <[EMAIL PROTECTED]> wrote: > > > I have some code knocking about to place the camera so you can draw > > > VGUI in the world easier if anyone's interested. The fonts look like > > > total shit though. It's pretty much exactly the same as what the vgui > > > screen thing does. > > > > > > garry > > > > > > On Wed, Feb 27, 2008 at 9:02 PM, Tony omega Sergi <[EMAIL PROTECTED]> > > > wrote: > > > > you're welcome :) > > > > > > > > > > > > On 2/27/08, Tom Edwards <[EMAIL PROTECTED]> wrote: > > > > > That also solves a problem I've had brewing as well. Thanks! > > > > > > > > > > David Adams wrote: > > > > > > -- > > > > > > [ Picked text/plain from multipart/alternative ] > > > > > > thanks for that insight, i didnt think about the voice comm icon, > > but > > > that > > > > > > is a perfect example of what i need! > > > > > > > > > > > > On Wed, Feb 27, 2008 at 3:00 PM, Tony omega Sergi > > > <[EMAIL PROTECTED]> > > > > > > wrote: > > > > > > > > > > > > > > > > > >> -- > > > > > >> [ Picked text/plain from multipart/alternative ] > > > > > >> Depends on how you want to do it. > > > > > >> Look at the voice icons for one method; > > > > > >> Alternatively, you could do it entirely on the hud; using that > > method > > > and > > > > > >> ScreenTransform to get the coordinates. > > > > > >> -Tony > > > > > >> > > > > > >> On Wed, Feb 27, 2008 at 2:39 PM, David Adams < > > [EMAIL PROTECTED]> > > > > > >> wrote: > > > > > >> > > > > > >> > > > > > >>> -- > > > > > >>> [ Picked text/plain from multipart/alternative ] > > > > > >>> please pardon me if this has been asked before, but what class > > or > > > > > >>> > > > > > >> classes > > > > > >> > > > > > >>> should i be looking into to create floating labels that say, for > > > > > >>> > > > > > >> instance, > > > > > >> > > > > > >>> the players name over his head? > > > > > >>> appreciate it! > > > > > >>> -- > > > > > >>> > > > > > >>> _______________________________________________ > > > > > >>> To unsubscribe, edit your list preferences, or view the list > > > archives, > > > > > >>> please visit: > > > > > >>> http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >> -- > > > > > >> -omega > > > > > >> -- > > > > > >> > > > > > >> _______________________________________________ > > > > > >> 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > To unsubscribe, edit your list preferences, or view the list > > archives, > > > > > please visit: > > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > > > > > > > > > > > > -- > > > > -omega > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > -- > > -omega > > > > _______________________________________________ > > 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 > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

