Hi,
I am looking to buy a pathfinding algo (A* or similar).
Please him me up inworld if you have something
Haden Marshall
These forums are CLOSED. Please visit the new forums HERE
Pathfinding Algorithm |
|
Haden Marshall
Inmate
Join date: 19 Nov 2004
Posts: 9
|
12-08-2004 06:23
Hi,
I am looking to buy a pathfinding algo (A* or similar). Please him me up inworld if you have something Haden Marshall |
Adam Zaius
Deus
![]() Join date: 9 Jan 2004
Posts: 1,483
|
12-08-2004 08:04
I sell access to mine, which is hosted outside of SL, and has an email interface.
L$25/user if you plan to resell it as part of something else (eg a vehicle), sold in minimum bundles of 10 users at a time. The system uses A* pathfinding against a current database of mainland & island sims, and is undergoing an update at the moment to select prefferentially based on last measured SimFPS. ![]() -Adam _____________________
|
Essence Lumin
.
Join date: 24 Oct 2003
Posts: 806
|
12-08-2004 09:05
I started messing around with an implementation of Djikstra's algorithm however this IS NOT FINISHED! Maybe it will help you though. Thanks to Francis Chung for pointing out the name Djikstra.
CODE
|
Haden Marshall
Inmate
Join date: 19 Nov 2004
Posts: 9
|
12-08-2004 12:18
Thanks, I will take a look at that.
Regards, Haden |
Adam Zaius
Deus
![]() Join date: 9 Jan 2004
Posts: 1,483
|
12-08-2004 13:09
You may have speed and memory problems using Djinkstra's algorithm in LSL.
I used to do it in the 1.2 era; around the 92 sim mark, it just refused to work. Before then, it was taking over a minute to do a calculation, with some fairly serious optimisation. ![]() -Adam _____________________
|
Essence Lumin
.
Join date: 24 Oct 2003
Posts: 806
|
12-08-2004 14:25
You may have speed and memory problems using Djinkstra's algorithm in LSL. I used to do it in the 1.2 era; around the 92 sim mark, it just refused to work. Before then, it was taking over a minute to do a calculation, with some fairly serious optimisation. ![]() -Adam That's one of the reasons I put it by the wayside. I didn't have memory problems but as I recall it was taking at least 20 seconds to figure out 15 points. When I did it locally in Perl it was done before I released the Enter key. |
Ming Chen
Here since 0.4.1!
Join date: 3 Sep 2003
Posts: 524
|
12-08-2004 18:00
The Djinkstra's algorithm looks pretty easy to implement into php and mysql(which would hold the sim coords)...I made an algorithm that ran off php about the 300 sim mark and found the path to opposite sims on the map in 5 seconds....sadley, I gave up on that algorithm when I forgot to implement the "u" shaped paths and would have made me redo the script all together, ill take a try at this one and see how it works
![]() _____________________
|
Essence Lumin
.
Join date: 24 Oct 2003
Posts: 806
|
12-08-2004 18:16
If you are going to reimplement it in php, here is the link I used (I'm no math wiz so I liked this one) to figure out how to do it in lsl.
Djikstra's algorithm |