PDA

View Full Version : Questions About Material Proxies



Astrum
31 May 2008, 08:56pm
Hey guys,

I have a few questions about some material proxies, namely PlayerProximity and PlayerView (both of which I believe should be available in CS:S).

With PlayerProximity I'm wondering if the distance is calculated as the magnitude of the 3-vector from the middle of the entity to the player, or the magnitude of the 2-vector from the entity to the player over the X-Y plane. In other words, is it the 3-space distance or 2-space distance (not taking into account height). If no one knows I suppose I'll have to experiment.

I'd also like to know if the PlayerView uses unit vectors for its calculations (which I'd expect) or vectors with the proper magnitudes, i.e. a vector from the camera to the entity. Also, are these vectors calculated before or after culling/clipping? I can't image them being calculated before, but if they are calculated before this would be an extremely inefficient proxy.

Thanks.