October 21, 200223 yr Hi,The area I am attempting to model is going to require a substantial amount of coast remeshing, so to make the task slightly easier I wrote a small program.To use it I take a screen shot of an area with cellgrid and load this into the program. I can then draw up to 16 polys, with up to 16 points each and then the program generates the code that I paste into my autoasm document.The problem is the corner of the area does not seem to match the cellgrid coordinates. Am I trying to be too accurate, or is there another reason.The following code produces the result in the pics.Thanks, David;PolyPoints for cell: 381_111 AREA: 21_28 ;---* Polly1 *--- LWMDataAreaDrawPolygons 1, 2, 1, 21, 28 LWMPoly2 12,0,1,0,0 LWMPoint 71,0 LWMPoint 92,36 LWMPoint 91,48 LWMPoint 81,58 LWMPoint 78,66 LWMPoint 66,75 LWMPoint 27,90 LWMPoint 17,89 LWMPoint 0,93 LWMPoint 0,255 LWMPoint 255,255 LWMPoint 255,0 ;---* Polly2 *--- LWMDataAreaDrawPolygons 1, 2, 1, 21, 28 LWMPoly2 13,0,1,75,0 LWMPoint 71,0 LWMPoint 92,36 LWMPoint 91,48 LWMPoint 81,58 LWMPoint 78,66 LWMPoint 66,75 LWMPoint 26,90 LWMPoint 17,89 LWMPoint 0,93 LWMPoint 0,65 LWMPoint 42,53 LWMPoint 49,26 LWMPoint 40,0 ;---* Polly3 *--- LWMDataAreaDrawPolygons 1, 2, 1, 21, 28 LWMPoly2 5,0,1,85,0 LWMPoint 40,0 LWMPoint 49,26 LWMPoint 42,53 LWMPoint 0,65 LWMPoint 0,0
October 21, 200223 yr Author Hi Davidg58.Your tool looks great! Here's a link to a post I made that had no response. :(http://ftp.avsim.com/dcforum/DCForumID10/1182.htmlThe remesh Macro code was a first attempt to come up with some sort of logical remeshing.Note that the 'FS2002.cfg' line:TERRAIN_MAX_VERTEX_LEVEL=19...is the default. When changes to :TERRAIN_MAX_VERTEX_LEVEL=21Your edge may change... if not, then we'll have found a edge surrounding the flatten. Also, try to place thin, 2 point flattens right at the surrounding edge of the adjacent Areas. That might force the mesh down. ( I don't know if the data stream order would matter here.Please let us know what you find.Dick
Create an account or sign in to comment