I am trying to put together a code in DBP that will work with the latest version of Tree It, i have it working with trees created in the older version like this
(code is only partial)
Init:
set limb effect object, 0, treeFX
set limb effect object, 1, leafFX
MainLoop:
inc WindTime#, 0.08
WindTime# = wrapvalue(WindTime#)
inc TreeWindTime#, 0.8
TreeWindTime# = wrapvalue(TreeWindTime#)
inc LeafWindTime#, 8
LeafWindTime# = wrapvalue(LeafWindTime#)
set effect constant float treeFX, "WindTime", WindTime#/57.3
set effect constant float treeFX, "TreeWindTime", TreeWindTime#/57.3
set effect constant float leafFX, "WindTime", WindTime#/57.3
set effect constant float leafFX, "TreeWindTime", TreeWindTime#/57.3
set effect constant float leafFX, "LeafWindTime", LeafWindTime#/57.3
But my old code does not work with trees created with the latest version off Tree It, an error appers saying that limb 1 dose not exist.
I have also been looking into the new tree and leaf shader files it seams to have been expanded quite a bit with many more tweaks
so if any one now how to get it working i would like to know how.