Hey Gabriel

actually, the parser used to take notice of start and end properties in the
animationclip node, until someone else pointed out that these values were
not compulsory for exporters! we therefore calulate these values manually
based on the channels being referenced. if you need to define further start
- end points within the animation, you can do that with a combination of the
SkinAnimation's update() method, and a looping timer in seconds.

atb

Rob



On Mon, Dec 8, 2008 at 7:24 PM, Gabriel Laet <[EMAIL PROTECTED]> wrote:

>
> Hey guys,
>
> I'm trying to use animation-clips using skeleton/bones animation, and
> I think I've found something wrong on the Collada parser:
>
> According to the Collada specification the attributes start/end on
> <animation_clip> is optional, and Away3D does it correctly. But when
> you provide the values, the parser seems to ignore it. The start/
> length properties are always set by the value of the "main" animation.
> A quick fix for that was changing this block in Collada.as:
>
> if (_animationData.start > times[0])
>   _animationData.start = times[0];
>
> if (_animationData.end < times[times.length-1])
>   _animationData.end = times[times.length - 1];
>
> to this:
>
> if (_animationData.start < times[0])
>   _animationData.start = times[0];
>
> if (_animationData.end > times[times.length-1])
>   _animationData.end = times[times.length - 1];
>
> Is this intentional? Or could it be my exporter plug-in (FCollada
> v3.05B, 3ds 9) that is not working properly?
>
> Thanks!




-- 
Rob Bateman
Flash Development & Consultancy

[EMAIL PROTECTED]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to