![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] yahoo com au> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] povray org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |