Jump to content

Recommended Posts

Posted

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. 

Posted

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.

Posted

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.

polyPoints.thumb.png.15b4e9c611808cc9b9e7b38e149795f7.png

 

courseplay1.thumb.png.1a42019f93bf21a6154d1c912bf0916c.png

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

create1.thumb.png.e38a4681787c5dd5fabd4bc86a9b4179.png

 

point15_1.thumb.png.04646578c02b840f8d63e5fe430a6073.png

 

point15_2.thumb.png.0249614f783e61b4cb3bed6bfb191fd8.png

 

 

 

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now