HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Customize Tree Fading System

10-15-2007, 10:12 AM#1
XieLong
I want to implement this Tree Fading System into my map. To do that i have to convert custom tree models (rather some of Wacraft).
But I've got a little problem with the modification of other tree modells. I converted a AshenTreeIce0.mdx to a .mdl. Than i added a "stand alternate" animation, which looks like this:
Code:
Sequences 5 {
	Anim "stand" {
		Interval { 167, 1167 },
		NonLooping,
		MinimumExtent { -100.068, -146.873, 0.56993 },
		MaximumExtent { 154.605, 138.25, 326.333 },
		BoundsRadius 172.299,
	}
	Anim "stand alternate" {
		Interval { 1170, 1270 },
		NonLooping,
		MinimumExtent { -100.068, -146.873, 0.56993 },
		MaximumExtent { 154.605, 138.25, 326.333 },
		BoundsRadius 172.299,
	}
I alos changed the 'materials to
Code:
Materials 1 {
	Material {
		Layer {
			FilterMode Transparent,
			Alpha 5 {
				DontInterp,
				167: 1,
				1170: 0,
				1300: 1,
				1833: 1,
				6667: 1,
			}
			static TextureID 0,
			TwoSided,
		}
		Layer {
			FilterMode Blend,
			static Alpha 0.25,
			static TextureID 0,
			TwoSided,
		}
	}
}
..all how it is telled by the author. And now, when i play the "stand, alternate" animation you can see the stub of the tree through the half-transparent tree trunk. How to do better? Cause the regular stand animation of that tree doesn't have a stub anyway...

Ofc, i have posted this problem in the thread, but i didn't got an answer :(
10-16-2007, 01:09 PM#2
Guesst
Could you post the modified tree model?
10-16-2007, 11:23 PM#3
XieLong
Sure, if it will help ^^
Attached Files
File type: mdlAshenTreeIce0.mdl (17.8 KB)
10-17-2007, 12:44 PM#4
Guesst
I don't have anything to test this with, but try changing the second GeosetAnim (scroll down to find it) to this:
Code:
GeosetAnim {
	GeosetId 1,
	Alpha 8 {
		DontInterp,
		167: 0,
		1170: 0,
		1300: 0,
		1833: 0,
		2000: 1,
		6667: 1,
		9623: 0,
		10667: 0,
		11000: 1,
	}
}
There is a new key in there to make it invisible during that animation.
10-18-2007, 05:34 PM#5
XieLong
Woah, thank you very much , now it works, after i changed yours a little bit:
Code:
GeosetAnim {
	GeosetId 1,
	Alpha 9 {
		DontInterp,
		167: 0,
            1170: 0,
		1300: 0,
		1833: 0,
		2000: 1,
		6667: 1,
		9623: 0,
		10667: 0,
		11000: 1,
	}
}
(it have to be 'alpha 9' not 'alpha 8')
10-18-2007, 07:54 PM#6
Guesst
Those numbers are actually ignored, but conceptually you are right.
10-18-2007, 08:00 PM#7
Rao Dao Zao
Magos' Model Editor demands them. For some reason.
10-18-2007, 09:08 PM#8
XieLong
Yeah, Mago's Editor only accepts the 9, with 8 the file cant be readed...