Resent: First time sent from wrong account. Apologies if 2 copies arrive.
This is in followup to my previous post about scaling and clipping
problems. I've done some further testing, and when the hull sizes
set in GetHullBounds (and HUD_GetHullBounds) are set to the
original default sizes (-16, -16, -36) (16, 16, 36), clipping against
the world is correct (corresponds to the reduced hull size compiled
into the map - (-4, -4, -4.5) (4, 4, 4.5) ) BUT when the hull sizes in
GetHullBounds and HUD_GetHullBounds are set to correspond to
the hull compiled into the map, clipping against the world is offset
by 12 units in the x & y directions and ~28 units in the z direction.
By offset, I mean the player's origin is always 12 units (in the x or y)
and 26-28 units (in the z) LOWER than it should be when the
movement clips against a wall - no matter which wall. To clarify, I've
included the coordinates of the limits interior walls of the map (just a
box) and the player origin limits below. Interestingly, clipping against
non-world entities is incorrect when using the larger values in
GetHullBounds but perfect when using the smaller values. Anyone
have any idea what might be causing this? At this rate, I'll be bald in
a few more days if I can't get this fixed.
Thanks.
Jim
map bounds (inside of walls; walls are 64 units thick):
(-256, -256, 0) - (320, 384, 768)
Player origin limits: (-264, -264, -17) - (304, 368, 731)
hull size compiled into map: (-4.5, -4.5, -10) - (4.5, 4.5, 10)
this is (9, 9, 20) in hullfile using Zoner's tools
hull size (GetHullBds): ( -4, -4, -9) - ( 4, 4, 9)
ideal origin bounds if clipping was correct:
(-252, -252, 9) - (316, 380, 759)
Error in clipping: ( -12, -12, -26) - (-12, -12, -28)
When GetHullBounds values are changed:
hull size (GetHullBds): ( -16, -16, -36) - ( 16, 16, 36)
Player origin bounds: (-252, -252, 10) - (316, 380, 758)
Error in clipping: ( 0, 0, -1) - ( 0, 0, 1)
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders