Importing my H map to TSE, need help
Posted: Fri May 26, 2006 7:24 pm
Hay all,
Troll Fiddler Wrote:
Hay Trollfiddler,
Humm, maybe move this to a new post here I'll make.
. When I tried to import I had the GUI up and have filled in.....
Mesh
size at 1024
square size at 2
error metric at 2
and tree depth at 6 (should be 5?)
and my height range was 2634
texture
Size 1024
Tree depth 6 (should be 5?)
leaf size 32 when calculated. recalc says 64 but still the same crashes.
Here is my problem atm.
When I tried to generate a chunk file, it didn't that I could see anywhere (what dir will it go to?) and when I hit the texture generate button, it flat out crashed TSE Crying or Very sad going to take another look and shot at it while I get help. you guys are great, once I get this down I'll be a monster hahahaha.
I am not at all sure about that size thing? even though that is what I thought I was supposed to do. I had the texture at 4096+ the one pixel, and I did that to the .raw file as well. But I have tried both ways with the extra pixel and without the extra pixel, seems to crash the same here.
Haha at least I am trying to, /chuckles, I'll get this or die trying ROTFL.
DT Twisted Evil
Troll Fiddler Wrote:
Hi DT,
The formula for calculating leafsize is
2^treeDepth-1 * leafSize = imageSize
OK, what does that mean? Let's do the treedepth-1 thing first.
You know that when you made your terrain file you had to choose a treedepth? Let's say you chose a treedepth of 6. OK, easy peasy, 6 -1 =5. Or say you had a treedepth of 9. So 9 -1 = 8. OK that's the obvious part. Just get whatever treedepth you specified for your terrain and take one away from it.
Next, 2^ is a shorthand way of saying "2 to the power of." So what this bit means is you multiply two by itself for the number of times you got by doing the treedepth minus one buisness. So if you got 5 as the answer to the treedepth thing, you multiply two by itself 5 times. That is 2x2x2x2x2 which equals 32.
Now, you will already know the size of your texture file. It will be 2048 x 2048, or 1024 x 1024, or whatever size it is.
So following our example above, we have the number 32 worked out if our treedepth was 6. If our image is 1024 then we need to multiply 32 by some number to get 1024. Whatever that number is is your leaf size! Geddit?
In this case the leafsize 32, because 32 x 32 is 1024. If your image file had been 2048 in size then the leafsize would have been 64, as 32 x 64 = 2048.
So to run through it quickly once more.
1) Take one away from your treedepth. Let's say treedepth is 6 so the answer is 5.
2) Multiply 2 by itself for the number of times in the answer from part one. So we multiply two by itself 5 times in this case. Which is 32.
3)Get your texture image size. Let's say it's 2048. We need to multiply the answer from part (2) by some number which will give us 2048. So we need to multiply 32 by 64, which is in fact equal to 2048. How did I get 64? You just have to guesstimate. If you're crap at maths just use a calculator and keep multiplying 32 by increasing numbers until you get 2048 (or whatever size your texture is). You'll soon have most of the basic numbers for leaf sizes figured out.
Hope that helps.
T.
Hay Trollfiddler,
Humm, maybe move this to a new post here I'll make.
. When I tried to import I had the GUI up and have filled in.....
Mesh
size at 1024
square size at 2
error metric at 2
and tree depth at 6 (should be 5?)
and my height range was 2634
texture
Size 1024
Tree depth 6 (should be 5?)
leaf size 32 when calculated. recalc says 64 but still the same crashes.
Here is my problem atm.
When I tried to generate a chunk file, it didn't that I could see anywhere (what dir will it go to?) and when I hit the texture generate button, it flat out crashed TSE Crying or Very sad going to take another look and shot at it while I get help. you guys are great, once I get this down I'll be a monster hahahaha.
I am not at all sure about that size thing? even though that is what I thought I was supposed to do. I had the texture at 4096+ the one pixel, and I did that to the .raw file as well. But I have tried both ways with the extra pixel and without the extra pixel, seems to crash the same here.
Haha at least I am trying to, /chuckles, I'll get this or die trying ROTFL.
DT Twisted Evil