It looks like there are only a few cases where it returns zero.
The most common issues under your control in the client DLL would be:

Set r_entity to something other than -1 skips drawing entities
No pStudioHdr->numbodyparts == 0  (probably not this if it actually
works sometimes - this would indicate a bad/corrupt mdl)
IClientRenderable::SetupBones() returns 0   (this is the most likely
thing I'd guess)
Can't lock the studiohwdata (seems really unlikely that this could cause
blinking unless you're manually flushing the model cache somehow)

There are a couple of other exit without draw conditions but those
return 1 (like if you don't set the STUDIO_RENDER flag).

So check the code in setupbones for the player.



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Jorge Rodriguez
> Sent: Wednesday, January 31, 2007 8:33 PM
> To: [email protected]
> Subject: [hlcoders] IVModelRender::DrawModel() returning 0
>
> --
> [ Picked text/plain from multipart/alternative ] I'm trying
> to replace the player model, but when I get it in game it
> blinks a lot, and sometimes doesn't display at all. I tracked
> it down to
> IVModelRender::DrawModel() returning 0 instead of drawing. I
> can't see anything in the parameters that would indicate
> something I'm doing wrong, I tried playing with them but I
> couldn't get it rendering correctly.
>
> I can't find any documentation on what the return values of
> IVModelRender::DrawModel() mean, or how I can figure out
> what's going wrong, and there's no information on Google. Can
> anybody help?
>
> --
> Jorge "Vino" Rodriguez
> --
>
> _______________________________________________
> 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

Reply via email to