← Back to team overview

team-scandraid team mailing list archive

Raw outline ScanDraiD library

 

Here's a raw outline for a ScanDraiD library. What I'm proposing
essentially is to split what now is done in 

ScanDraiD::processSingleFrame into two stages. The first stage will read
data from file (bitmap or movie), do some pre-processing and determine
the scanline coordinates per frame. These coordinates are the actual
pixel coordinates for each frame. 

In step two the vertices are calculated by applying the scanline
parameters (currently CAMERA_HFOV, CAMERA_VFOV, CAMERA_DISTANCE,
LASER_OFFSET) and vertex parameters (currently HORIZ_AVG, VERT_AVG). The
vertex smoothing is currently done by simply averaging vertices, but
could be replaced by more complex/accurate methods (tbd).

The last step will convert the internal vertex structure into a useable
format. This could be any fileformat or a memory format useable for
other 3D applications.

Regards, Darius

Attachment: Scan3D_structure.odg
Description: application/vnd.oasis.opendocument.graphics