windrobin / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

DAE animation parsing bug? #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make a model with less then 10 frames of animation
2. import the model into papervision

What is the expected output?
-- the animation.

What do you see instead?
{{{
Error: (0)(3)
    at org.papervision3d.objects.parsers::DAE/buildAnimationChannel()
    at org.papervision3d.objects.parsers::DAE/buildAnimationChannels()
    at org.papervision3d.objects.parsers::DAE/onParseAnimationsComplete()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.ascollada.io::DaeReader/loadNextAnimation()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

}}}

What version of the product are you using? On what operating system?
--Public Beta 2.0 - Great White / December 3rd, 2008
--Windows XP

Please provide any additional information below.
--To fix this i added these lines of code to the DAE's first SWITCH
statment in the buildAnimationChannel method:
{{{
                    case "(0)(3)":
                        matrixProp = "n41";
                        break;
                    case "(1)(3)":
                        matrixProp = "n42";
                        break;
                    case "(2)(3)":
                        matrixProp = "n43";
                        break;
                    case "(3)(3)":
                        matrixProp = "n44";
                        break;
}}} 

Original issue reported on code.google.com by p48l0.84...@gmail.com on 15 Dec 2008 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by tim.k...@gmail.com on 16 Dec 2008 at 1:31