Hi, I did a lot of work on this a while back and tried several options including caching frames for later processing, streaming frames to JMF for encoding and dumping jpegs. The conclusion I came to was that it was fastest and simplest to dump out jpegs for each frame and then use an external tool to generate the video file.
Having said that "fastest" is by no means a good result. I was working on generating 2D visualizations of a dynamic 3D scene, and the only way I could get nice results out was to preprogram camera paths and other motions on a per frame basis and then "playback" the animation while capturing frames. The main problem is that if you're trying to capture every frame you lose any sense of interaction. Because your framerate drops any animation based on time intervals (rather than a set number of frames) falls over and you end up getting objects and interactions that appear to jump from place to place. There are a few different "CaptureCanvas3D" type classes that you should be able to find in the archive but I think most of them are only really useful for very simple scenes or for non-interactive content. Ewan ----- Ewan Borland Computer Vision & Graphics Group Department of Computing Science University of Glasgow [EMAIL PROTECTED] ----- Original Message ----- From: "Jeremy Booth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 28, 2003 2:01 PM Subject: Re: [JAVA3D] generating a MPEG from Java 3D > Hi > try google and the list archives, this topic comes up time and again, the > easy answer is, it sux, if you cache the frames to memory you run out damn > quickly, if you sync them right away to disk, you end up with disk IO for > *every* frame, which isn't good either. I have tried a few programs that claim > to be able to crab things from direct x or opengl, and neither got a good > result. I've not heard of any reports of people who are satisfied with the > solution they got working, not at 30+fps anyway > > Sorry > > Jeremy > -- > > Homepage: http://www.computerbooth.com/ > Code page: http://www.newdawnsoftware.com/ > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".