Sign in to follow this  
Guest

LWMPoly Problem

Recommended Posts

Howdy Again :-zhelpI'm trying to cut a lake into the default texture near Anchorage,AK. The center coordinates: N61 29.43 W149 25.72Using Dick's CellGrid files and fantastic little programs I determined 65, 81 is the correct Cell and 6, 2 - 7, 2 and 6, 3 - 7, 3 is the correct Area (LOD 13) grids. I took a screenshot with the CellGrid lines and pasted the layout of my lake area onto it then I resized the image to 512 pixels hight then stretched the image width to 512 pixels making a nice square image but causing my lake to appear out of shape. With that I cut the image into FOUR 256x256 images then started to place 1 pixel white dots along the shoreline of the lake and I recorded EACH pixel point in a clockwise direction.Using Dick's LWM Tutorial I tried to create an asm file which I dropped onto the BGLCompiler but nothing shows in FS.Within the header bounds, I used a minus sign (-) for the Longitude but that doesn't work either. Here's what my asm file looks like and below is a screenshot (attached file) of the area 6, 2.; Bush Lake Alaska; ------------------------------------------------------------------------------include TDFMacros.incinclude TDFHeaders.inc; LWMMultiSpan N61* 29.43' W149* 25.72'; ------------------------------------------------------------------------------BGLHeader 62, 60, 152, 148, LWMHeader, TerrainHeaderStartLWMHeader label word LWMFileHeader 513, LWMIndexStart, LWMStart, LWMEndLWMStart label word; ------------------------------------------------------------------------------; Cell_65_81's Area data datamark_0 label word LWMDataAreaDrawPolygons 1, 3, 1, 6, 2 LWMPoly2 26, 0, 0, 1, 0 LWMPoint 90, 255 LWMPoint 84, 251 LWMPoint 79, 250 LWMPoint 75, 248 LWMPoint 62, 237 LWMPoint 48, 224 LWMPoint 44, 212 LWMPoint 42, 206 LWMPoint 43, 193 LWMPoint 63, 179 LWMPoint 79, 177 LWMPoint 84, 174 LWMPoint 105, 176 LWMPoint 130, 185 LWMPoint 157, 186 LWMPoint 164, 184 LWMPoint 167, 182 LWMPoint 172, 175 LWMPoint 172, 186 LWMPoint 181, 158 LWMPoint 218, 158 LWMPoint 229, 160 LWMPoint 242, 162 LWMPoint 249, 166 LWMPoint 255, 168 LWMPoint 255, 255 LWMDataAreaDrawPolygons 1, 3, 1, 7, 2 LWMPoly2 41, 0, 0, 1, 0 LWMPoint 0, 168 LWMPoint 5, 175 LWMPoint 12, 182 LWMPoint 19, 184 LWMPoint 26, 186 LWMPoint 33, 187 LWMPoint 41, 186 LWMPoint 48, 181 LWMPoint 52, 172 LWMPoint 51, 162 LWMPoint 51, 157 LWMPoint 43, 148 LWMPoint 34, 140 LWMPoint 28, 131 LWMPoint 30, 124 LWMPoint 38, 112 LWMPoint 47, 108 LWMPoint 80, 108 LWMPoint 95, 110 LWMPoint 105, 113 LWMPoint 118, 119 LWMPoint 126, 128 LWMPoint 130, 137 LWMPoint 130, 147 LWMPoint 123, 155 LWMPoint 113, 161 LWMPoint 108, 167 LWMPoint 107, 173 LWMPoint 107, 180 LWMPoint 102, 184 LWMPoint 99, 190 LWMPoint 86, 196 LWMPoint 75, 199 LWMPoint 65, 203 LWMPoint 57, 212 LWMPoint 56, 220 LWMPoint 59, 228 LWMPoint 71, 239 LWMPoint 86, 248 LWMPoint 99, 255 LWMPoint 0, 255 LWMDataAreaDrawPolygons 1, 3, 1, 6, 3 LWMPoly2 20, 0, 0, 1, 0 LWMPoint 90, 0 LWMPoint 255, 0 LWMPoint 255, 113 LWMPoint 245, 109 LWMPoint 234, 104 LWMPoint 229, 98 LWMPoint 222, 90 LWMPoint 217, 84 LWMPoint 203, 74 LWMPoint 183, 64 LWMPoint 172, 61 LWMPoint 161, 59 LWMPoint 145, 55 LWMPoint 129, 53 LWMPoint 115, 49 LWMPoint 106, 43 LWMPoint 102, 35 LWMPoint 106, 24 LWMPoint 102, 14 LWMPoint 97, 3 LWMDataAreaDrawPolygons 1, 3, 1, 7, 3 LWMPoly2 29, 0, 0, 1, 0 LWMPoint 0, 0 LWMPoint 99, 0 LWMPoint 107, 2 LWMPoint 129, 18 LWMPoint 142, 29 LWMPoint 147, 40 LWMPoint 147, 48 LWMPoint 150, 66 LWMPoint 154, 78 LWMPoint 158, 86 LWMPoint 158, 94 LWMPoint 168, 101 LWMPoint 187, 104 LWMPoint 200, 108 LWMPoint 208, 112 LWMPoint 210, 125 LWMPoint 205, 131 LWMPoint 179, 142 LWMPoint 159, 148 LWMPoint 128, 148 LWMPoint 112, 145 LWMPoint 96, 141 LWMPoint 83, 137 LWMPoint 68, 127 LWMPoint 63, 123 LWMPoint 53, 119 LWMPoint 28, 115 LWMPoint 11, 115 LWMPoint 0, 113 datamark_1 label word; ------------------------------------------------------------------------------Cell_65_81 EQU LWMCellID 0, 0, 3, 65, 81 LWMIndexStart label word LWMIndexHeader 1, LWMIndexData LWMIndexData label word LWMIndexEntry Cell_65_81, LWMStart, datamark_0, datamark_1; ------------------------------------------------------------------------------LWMEnd label word; ------------------------------------------------------------------------------; ------------------------------------------------------------------------------ Any help is certainly appreciatedKen

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Ken!You made a mistake with the BGL Header bounds:BGLHeader 62, 60, -148, -152, LWMHeader, TerrainHeaderStartI knew to look there, because I've done it 50 times myself.*:-* Dick

Share this post


Link to post
Share on other sites

BRO!!!!!!!Thank You AWESOMELY that worked and I'm a very happy camper. :-spacecraftNow I'll be looking for the shoreline with waves tutorial too!!!Thanks Big Time Dick :) I owe ya one for sure.Ken

Share this post


Link to post
Share on other sites

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
Sign in to follow this