VideoCube 3d Revisited
Last night I found some time to try and figure out was was going on with the video on my previous Papervision3d example. Here is the updated version.
What has changed? the way the video player is being attached to the movie. Before everything was in code and in a single class, which was pretty neat but for some reason I am yet to understand caused the playback to stop at a random point in time.
In order to track the bug I started with a blank slate: and empty FLA and a single class that created a new video object, and then reproduced each frame using a BitmapData object. It worked fine, no problem at all. To test performance I attached the BitmapData object to six different Sprites, all showing at the same time. Still fine. Then I moved this example into a 3D scene in Papervision. Problem. Video got stuck a few times.
The I went the other way around. I placed a video player in the timeline and used it with the original video cube class, removing the code that attached the video. Voila! The only problem being that the resulting SWF is a little bit bigger than necessary and that not everything needed for the movie is in the class. *sigh*
Comments
No Comments
Leave a reply