POV-Ray : Newsgroups : povray.newusers : Confused with map_type 1 Server Time
4 Nov 2024 21:26:19 EST (-0500)
  Confused with map_type 1 (Message 1 to 8 of 8)  
From: David Findlay
Subject: Confused with map_type 1
Date: 25 Nov 2001 17:45:41
Message: <3c017495@news.povray.org>
I've got a sphere with a size of 2. I have a huge tga image I want to wrap around it.
I've set
map_type to 1, but I only get a tiny portion of my image being used. How do I get it
to use the
whole picture? Thanks,

David


Post a reply to this message

From: Warp
Subject: Re: Confused with map_type 1
Date: 25 Nov 2001 17:51:33
Message: <3c0175f5@news.povray.org>
Is your sphere centered at the origin when you apply the image map?

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: JRG
Subject: Re: Confused with map_type 1
Date: 25 Nov 2001 18:25:43
Message: <3c017df7@news.povray.org>
Apply the texture before transforming your sphere. Be sure that your sphere
is centred at the origin from the beginning:

sphere {
    <0,0,0>, 2
texture {
    pigment {image_map {tga "your.tga" map_type 1}}
}
translate wherever_you_want
}

"David Findlay" <dav### [at] yahoocomau> ha scritto nel messaggio
news:3c017495@news.povray.org...
> I've got a sphere with a size of 2. I have a huge tga image I want to wrap
around it. I've set
> map_type to 1, but I only get a tiny portion of my image being used. How
do I get it to use the
> whole picture? Thanks,
>
> David


Post a reply to this message

From: David Findlay
Subject: Re: Confused with map_type 1
Date: 25 Nov 2001 18:46:24
Message: <3c0182d0$1@news.povray.org>
On Mon, 26 Nov 2001 09:25:31 +1000, JRG wrote:

> Apply the texture before transforming your sphere. Be sure that your sphere is
centred at the
> origin from the beginning:
> 
> sphere {
>     <0,0,0>, 2
> texture {
>     pigment {image_map {tga "your.tga" map_type 1}}
> }
> translate wherever_you_want
> }

Okay thanks, that worked. But now my picture is upsidedown. How do I rotate it 180
degrees?

David


Post a reply to this message

From: David Findlay
Subject: Re: Confused with map_type 1
Date: 25 Nov 2001 18:47:53
Message: <3c018329$1@news.povray.org>
On Mon, 26 Nov 2001 09:46:24 +1000, David Findlay wrote:

> On Mon, 26 Nov 2001 09:25:31 +1000, JRG wrote:
> 
>> Apply the texture before transforming your sphere. Be sure that your sphere is
centred at the
>> origin from the beginning:
>> 
>> sphere {
>>     <0,0,0>, 2
>> texture {
>>     pigment {image_map {tga "your.tga" map_type 1}}
>> }
>> translate wherever_you_want
>> }
> 
> Okay thanks, that worked. But now my picture is upsidedown. How do I rotate it 180
degrees?

Oops. It should just be flipped. How do I flip it? Thanks,

David


Post a reply to this message

From: Ron Parker
Subject: Re: Confused with map_type 1
Date: 25 Nov 2001 19:02:48
Message: <slrna031lb.gul.ron.parker@fwi.com>
On Mon, 26 Nov 2001 09:47:53 +1000, David Findlay wrote:
> Oops. It should just be flipped. How do I flip it? Thanks,

Put a "scale <1,-1,1>" inside the texture statement.


-- 
#macro R(P)z+_(P)_(P)_(P+1)_(P+1)+z#end#macro Q(C,T)bicubic_patch{type 1u_steps
6v_steps 6R(1)R(3)R(5)R(7)pigment{rgb z}}#end#macro _(Y)#local X=asc(substr(C,Y
,1))-65;<T+mod(X,4)div(X,4)9>-2#end#macro O(T)Q("ABEFUQWS",T)Q("WSXTLOJN",T)#
end O(0)O(3)Q("JNKLCGCD",0)light_source{x 1}// ron### [at] povrayorg


Post a reply to this message

From: David Findlay
Subject: Re: Confused with map_type 1
Date: 25 Nov 2001 20:53:01
Message: <3c01a07d$1@news.povray.org>
On Mon, 26 Nov 2001 10:02:48 +1000, Ron Parker wrote:

> On Mon, 26 Nov 2001 09:47:53 +1000, David Findlay wrote:
>> Oops. It should just be flipped. How do I flip it? Thanks,
> 
> Put a "scale <1,-1,1>" inside the texture statement.

That didn't work. It's still upside down. Anyway i've flipped the texture map :-). Now
i want to
rotate my sphere, with the texture on it. I've tried rotate <2,0,0> but it still stays
the same.

David


Post a reply to this message

From: Ken
Subject: Re: Confused with map_type 1
Date: 25 Nov 2001 21:24:56
Message: <3C01A857.EFEB8285@pacbell.net>
David Findlay wrote:
> 
> On Mon, 26 Nov 2001 10:02:48 +1000, Ron Parker wrote:
> 
> > On Mon, 26 Nov 2001 09:47:53 +1000, David Findlay wrote:
> >> Oops. It should just be flipped. How do I flip it? Thanks,
> >
> > Put a "scale <1,-1,1>" inside the texture statement.
> 
> That didn't work. It's still upside down. Anyway i've flipped the texture map :-).
Now i want to
> rotate my sphere, with the texture on it. I've tried rotate <2,0,0> but it still
stays the same.
> 
> David

Which way do you want to rotate it and by how much? The rotate that
you described above will only give you 2 degrees of rotation and will
be difficult to see. Try something larger like rotate <90,0,0>.

-- 
Ken Tyler


Post a reply to this message

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