[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pixel Location in 3D Space?



I think I don't understand you question.
Are you maping a 2d pixel map to a 3d triangle surface and want to know how to do it?

On 12/20/05, HandyGM < klachemin@xxxxxxxxxxx> wrote:
Imagine taking a balloon in the shape of the 3D object, 'painting' the
texture map on it, then popping the balloon, leaving the paint hanging
where it was in 3D space when the model existed. For each 'dot of paint'
(pixel in the texture map), I want to know where it is in 3D space.

Basically, I want to map all the points in a texture map, to their
corresponding points in 3D space, given a standard 3D object of
arbitrary-sized polygons. Most of the time, the model is composed of
triangles and quadrangles, but sometimes there are polygons with more sides.

Does anyone have an idea on how this might be accomplished?