Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - msteve

Pages: [1]
1
SFML projects / Re: AStar Pathfinding with Compass
« on: November 07, 2014, 11:44:06 pm »
Ok ;) But I think this version of the algorithm is very generic. I'm agree whit you, maybe we could help each other, add functionnality? performance?

And like Nexus said, it maybe not necessary to recreate the wheel. So I think it maybe more interresting for my lib to be Game focus. I explain, I think I should focus my works on algorithm usefull for game devellopers and not going in all directions. For the moment, I think that it could be interresting to implement Avoidance Algorithm.

What do you think of that? Maybe some ideas?

2
SFML projects / Re: AStar Pathfinding with Compass
« on: November 03, 2014, 03:38:33 pm »
I am happy if my work can be util =)

Quote
According to your tutorial, smoothPath() seems to remove intermediate nodes that lie on a line between two other points, i.e. they minimize the number of points, correct?
Your totaly right ;)

Quote
And does your A* implementation always consider 8 directions, or is it also possible to check only horizontally and vertically (4 directions)?
For the moment there is 8 dirrections, but I can add an option to have 4, it's not a big deal =)

Quote
By the way, if you plan to extend your library, you should check out LEMON. They provide quite optimized algorithms for a variety of graph-related problems and they also have a very nice API (as opposed to Boost.Graph). It might be worth having a look to not re-invent the wheel
Yes you right, I will read their features ;P

3
SFML projects / AStar Pathfinding with Compass
« on: November 03, 2014, 03:22:01 pm »
Hello all,

I was developing a little game when I was faced with the problem of pathfinding. So I share my experience for this kind of problems with a small lib that I created. I implemented a function that uses the algorithm AStar.

https://github.com/smagras/Compass

Here a little tutorial, but in french^^"  (More explained than on github)
http://idevlog.atspace.eu/magrasSteve/a-pathfinding-avec-compass/

And here you can see how to use the lib (we have 2d map, start point and a end point):

Quote
// Load map from file
Compass::PCore::Matrix<int> mapi = getMapFromFile("mapInput.txt"); // Just to init matrix, do your own code here

// Config parameters for the algorithm
Compass::PPathfinding::AStar  astar;
astar.smoothPath(true); //To have smooth path
astar.init(&mapi);

// Find the path from pend to pstart
Compass::PCore::Point pend(2,2);
Compass::PCore::Point pstart(8,8);
std::list<Compass::PCore::Point> res = astar.run(pstart,pend);

// Save result in file
savePathInFile("outFile.txt",mapi,res); // just show the result

I hope, it could help some peoples =)
(There is no many test for the moment, performances problems could exist :P )

4
SFML projects / Re: SFML.Utils - extensions for SFML.Net
« on: September 03, 2014, 10:50:53 am »
thats sound very cool :) i will try it :)

5
General discussions / Re: SFMLEasy - Compile the lib quickly
« on: July 21, 2014, 10:40:25 am »
When I used cmake-gui I had some problem too... I was maybe very bad, but I hate to lose time with configuration. Personaly I prefear spend my time to learn how to use the SFML than learn how to install it. And that why I make that, all pepole are not comfortable whit the compilation, and i was one of this. With SFMLEasy you just have to specify the path of minGW and bam! you have your sfml ready to use!

Your right when you say that its limited by only minGW, but I dont use other so... Maybe in the futur^^

For the antivirus i found that  is cmake the problem not java, do you know why the alarm start when i want to cmake? :/
Quote
cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE c:/path...

I'm sorry if you think that app was useless, I don't force anybody to use it. I just hope that it could help some newbee like me to install this lib.

6
General discussions / Re: SFMLEasy - Compile the lib quickly
« on: July 21, 2014, 12:23:54 am »
I never said that the documention was bad, it's an exelent documentation! But when I'have start whit sfml it was very dificult for me to install and the only way for me to use sfml was the compilation, but I have lost many hours to understand why it's don't work... I had alway some littel problems to finish the compil and thats very exhausting when are blocked by just a configuration problem... It could be discouraging...

So when I had problems, I would use an application that could do that in my place, I would avoid wasting a lot of time ... So I want to share this littel tool whit the community to help others people in the same case =)

I use SFML because that's a very cool and powerfull lib. And for Java, you'r right but many pepole have java. But I will try to convert in exe, i see that it maybe possible.

7
General discussions / SFMLEasy - Compile the lib quickly
« on: July 20, 2014, 11:11:39 pm »
Hello everyone,

I created a small program to help people to easily compile SMFL. I created it because when i began to use sfml i was very discouraged because of the recompil.

So this small program can help you if you want to compil the sfml.
At the beginning you must set paths for Mingw, master, cmake and start the compilation.

You must provide the path to of your minGW and if you dont have cmake or master, just type "auto" and the sofware will download it for you.

Then you type "easy install" for compilation.
Note: On my computer I have to disable antivirus to run this command.

If you want to reconfigure type "easy config".
And using type "help"

You just need to download on github: https://github.com/smagras/SFMLEasy
And run the .bat (which launches the .jar)  because i have code this in java.

If you use the auto config, the lib will be in the download folder in master.


I hope it will please you and it will help some people because I love sfml but it's so painfull to install when you don't know ^ ^ "

Tell me if you have problems and I'm trying to fix them. I will try to add features soon and if you have any idea you can participate =)

PS: I'm french, i'm sorry for the langague.

Steve.

Pages: [1]
anything