I am trying to setup altitude and/or position colour variation for Xfrog plant leaves.
I have created a setup that works with procedural colours, but only works with image maps, for some Xfrog plants, not all.
The project I am working on has 27 populations, setup as 3 separate areas with 9 populations in each (3 species each with 3 variations). This does not make for easy, quick, or simple testing
so I have setup a simple scene with a basic terrain and two Xfrog tree populations.
This test scene, attached, requires the "Terragen 2 + 1300 Xfrog Plants" bundle.
Provided that you have added the folder containing the bundle to the list in Terragen 2 Preference > Library and Content > User Content Folders you should be able to open this file without missing objects and textures.
The scene has two populations of identical size and density.
The tree objects inside the population nodes are setup so that it is possible to use either Altitude or Position to vary leaf colour.
However for the purposes of this test the altitude and position functionality is not connected up, so all the Blue nodes may be ignored (they are documented in the network)!
The only change in this test from using a standard Xfrog plant setup is that the Xfrog leaf image has been moved to an Image Map that is connected, via a Surface Layer shader, to the Default shader > Colour Function.
The scene is saved with the Larch population set to render.
Open the scene file and press Cmd R (Ctrl R on Windows) to render the scene.
The Larch Population will render with black leaves.
Uncheck the Larch Population's Enable checkbox.
Set the Sweet Chestnut Population's Enable checkbox to checked.
Render the scene again.
The Sweet Chestnut population will render correctly.
Can anyone explain why this works for Sweet Chestnuts, but not Larches?
Enabling the test colour on the Larch leaves works, which suggests to me that the problem is in coming from the node "Image map - Leaf"