I want to put rendered, animated, anaglyphic 3D in a flash, with flash merging the eye-images at runtime.
I just bought a copy of Poser 7 and a copy of Shade 8 and am going to get back into rendering, having spent a couple of years learning about Flash (CS3) but not really getting very good at it.
Here's what I want to do: Create a short animation (e.g. 30 frames). Render it once for the left eye, producing frame files L01-L30. Then move the camera and render it again, producing right eye frame files R01-R30.
Then read all 60 files as BMPs or PNGs into Flash. They'll be in color. A "left eye" sprite gets created which frame-flips images L01-L30, and a "right eye" sprite gets created which frame-flips images R01-R30.
The two sprites are then displayed simultaneously, with the "left eye" sprite producing only red, and the "right eye" producing green and blue and all three colors being added together to produce a single displayed image, which changes as the two frame-flippers run.
I can do that merge for a single frame using a graphics editor; you can see what it looks like
here. I want that in a flash file, with the face animated (e.g. her mouth opening and closing).
So there are two problems. First is creating those frame-flipping sprites. Right now the only way I know to do that is to manually add each successive frame, with four steps: copy keyframe, paste keyframe, right-click the image, and swap object. That puts a new frame in the exact same x/y position as the previous frame. (The other approach is to drag-and-drop the image into the new keyframe, then manually change the X and Y positions to 0.)
Is there any way for me to create a frame-flipping sprite out of multiple rendered images with a single operation? (Which does not include creating an FLV file? DO NOT WANT!) I want, somehow, to say "See this file here? It's the first of 30; I want you to load all 30 into successive frames." Any way to do that?
Second problem: how do you make an object selectively transparent? If the left image is in front, it needs to be opaque in red but fully transparent in blue and green, so that the blue and green from the right eye images merge to form a full RGB. I know how to do that for one individual frame using a graphic editor (as shown on my link above) but doing that for a long sequence of frames is tedious. I want to figure out how to do it in Flash itself, at runtime.
I can, if necessary, batch preprocess all the images so that L01-L30 are red-channel only and R01-R30 are green-and-blue only. But the tools I have (Paint shop Pro 8 and Thumbs Plus 7) don't permit me to batch-merge the files.
Back in '95 when I was screwing around with 3D rendering in college the program we were using had a native red/blue anaglyph rendering mode, you didn't have to render each "eye" separately.
posted by krisjohn at 2:09 AM on December 13, 2007