FLAMEGPU / FLAMEGPU2-pedestrian_navigation-example

FLAME GPU 2 version of the Pedestrian Navigation example from FLAME GPU 1
MIT License
1 stars 0 forks source link

require an input file #7

Open ptheywood opened 7 months ago

ptheywood commented 7 months ago

This example does not create a default non-empty map if no input file is provided with navmap agents.

In this case, a visualiastion will show the loading splash screen and never progress.

It would proabbly be a good idea to error and exit if no input map file is passed, or if no navmap agents exist (exit condition?).

Adding some usage info to the reamde wouldn't hurt either.

Robadob commented 7 months ago

I'll have overlooked this given that I use visual studio heavily.

I've never had access to the code that was used to generate the included map (although I made a crappy implementation during my ug dissertation). Would be nice to explain that too, maybe link the original flamegpu1 ped nav paper?

lj-cug commented 1 month ago

I have also run the code, but it's as saying, the program hanged at the loading ... screen. Could you tell me how to run the code? Li Jian

Robadob commented 1 month ago

Hi

You need to tell it where to find the input file that contains the map, e.g.

./flamegpu -i ../../map.xml -s 0

This example also requests unlimited steps, otherwise the model will only run 1 step.

This should be added to the readme.