I'm working on a utility to convert black-and-white bitmap images to prisms. So
far I've written two programs (using POV SDL) in furtherance of this objective.
The first program displays the bitmap image and reduces it to a two-dimensional
array of TRUE/FALSE values where TRUE corresponds to a "white" pixel and FALSE
corresponds to a "black" pixel. (In actuality, the color of the target pixels
can be specified.) The next step will be to generate control points for
linear_spline or cubic_spline prisms. The linear_spline control points will be
relatively easy to generate although there are some subtle complexities. This
should be within my brain's limited capability. I think the control points for
cubic_spline prisms, on the other hand, will be much more complicated to
The second program displays the bitmap image and the prism object over it for
comparison. It will be very useful during development of the control point
So the reason I'm posting this WIP is that I'm hoping someone may have some
suggestions regarding the generation of cubic_spline control points. There's a
good possibility that this is going to require math that's beyond my ability to
comprehend. Thanks for any advice!
I will post a couple images to demonstrate my progress so far.
Post a reply to this message
Download 'bitmaptoprism.zip' (7 KB)