chadrockey / TGC-Designer-Tools

Tools to support course creation and Lidar/Terrain Creation in The Golf Club 2019.
Apache License 2.0
44 stars 27 forks source link

Latest release does not install dependencies properly #128

Open kstrycharz opened 10 months ago

kstrycharz commented 10 months ago

Unable to make additions to application. Laspy version required does not resolve when using pip. Attempted a manual install and no luck.

I am having an issue with the Designer when importing courses with the fairway surrounding the green. After digging through the source code, I want to re order how the application renders greens to make sure they end up on top.

chadrockey commented 10 months ago

Could you try this requirements.txt and let me know if it works for you:

imutils==0.5.2 matplotlib==3.0.2 numpy==1.15.0 overpy==0.4 opencv-python==4.0.0.21 # opencv-python==4.5.4.60 overpy==0.4 Pillow==6.2.0 PyInstaller pyproj==1.9.6 requests==2.21.0 scikit-image==0.14.2 scipy==1.2.0 urllib3==1.24.2 -e git+https://github.com/chadrockey/laspy@14_fix#egg=laspy

As far as I'm aware, the game ALWAYS priorizes the splines based on the same order, which is roughly:

deep rough -> rough -> fairway -> green -> bunker

Greens should appear on top of everything except for bunkers (and bunker lips).

Let me know if you find any issues or find a fix.

Baconjunkie1 commented 10 months ago

Maybe I'm off in left field and not totally understanding your issue but if you're having issues with some or all fairways not showing up in the apps course preview and also in 2019 it is because on OSM the fairway spline has a MultiPolygon tag. Most fairways that go around the green and the fairways that have sand traps in them you'll find that multipolygon tag. The app will not render those. I don't know how to delete that tag from the spline other than delete that fairway and respline the fairway and the OSM people do not like that .... trust me on that one. LOL