HLCoders wrote:
> After a very quick search in some header files, I think these two
> functions might interest you.
>
> bool IVRenderView::AreAnyLeavesVisible( int *leafList, int nLeaves );
> int IEngineTrace::GetLeafContainingPoint( const Vector &ptTest ) = 0;
>
> I haven't tested them, but if they work like I think they do, this is
> how you'd do it. I think this is client-side too.
>
> bool ShouldDraw( const Vector &ptTest )
> {
> int LeafNum = enginetrace->GetLeafContainingPoint(ptTest);
> return render.>AreAnyLeavesVisible(&LeafNum,1);
> }
>
>> Is it possible to check if an object or vector is within a visible
>> (currently being rendered) visleaf? I need to occlude an entity that
>> isn't normally occluded, and this is the best way I can think of doing
>> it. Any help is much appreciated. I can't find any examples of this in
>> the code.
>>
>> -Kyle '1/4 Life' G.
>>
>> _______________________________________________
>> 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
>
>
>
Looks promising, I'll go try it out now. Thanks a lot.
-Kyle '1/4 Life' G.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders