Re: Rendering filmstrip-style animation
Status: Alpha
Brought to you by:
cwalther
|
From: James C. W. <jfc...@ya...> - 2010-09-10 20:06:50
|
Hi Christian, Thanks, that worked. I should've see that. >I'm curious, what order of magnitude of performance improvement do you >get using this method? Well, it's kinda hard to tell, because if I attempt to give it a hi-res filmstrip(21720x580) it panics and gives me an out of memory error--understandable given the hugeness of the image(I have 768 MB RAM). However, if I load a smaller one, such as 11776x512, it works VERY smoothly(each image being 512x512). If I use it in a cubic node(each face using the same filmstrip in RAM), it also runs extremly smoothly. Given that it grinds to a halt if given a large enough image, it doesn't have much practical application. Plus, at the small resolution it works well at, you might as well just use normal image sequences, at a fraction of the memory cost. However, this does open the door to some other, less memory-intensive preloading technique. Maybe preloading around 8 frames before the animation begins, then preloading ahead as the already loaded segment plays? Does that have any merit, do you think? Thanks, James CW --- On Thu, 9/9/10, Christian Walther <cwa...@gm...> wrote: From: Christian Walther <cwa...@gm...> Subject: Re: Rendering filmstrip-style animation To: "Content creation for the Pipmak Game Engine" <pip...@li...> Date: Thursday, September 9, 2010, 3:19 PM James C. Wilson wrote: > But, when I run this function, the image appears about 100 pixels > off-sync sideways, and plays very slowly, at about 1/20th of the > defined speed, or doesn't run at all(not sure why it decides which > to do). > frame:drawimage(stripPos, 0, strip, 0, 0, 800, 600) You got the arguments to drawimage() backwards. Let me know if the description in the manual is unclear (or if you think the argument order is counterintuitive). I'm not sure if that explains all of your observations, but ask again if it still misbehaves after correcting that. I'm curious, what order of magnitude of performance improvement do you get using this method? -Christian ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Pipmak-Users mailing list Pip...@li... news://news.gmane.org/gmane.games.devel.pipmak.user https://lists.sourceforge.net/lists/listinfo/pipmak-users |