Results 1 to 5 of 5
  1. #1
    Master Sergeant
    Reputation
    40
    Join Date
    Jul 2007
    Location
    United States - Ohio
    Posts
    84
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0

    [Developer Question] .ADT terrain not loading properly

    Here is the deal folks
    I coded a little tool to read a .adt file and load the MCVT (Vertice Height Data) into an empty plane. It loads all the data correctly and each chunk uses its own plane a 16x16 grid.

    The problem i've run into is the map chunks are offset somehow and loads each chunk at a different height leaving gaps heightwise between each map chunk

    It loads map vertice heights into an array VHeight(Mapchunks,X,Z) as FLOAT

    The result is nice, it has the whole map loaded but i can't find the offset in the .adt file that raises or lowers the chunks to seal the gaps.

    Any help would be nice and score a spot in the credits (yay, i see you jumpin for joy!! lol) not much but appreciated. The tool uses a LOT less memory than noggit and works fine on a laptop that doesnt even have RAM requirements for WoW itself met which is why i'm developing it. i dont like noggits memory **** :-)

    Whoever shows me a proper solution to the problem i will rep as much as possible (for more than one day if you wish)
    Last edited by DJRehab; 02-15-2009 at 10:34 PM.

  2. #2
    Retired Noggit Developer
    schlumpf's Avatar
    Reputation
    751
    Join Date
    Nov 2006
    Location
    Germany (DE)
    Posts
    2,770
    CoreCoins
    16

    Trade Feedbacks

    Positive
    0
    Negative
    0
    MCNK.Position[3]: 068h, defining the offset in the world in all three dimensions. (Yes, you could position a chunk far off its normal position.) Just add that Z to your calculations.

  3. #3
    Master Sergeant
    Reputation
    40
    Join Date
    Jul 2007
    Location
    United States - Ohio
    Posts
    84
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    hmmm maybe so but check this once:

    I load planes all of them at Z of 0

    when the heights are implemented into the planes there are still gaps between them map chunks....note that this loads a SINGLE adt file.... here is the result
    Attached Images Attached Images

  4. #4
    Contributor
    Tigurius's Avatar
    Reputation
    300
    Join Date
    Jun 2008
    Location
    Franconia(DE)
    Posts
    521
    Blog Entries
    5
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Are you sure that in every chunk the BaseZ is 0?
    Like my work? Support Me! ;D

  5. #5
    Retired Noggit Developer
    schlumpf's Avatar
    Reputation
    751
    Join Date
    Nov 2006
    Location
    Germany (DE)
    Posts
    2,770
    CoreCoins
    16

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Btw: Stop your project, join Taliis.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 12:21 PM. Powered by vBulletin® Version 4.2.0
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO
vBulletin Optimisation by vB Optimise. Digital Point modules: Sphinx-based search

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251