YaLTeR / OpenAG

An open-source reimplementation of Adrenaline Gamer's client library.
https://j.mp/OpenAG
Other
131 stars 42 forks source link

Replace cuboid with polygons drawing for triggers on hardware engine if the model data available #186

Open SmileyAG opened 8 months ago

SmileyAG commented 8 months ago

Yes, it turns out there are enough real examples when triggers may not be a cuboid, so drawing with polygons is seem always a matter of time But as we already know, in map compilers that are not from Valve, as an optimization it's cut off all of that data for unused brush models and therefore that data is not available

Of course that some tools like bspguy can restore that information from a .bsp file, but I don’t I think that we want now to make a large complex work for such minor task

This code is not completely final, because I’m still thinking about what exactly speed / offset I want to use for change the alpha in these polygons, after this it most likely will be ready for merge, so for now I just made a pull request for a review but not as a merge

YaLTeR commented 8 months ago

For some reason from my BXT trigger drawing experiments I remember that the compilers strip out the model data completely, leaving just the collision. Is that not the case?