|
![](/i/fill.gif) |
On 07/04/2012 6:53 PM, blooflame wrote:
> I think I understand a little of the image map thing used to provide textures
> for surfaces, and why a bitmap becomes a square polygon (0,0) to (1,1). What I
> want is to bring a bitmap in as a "billboard" more or less, with its aspect
> ratio retained (and I guess, assuming square pixels in the original. To be able
> to do that, it seems I would need to read the bitmap and have each area of color
> become a polygon filled with that color - I think.
>
> 1) If I load the bitmapped image as an image map and stretch it to match its
> original aspect ratio (for example, if it was 320 x 240) will it look like it
> originally did and therefore I can ignore the problem? (when I last tried this
> about 3 years ago, I knew the SDL statements to do this, but I've forgotten
> them).
>
> 2) if not, then are there any utilities or graphics programs out there which
> will create POV-Ray polygons from bitmapped images?
>
> 3) Am I even barking up the right tree?
>
>
Have you tried to use a height field?
#declare HeightField0 =
height_field {
png "F:\Graphics\B3D Data\Maps\D Dell02N.png"
water_level 0.010
smooth
hierarchy
texture{ Gold_Texture0 }
scale <80.000000,2.000000,25.000000>
rotate <-90.000000,0.000000,0.000000>
translate <-40.000000,0.000000,81.370000>
} // end HeightField0
--
Regards
Stephen
Post a reply to this message
|
![](/i/fill.gif) |