This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] Transparent lines in my adt.  (Read 2365 times)

dess

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 16
    • View Profile
[SOLVED] Transparent lines in my adt.
« on: May 14, 2012, 11:18:34 pm »
Hello I have a serious problem in my adt, but i don't know the cause of the mistake, the mistake is, my adt have transparents lines and I can see the empty, I attach a photo with the problem. Sorry for my bad english, I'm spanish.

« Last Edit: May 16, 2012, 06:24:13 pm by Admin »



schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [BUG] Transparent lines in my adt.
« Reply #1 on: May 14, 2012, 11:27:52 pm »
The only way is to smooth the terrain around these points.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

dess

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 16
    • View Profile
Re: [BUG] Transparent lines in my adt.
« Reply #2 on: May 14, 2012, 11:31:58 pm »
No other way? Because this way i already tested. And don't like the result.
Which is the cause of this problem?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »



schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [BUG] Transparent lines in my adt.
« Reply #3 on: May 15, 2012, 12:05:47 am »
The problem is that the height map is divided into multiple small height maps. Every height map has a base coordinate. Both, base coordinate and height map consists of IEEE 754 floating point numbers. These have an implied inaccuracy. It is not possible to describe some numbers. For example, above 16777215, there are no odd numbers. There just are none. Also, adding 1.0 and 2.0 might not result in 3.0, but something like 2.99998.

The actual problem here is a combination of the floating point inaccuracy and bad algorithms. For building the height map, all values are taken and minimum and maximum are determined. Then, the base position is set to the minimum and all values of the height map are subtracted by the minimum.

As this is done per chunk, not per whole ADT or even map, coordinates which should be the same, are not. On chunk a, the border is at 0.5 + 0.5, on chunk b, it is at 1.0 + 0.00001. See where this is going?

In the end, unless the programmers come up with a better way of calculating base and height map (actually, there is no real reason to have a base position other than 0.0), there is no way for you to fix this, except for smoothing or modifying the terrain otherwise, until it matches.


For more on floating point numbers, read the articles by Bruce-Dawson of Valve at http://randomascii.wordpress.com/2012/0 ... nt-format/ (and following articles).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Elinora

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 187
    • View Profile
Re: [BUG] Transparent lines in my adt.
« Reply #4 on: May 15, 2012, 01:48:27 am »
A guy once made an epic epic 10 page  mountain guide on mmowned.. He explained that if you terrain with too many edges, or use flat too much, then this happens.. And as slumf said.. the only way is to smooth it out.. No other way :P or use  linear to make mountains, and always use a brush above 8 in size.. :P
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Currently studying Game Design at Copenhagen University. I also have a big project going on, sadly I have no portfolio of it (yet).

dess

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 16
    • View Profile
Re: [BUG] Transparent lines in my adt.
« Reply #5 on: May 15, 2012, 04:06:15 pm »
Thanks :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »



monsune

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 55
    • View Profile
Re: [SOLVED] Transparent lines in my adt.
« Reply #6 on: June 18, 2016, 11:23:30 am »
I'm sorry to necro the topic but does it mean there is no way to fix this with offsetfix? Why would this tool exist then?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [SOLVED] Transparent lines in my adt.
« Reply #7 on: June 18, 2016, 12:51:18 pm »
That tool is for fixing offsets of ADTs which were moved (on XZ coords, not on Y - height - coord).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

monsune

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 55
    • View Profile
Re: [SOLVED] Transparent lines in my adt.
« Reply #8 on: June 18, 2016, 03:01:03 pm »
Now i get it. Thank you for this clarification.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [SOLVED] Transparent lines in my adt.
« Reply #9 on: June 19, 2016, 08:49:53 am »
What you can always do about this is going to Assisst menu and using Fix gaps functions. It doesn't fix tiny gaps like this, but all which are even a little bit bigget ir will be capable of deleting properly.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

monsune

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 55
    • View Profile
Re: [SOLVED] Transparent lines in my adt.
« Reply #10 on: June 19, 2016, 11:16:05 am »
Indeed that worked. Not sure why i hadn't seen that option before... many thanks!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »