Quote from: JavaJones on January 10, 2007, 01:49:31 AM
Your example files seem to work fine here with my own images, but I don't have your original terrain or the images you're working with so it's hard to make a firm diagnoses.
I recommend you try starting simpler, with a default scene, and see if you can get an Image Map shader working through a blend shader input to properly constrain your Fake Stones. Same with the child layer input of a Surface Layer. If you are going to work with a heightfield, try using one of the built-in heightfield generators so that in case you have to share the .tgd again for example, you won't need to include a large .ter. You can use .jpg versions of your masks to keep size down and zip them all up with the .tgd if you do need to provide another example of a problem scene.
- Oshyan
Thank you Oshyan for trying.
I have tried simpler: loaded the same terrain and 2 masks, colored one red and the other blue. So far they load fine and show the colors. Then put the fake stones shader as a child to the blue layer - it works. Then I try to add a tree population and control its distribution by the red layer (the action that crashes Terragen). To prevent it crashing I add the image used for the mask separately (use density shader->image map shader->load the same image). When I press calculate for the population, Terragen crashes. When I reopen the tgd it is a mess. The image map shader is in the left pane in the object tab, but does not exist in the node view (I searched) - it is written inside the tgd file as the last item. The heightfield does not appear, because of some wrong connections, I suppose (I might have been guilty for this, inadvertently).
I have tried numerous times and it seems that whichever distribution I choose first (fake stones or trees) works; the second causes problems.
I open, change a small thing, save under another name, next action crashes Terragen, then reopen the scene and the same thing goes
on.It is maddening. Sometimes the tree distribution is not affected by the image map and I have to close and open Terragen and try again.
So, it seems that it is not a specific problem with the fake stone shader, but with the distribution of objects and textures on surface layers and the instability this seems to cause. Hopefully this will be cured by some future patch or a new computer for me (1 Gb of memory seems too little) - the patch should come first, the way things are going.
Anyway, this has made me more comfortable with working with the node view
Once, I was lucky and got an image with both distributions, but have had no time to refine it. It is attached with the TGD and TMD (Worldmachine) file. I was unable to reverse the distribution of the stones and trees, because of crashes.
Helen
You might consider adding TMD files to the allowed file types.