Long range terrain approximation
Long range terrain approximation
I tried it out and it looks promising, but a lot of the polygons are white, especially those approximating the higher parts of the hills. I didn't notice any related errors being printed.
I had a crash repeatedly when walking to a certain direction in a freshly generated world. After a restart I was several blocks away again, so it probably wasn't able to save my location correctly. Tried again several times and it always crashed with "This application has requested the runtime to terminate...". On the other hand, I don't think I had any white textures. And it seems to go pretty heavy on my system as the cooler's slowly turning up to full speed. I barely noticed it with older versions.
Cool concept, though. Didn't expect a kind of LOD system in this sort of game.
Cool concept, though. Didn't expect a kind of LOD system in this sort of game.
Last edited by SachielMF on Sat Jun 18, 2011 18:43, edited 1 time in total.
- Fishkilleur
- Member
- Posts: 29
- Joined: Wed Apr 20, 2011 11:57
- Location: France
I think this is caused by farmesh.cpp line 364. Since the section has a comment that says "Add some trees if appropriate", my guess is that it should have been green instead:
However, I think it looks better if you comment the whole section (358-400) out:
[img=Screenshot]http://lh5.googleusercontent.com/-RDuiPxjaMNE/Tf0CJJ2nNhI/AAAAAAAAANs/CTL2IcFrUGo/Screenshot-Untitled%252520Window.png[/img]
Code: Select all
c = video::SColor(255, b*107, b*134, b*51);
[img=Screenshot]http://lh5.googleusercontent.com/-RDuiPxjaMNE/Tf0CJJ2nNhI/AAAAAAAAANs/CTL2IcFrUGo/Screenshot-Untitled%252520Window.png[/img]
I would suggest that for sectors that have already been generated (and are within some distance), you texture the farmesh polygons with an image taken from a top-view map. However, it would be best to ignore water for the map, since it can look really strange to have blue on a slope. In fact, water should probably be done as a separate set of polygons, since the surface of water is almost always level and also because it would be nice to have an approximation of the sea floor as well.
Wrote a bit more about the subject: http://celeron.55.lt/blog/?p=275
- Fishkilleur
- Member
- Posts: 29
- Joined: Wed Apr 20, 2011 11:57
- Location: France
Uh oh, I seemed to forget to add it to the repo...
Added it now, and updated the link to the current version of the source in here: http://celeron.55.lt/blog/?p=268
Added it now, and updated the link to the current version of the source in here: http://celeron.55.lt/blog/?p=268
Who is online
Users browsing this forum: No registered users and 19 guests