John Lammers John Lammers
[IMG=alignLeft]http://www.epictable.com/images/screenshots/2009/CavernCrossroads-200w.jpg[/IMG]Just a quick status update: I’m continuing to tie up loose ends in preparation for an alpha release. One of those is the performance of the line of sight engine. This is the set of algorithms that collectively make up what I’ve been calling EpicTable’s “TrueVision”.

Some of you may recall from the demo that updating the player’s view after a character move took 2-3 seconds, which is somewhat obnoxious. I’m happy to say that I’ve halved that already without doing anything too exotic.... [View original post]
trevor trevor
"one could spend the rest of one’s life messing with vision calculations"

from someone who has spent countless hours and written several implementations of vision calculations, I concur

Ironically, your nightmare situation is my simplest case. The thing that keeps me up at night is just the opposite: a dozen lights in the middle of a medium density forest where every tree trunk is modeled with a circle. Ouch !

Maybe we should combine algos and find a happy middle ground, heh
Reply 0 0
John Lammers John Lammers
Some sort of hybrid would be nice. We really are at opposite ends of the spectrum--my current algorithm does better and better as it gets more crowded. I have an earlier one that's ray/shape intersection based, but I'm sure it wasn't as refined as yours. If I resurrect that work, I still need an algorithm for choosing an algorithm. :/
Reply 0 0
HeavilyMental HeavilyMental
John, since your algorithm is most efficient at handling larger numbers of entities, would you say that it's "far-sighted"?

In contrast, Trevor's would be "near-sighted"? (Or is it the other way around?)

!
Reply 0 0
Omnidon Omnidon
Quote:
HeavilyMental;900 wrote: John, since your algorithm is most efficient at handling larger numbers of entities, would you say that it's "far-sighted"?

In contrast, Trevor's would be "near-sighted"? (Or is it the other way around?)

Other way around
John's algorithm handles small, crowded spaces well and Trevor's algorithm handles large, sparsely populated spaces well.
Reply 0 0
trevor trevor
Small clarification, MT handles heavily crowded areas well (both large and small), it's the medium density of small objects over a large area that's the problem (such as a medium density forest where the trunks are all modeled)
Reply 0 0
trevor trevor
John, are you in a position to post a short video of the new line of sight work ? I'd love to see it !
Reply 0 0
John Lammers John Lammers
Quote:
trevor;905 wrote: John, are you in a position to post a short video of the new line of sight work ? I'd love to see it !

I'm not, just now. Once I've finished the map/tabletop merge, I'll record one.
Reply 0 0
Reply