POV-Ray : Newsgroups : povray.general : Rectangular Image map : Re: Rectangular Image map Server Time
29 Jul 2024 18:28:55 EDT (-0400)
  Re: Rectangular Image map  
From: Alain
Date: 18 Nov 2010 21:48:21
Message: <4ce5e575@news.povray.org>

> Hello everyone, I'm attempting to load a bmp file as an image map onto a box,
> however, it keeps getting cut from it's original resolution into a square shape.
>   Should I be trying to image map onto a different shape, or is there something I
> need to declare?
>
> Thanks
>
>
An image_map is always maped to a unit square.
You only need to scale it to the desired dimention:
texture{image_map{bmp "Your_bitmap.bmp"}scale Desired_Dimention}

You can also apply the image to this box:
box{0, 1 [Your image goes here] scale The_Dimention_you_Want}


Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.