POV-Ray : Newsgroups : povray.binaries.images : riddle me this Server Time
16 Nov 2024 06:15:58 EST (-0500)
  riddle me this (Message 1 to 4 of 4)  
From: alphaQuad
Subject: riddle me this
Date: 21 Jul 2007 23:10:02
Message: <web.46a2ca1010efefe44abf67e60@news.povray.org>
mapped level plane with a 0,1,0 vector fails to scale mapy and seems to
stretch to infinity. mapx doesnt do this.

There must be a way to map a level plane. Can anyone explain this?

My floor is not level to gain scale control in this image.

#declare fl_Cherry =
plane {
// < 0.0, 1, 0.0 >, -2.4 == 0.0 0.999999995 -0.0000999999995
//< 0.0, 0.9998, -0.01666 > , -2.3
  < 0.0, 0.99995, -0.0099995 >, -2.35
texture {
pigment { image_map { png "wood-32_d" once } }
finish {
ambient 0
brilliance 2
diffuse 0.7
specular 0.8
roughness 1/12
reflection 0.15
}
translate < -0.5 , -2.8, 0.0 >
scale < 22.0 , 1.05 , 1.0 >
}
}


Post a reply to this message


Attachments:
Download 'mapped_warbird3723.png' (562 KB)

Preview of image 'mapped_warbird3723.png'
mapped_warbird3723.png


 

From: Trevor G Quayle
Subject: Re: riddle me this
Date: 22 Jul 2007 00:20:02
Message: <web.46a2da5e3d9064465e73ab330@news.povray.org>
"alphaQuad" <alp### [at] earthlinknet> wrote:

You may need to read more on image_maps as I think you are misunderstanding
some concepts.  Image_maps are mapped on the x-y plane and stretch to
infinity, they are not coordinate or uv based.  If you try to map to a
non-xy plane as you have, you will not get the results you want.  Either:

a) map to an x-y plane then rotate the plane to the position you want
b) add a rotate to the mapping to align it to your plane

-tgq


Post a reply to this message

From: Thomas de Groot
Subject: Re: riddle me this
Date: 22 Jul 2007 03:12:12
Message: <46a3034c$1@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> schreef in bericht 
news:web.46a2da5e3d9064465e73ab330@news.povray.org...
>
> a) map to an x-y plane then rotate the plane to the position you want
> b) add a rotate to the mapping to align it to your plane

...or c) uv map the image on the plane  ;-)

Thomas


Post a reply to this message

From: alphaQuad
Subject: Re: riddle me this
Date: 22 Jul 2007 12:45:02
Message: <web.46a3871f3d906446fdb01fdf0@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> "alphaQuad" <alp### [at] earthlinknet> wrote:
>
> You may need to read more on image_maps as I think you are misunderstanding
> some concepts.  Image_maps are mapped on the x-y plane and stretch to
> infinity, they are not coordinate or uv based.  If you try to map to a
> non-xy plane as you have, you will not get the results you want.  Either:
>
> a) map to an x-y plane then rotate the plane to the position you want
> b) add a rotate to the mapping to align it to your plane
>
> -tgq

exactly Trevor! After a good night's sleep I woke this morning remembering
that I had to rotate the maps for planar mapping of the meshs. DOH!

got it working before reading the replies. You are correct in using the term
"misunderstanding". Something easily accomplished when your brain is on
vacation from poor sleep.

Of course a z-axis-plane map would streak down a y-axis-plane, seriouly duh
on my part.

#declare fl_Cherry =
plane {
< 0.0, 1.0, 0.0 >, -2.4
texture {
pigment { image_map { png "wood-32_d" once } }
finish {
ambient 0
brilliance 2
diffuse 0.7
specular 0.8
roughness 1/12
reflection 0.15
}
translate < -0.5 , -0.55, 0.0 >
scale < 22.0 , 66.0 , 1.0 >
rotate < 90 , 0 , 0 >
}
}

Now the floor is level. And thanx for the replies guys.

AQ
**
Do you smell something? Smells like too much brain flatulence in the world.


Post a reply to this message

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