Posted By: HoopyDerFrood
Real 3D (IMAX like) get pixelinformation from view - 01/02/08 10:24
Hi, I made some experiments creating real 3D pictures, watchable with red/cyan glasses, with the A7. And more ore less I succeeded. The problem is once again the framerate. For creating a stereoscopic so called anaglyphic image I use pictures from two differnt views with a small offset between them. From each pixel of the views I take the colour information and calculate the colour of the pixel in the 3D view. Creating the picture pixel by pixel with "pixel_to_bmap" is not fast but this is not the problem. The problem is bring the two views in a format I can read from with "pixel_for_bmap" and "pixel_to_vec". First I displayd them on screen made a screenshot and read from this. This was really dumb and very slow. Now I render them both to one texture an read from this. The Problem is I have to do "bmap_to_format" first. And this is so slow I get only 2fps creating a 400x300 3D image. Converting the 800x300 texture containing the two views takes most of the time. Is there a faster way to get the colour of pixels in a view?
Here a 3D picture created with the A7 if someone is interested to try itself. Use glasses with a red colour filter in front of the left eye and a cyan colour filter in front of the right one to watch it.
Here a 3D picture created with the A7 if someone is interested to try itself. Use glasses with a red colour filter in front of the left eye and a cyan colour filter in front of the right one to watch it.