256 x 256 x 2 pixel overlap
256 x 256 x 2 pixel overlap
I did some testing recently and discovered that 256x256 terrain textures don't align seamlessly in the game. It's probably a bad idea to use 256x256's for terrain because it'll cause considerable chugging, but I wanted to find out what was going on. So, after some time, I found that the game treats 256x256's with an 8 pixel overlap. A traxx paste using 256x256 does not work properly. To succeed you'd have to go back to the winterkill torture exercises, theorize a Slice240 and manually swap eight pixel edges. Ground boxes do not treat 256x256 the same as terrain. I have not tried to figure that out, and don't plan on it in the near future.
And there you have it. I post for the sake of noting the info. I don't really anticipate anybody confirming this any time soon.
And there you have it. I post for the sake of noting the info. I don't really anticipate anybody confirming this any time soon.
It's funny seeing this, as I've been wanting to ask about it here for years, "what would the pixel overlap be for 256x256 textures?". Every time I thought about it I would try to think mathematically, but maths make my brain hurt. ;) I never tried to approach the solution by making a test texture until seeing this posting (I didn't have any pressing needs when thinking about it before).
You already gave the answer of course (240/8), but I confirmed it.
<img src=/~trackville/pics/256mtm2.gif>
^ I created a texture with a series of one pixel lines, starting with white, as depicted on the left, a shot from mtm2 is on the right.
<img src=http://mtm2.com/~trackville/pics/256gb.gif>
^ The same texture on a groundbox shows clear to the edge, confirming that "ground boxes do not treat 256x256 the same as terrain". Yet I'm almost certain GBs 'wrap' 64x64 textures.
<img src=/~trackville/pics/256wake.jpg>
^ Here I swapped my 64x64 cobblestone texture (60x60 core) with a 256x256 texture (240x240 core), to see how it would look as far as seamlessness goes. Looks good, 240/8 works. My source texture was 200x200, so it resized up better than it did down.
You already gave the answer of course (240/8), but I confirmed it.
<img src=/~trackville/pics/256mtm2.gif>
^ I created a texture with a series of one pixel lines, starting with white, as depicted on the left, a shot from mtm2 is on the right.
<img src=http://mtm2.com/~trackville/pics/256gb.gif>
^ The same texture on a groundbox shows clear to the edge, confirming that "ground boxes do not treat 256x256 the same as terrain". Yet I'm almost certain GBs 'wrap' 64x64 textures.
<img src=/~trackville/pics/256wake.jpg>
^ Here I swapped my 64x64 cobblestone texture (60x60 core) with a 256x256 texture (240x240 core), to see how it would look as far as seamlessness goes. Looks good, 240/8 works. My source texture was 200x200, so it resized up better than it did down.
-
OOPS;-)
-
rocketalces
- Member
- Posts: 205
- Joined: Sun Sep 08, 2002 2:01 pm
- Location: Switzerland
It's probably a bad idea to use 256x256's for terrain because it'll cause considerable chugging,
For a modern 3Dcard this should not be a problem: 512 textures just use 32 megs. But the graphics engine within MTM2 may not have been designed for such amounts of memory.
it hink someone said that when you hsave antialiasing on and some different types of graphics that they bleed in. he had green where the overlap was and it usually didnt show any green but then with certain graphics it did show some faint green between textures.
yea here it is: no one seems to have taken notice other than i:
a note on overlap with anitaliasing
viewtopic.php?t=2319
yea here it is: no one seems to have taken notice other than i:
a note on overlap with anitaliasing
viewtopic.php?t=2319
Keep on MTMing,
CH_2005
<a href="http://ch.mtm2.com/">Visit my site</a>
CH_2005
<a href="http://ch.mtm2.com/">Visit my site</a>
> Is this a conjecture
Yes and no. Yes, because I don't think anybody has made a track entirely with 256x256 terrain textures. No, because tracks made using excessive numbers of 256x256 model textures have poor performance. Consider the undeniable beta - if you saw it. Also, stock tracks run with custom trucks using excessive 256x256 textures have a similar effect. I'm sure we can dig up samples if you need them.
> For a modern 3Dcard this should not be a problem
First, yes, your math is correct (256*256*512=32768). As far as I can tell, the system demands made by games like evo come almost entirely from high volume large textures. And yes it's true that mtm2 is not as efficient as it could be if it were made today. I think the problem is not such much the memory, but the processing required to render them. If CH can put together a slice240 maybe we'll be able to try this out. I tried a section of just eight textures and it took me forever to get done. Imagine that by 512.
> backdrops made of 16 256x256 textures?
Yes. They can be made to look stunning. But balance is the key. If you pump all those textures into the backdrop, then it would be wise to prune back in other areas.
> no one seems to have taken notice other than i
A while back it was discovered that a geforce 3 has a unique problem with antialiasing. So, yes, it's true that different cards can give different rendering results. Until I get a new card, there's not really much I can add to that particular discussion. I saw it, but keep my trap shut until I can speak with more authority ;-)
Hope this helps.
Yes and no. Yes, because I don't think anybody has made a track entirely with 256x256 terrain textures. No, because tracks made using excessive numbers of 256x256 model textures have poor performance. Consider the undeniable beta - if you saw it. Also, stock tracks run with custom trucks using excessive 256x256 textures have a similar effect. I'm sure we can dig up samples if you need them.
> For a modern 3Dcard this should not be a problem
First, yes, your math is correct (256*256*512=32768). As far as I can tell, the system demands made by games like evo come almost entirely from high volume large textures. And yes it's true that mtm2 is not as efficient as it could be if it were made today. I think the problem is not such much the memory, but the processing required to render them. If CH can put together a slice240 maybe we'll be able to try this out. I tried a section of just eight textures and it took me forever to get done. Imagine that by 512.
> backdrops made of 16 256x256 textures?
Yes. They can be made to look stunning. But balance is the key. If you pump all those textures into the backdrop, then it would be wise to prune back in other areas.
> no one seems to have taken notice other than i
A while back it was discovered that a geforce 3 has a unique problem with antialiasing. So, yes, it's true that different cards can give different rendering results. Until I get a new card, there's not really much I can add to that particular discussion. I saw it, but keep my trap shut until I can speak with more authority ;-)
Hope this helps.
-
rocketalces
- Member
- Posts: 205
- Joined: Sun Sep 08, 2002 2:01 pm
- Location: Switzerland
Do you have such a 256-textured backdrop at hand?> backdrops made of 16 256x256 textures?
Yes. They can be made to look stunning. But balance is the key. If you pump all those textures into the backdrop, then it would be wise to prune back in other areas.
My idea is to test its impact on an existing track. Or maybe you had the same idea before and could explain into more detail what you mean by "balance is the key" ?
basically if u got 10+ 256 texture to make up a backdrop then u better take care of the terrain models. not alot at all. and make as many 64 textures for the track as u can.could explain into more detail what you mean by "balance is the key" ?
Leg's Auto Emporium most anything that you'll need to make a truck!
-
rocketalces
- Member
- Posts: 205
- Joined: Sun Sep 08, 2002 2:01 pm
- Location: Switzerland
I made some tests with 256 textures and these are the current findings:
1) It is only worthwhile to use 256 textures on squares you actually drive over. This, because squares you only see in the distance (>4 squares away) will never use more than 60 pixels on screen, hence the higher texture resolution will not only be useless but will actually decrease visual quality because of Moiré effects. ( :idea: this might perhaps be useful to simulate wind effects on fields or water)
2) On a hi-spec machine no lag was observed: I consistently got over 50fps.
For practical purposes, a slice 240 would indeed be nice.
Does anybody have the source code of slice-60?
Or at least a reference to the structure of bmp files?
1) It is only worthwhile to use 256 textures on squares you actually drive over. This, because squares you only see in the distance (>4 squares away) will never use more than 60 pixels on screen, hence the higher texture resolution will not only be useless but will actually decrease visual quality because of Moiré effects. ( :idea: this might perhaps be useful to simulate wind effects on fields or water)
2) On a hi-spec machine no lag was observed: I consistently got over 50fps.
For practical purposes, a slice 240 would indeed be nice.
Does anybody have the source code of slice-60?
Or at least a reference to the structure of bmp files?
