adamantiam Posted May 10 Posted May 10 Hi all, I've been trying to figure out how to use the polygon points to put a hole in my field. I tried making another polygon point transform under the field and adding points to make a new polygon but it doesn't seem to get recognized when I try to repaint the field. I even tried reversing the winding order but that didn't seem to help either. Any help would be greatly appreciated.
WrinkleysRule Posted May 11 Posted May 11 Easiest way is to open map in game and use the landscaping tool Here's a video showing how to in GE https://www.youtube.com/watch?v=VVCabaREaaU
adamantiam Posted May 11 Author Posted May 11 Thanks for the idea but I'm hoping for a more hard coded way to do it. I would like to have some sort of points defined for holes so when I use the fields toolkit paint fields option I can have some holes painted for me. Maybe I can set some sort of layer info those areas? I'm not sure. I have 10 more fields to define and then I will dive into figuring out a solution lol. Edit: To be clear I just don't think that what is shown in the video is really a solution. With the debugging on you can see the issues in the video. There is a line from the last point to the new ring of points. I would imagine will cause problems with workers and steering assist. I will keep working to find a better solution and share what I find.
WrinkleysRule Posted May 13 Posted May 13 Having done a bit of research and testing using the method in the video it would seem as long as it is done correctly there are no problems when using the AI or Courseplay as the following video and images show. AI Island.mp4 If modifying aan existing field then First select the field in the Scenegraph -- in the Clear Fields (Selected Field) and wait for the field to be cleared (back to underlying texture) then Clear Fruits(Selected Field) Debug Toggle Debug Rendering Select the last Polygon point (note first and last points share the same location) points have to be selected/created in order Ctrl 'D' to duplicate, Ctrl B to place continue until you have the desired shape and the last point is over the first duplicated point To get it aligned perfectly select the 'X' transform in the Attributes panel and Ctrl - Shift 'C' (to copy x,y,z translations) select the last point and then the 'X' translation panel and Ctrl - Shift -V to paste the copied coordinates into it. Select the field No TG - Align Polygon Points to Terrain (Selected Field) followed by Rename Polygon Points (Selected Field), Repaint Fields (Selected Field), Validate (Selected Field) In the console log you will see that the field size has been adjusted to suit the new layout The problem with the method in the video with lines all over the place appears to be not aligning the first and last duplicated point correcrtly Image below show the various steps 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now