POV-Ray : Newsgroups : povray.binaries.images : Oriental Tileworks - problems with map_type 2 (JPG 117 KB) Server Time
18 Aug 2024 16:21:43 EDT (-0400)
  Oriental Tileworks - problems with map_type 2 (JPG 117 KB) (Message 1 to 4 of 4)  
From: Yadgar
Subject: Oriental Tileworks - problems with map_type 2 (JPG 117 KB)
Date: 7 Apr 2001 15:38:11
Message: <3ACF4ABB.A97EBA77@ndh.net>
Hi Tracers!

Today I started experimenting with an image_map texture... all worked
well until I decided to wrap the bitmap I used for the floor plane
around a cylinder, using map_type 2. The cylinder in the center of the
image is  <0, 0, 40>, <0, 15, 40>, 2, so the image_map had to be scaled
to <1, 15, 1> for original ratio. With that scaling, the pattern looked
way too large, so I decided to scale it again to <0.1, 0.1, 0.1>. But
obviously, with map_type 2, scaling seems only to work in one direction,

so I got a fairly squeezed appearance, as you can see... even if I
scaled the texture as a whole (i. e. not only the pigment), the result
remained the same!

Any hint to avoid that?

See you in Khyberspace!

Yadgar


Post a reply to this message


Attachments:
Download 'mazar.jpg' (117 KB)

Preview of image 'mazar.jpg'
mazar.jpg


 

From: H E  Day
Subject: Re: Oriental Tileworks - problems with map_type 2 (JPG 117 KB)
Date: 7 Apr 2001 17:42:14
Message: <3ACF88FC.674EB482@heday.freeservers.com>
> so I got a fairly squeezed appearance, as you can see... even if I
> scaled the texture as a whole (i. e. not only the pigment), the result
> remained the same!
>
> Any hint to avoid that?

If you're using MP .7, use the frequency keyword to control the number of time
the texture wraps.

H.E. Day
<><


Post a reply to this message

From: Yadgar
Subject: Re: Oriental Tileworks - problems with map_type 2 (JPG 117 KB)
Date: 7 Apr 2001 21:32:39
Message: <3ACF9E13.AFFE01CB@ndh.net>
Hi Tracers!

"H.E. Day" schrieb:

> > so I got a fairly squeezed appearance, as you can see... even if I
> > scaled the texture as a whole (i. e. not only the pigment), the result
> > remained the same!
> >
> > Any hint to avoid that?
>
> If you're using MP .7, use the frequency keyword to control the number of time
> the texture wraps.
>
> H.E. Day
> <><

Hi Tracers!

Meanwhile, I found a solution on my own... as each original bitmap tile goes all
around the cylinder regardless of its radius, I just copied the original tile
element until I got a row of 10 x 1 elements. Then I assigned the image_map as
before and modified its y size according to its x size to get the proper ratio
(with a cylinder radius of 2, the x size is 2 * 2 * pi = 12.566371, so for a
bitmap with a side ratio of 10 : 1, y has to be 1.2566371)!

See you in Khyberspace!

Yadgar


Post a reply to this message

From: Ken Cecka
Subject: Re: Oriental Tileworks - problems with map_type 2 (JPG 117 KB)
Date: 8 Apr 2001 00:21:19
Message: <3acfe73f@news.povray.org>
Glad to hear this got added in (is it scheduled to be included in 3.5?).  
I've always been annoyed that pov didn't have this, and even tried hacking 
it into the code once, but got bungled up in adding new syntax for it to 
the parser.

Ken

H.E. Day wrote:

>> so I got a fairly squeezed appearance, as you can see... even if I
>> scaled the texture as a whole (i. e. not only the pigment), the result
>> remained the same!
>>
>> Any hint to avoid that?
> 
> If you're using MP .7, use the frequency keyword to control the number of
> time the texture wraps.
> 
> H.E. Day
> <><
> 
>


Post a reply to this message

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