Quote from: Oshyan on September 22, 2008, 01:50:47 AM
I presume these are problems you haven't seen and can't duplicate with smaller files? Are you certain there's nothing else unusual about the 8194 terrain? I wouldn't think a larger size should have that affect, although certainly it is bound to break down at some point (memory issues being the most likely culprit at that point).
- Oshyan
Making the same node network with smaller terrains doesn't have any problems. The total memory usage isn't overly high (around 1gb for the attached file), and as far as cramming data into TG2 I've worked with 9 x 4097 terrains and 2 x 4097 image maps (greyscale). To repeat the test I took out the 8194 image and replaced it with a version cropped to 4097x4097. There is also a 4097 RGB image map (blue marble texture) in this project with a total memory usage of just over 1Gb.
The attached screengrab shows a workaround for creating the lake surface using the original terrain with a small negative displacement ("Displaced rough terrain" group). This is a workaround because it uses a terrain with fractal noise added.
[attachthumb=#1]
It will crash when making connection 1 regardless of whether connection 2 has been made or not. It's too fast to see any change in memory usage in task manager. I wouldn't really have expected 8194 terrains to be too much of a problem as they're still "only" 131Mb.
Just tried something else that may help isolated the problem. Instead of making connection 1, I connected the load heightfield node directly to the heightfield input of the duplicate heightfield shader (3) and it didn't crash. I then replaced the adjust vertical node by connecting the heightfield shader to the displacement shader (4)... same effective result (displaced terrain without fractal detail) and no crashes. Perhaps it's an issue with heightfield operators on large terrains?
[attachthumb=#3]
Made a new TGD and just added the terrain, duplicate heightfield and adjust vertical shaders. All connected OK but total memory usage was about 400Mb more than the TGD with image maps and lake model above. That increase on its own wouldn't have been enough to cause the crash but it does look like it may be close to the culprit. Reloading both versions verified that memory usage mentioned is consistent.
I have an adjusted model that works now, so I'm happy. If there's anything else you want me to test just drop me a line.