POV-Ray : Newsgroups : povray.binaries.images : Infernal blasted image maps Server Time
2 Oct 2024 18:20:27 EDT (-0400)
  Infernal blasted image maps (Message 1 to 7 of 7)  
From: Greg M  Johnson
Subject: Infernal blasted image maps
Date: 26 Mar 2000 22:01:26
Message: <38decf06@news.povray.org>
Dang! These things make no sense. I've got two images that I want to use
as rotoscopes as I tweak my blob character.
The image maps are violating the laws of physics. (using mega 0.4).

Why is one map unnaturally stretched? Yes, it's tall and thin, but why
isn't there an option in povray to get planar straight up mapping?

box{<0,0,0>,<1,1,0.001>
                pigment{
                        image_map{
                                tga "c:\My Documents\frontpos2.tga"
                                once
                                }
                        }
                finish {ambient 1 diffuse 0}
                translate <-0.5,-0.5,-0.05>
                scale 21
                translate -1.5*y  +3*z       -4*x
        }

        box{<0,0,0>,<1.,1,0.001>
                pigment{
                        image_map{
                                tga "c:\My Documents\left2.tga"
                                once
                               }
                        }
                finish {ambient 1 diffuse 0}
                translate <-0.5,-0.5,-0.05>
                scale 14
                translate -17*x -1.5*y  +3*z
        }


Post a reply to this message


Attachments:
Download 'thebody11rebuild.jpg' (14 KB)

Preview of image 'thebody11rebuild.jpg'
thebody11rebuild.jpg


 

From: Bob Hughes
Subject: Re: Infernal blasted image maps
Date: 26 Mar 2000 23:20:14
Message: <38dee17e@news.povray.org>
'image_map {map_type 0' is always going to be a POV Unit square.  Is that where
it's wrong?  Unless you have a square image to start with you'll need to scale
the image or object it's on proportionately to what you have to start with.
Preserving aspect ratio in other words.  So your only overlooking the obvious is
all.

Bob

"Greg M. Johnson" <"gregj;-)56590\""@aol.c;-)om> wrote in message
news:38decf06@news.povray.org...
| Dang! These things make no sense. I've got two images that I want to use
| as rotoscopes as I tweak my blob character.
| The image maps are violating the laws of physics. (using mega 0.4).
|
| Why is one map unnaturally stretched? Yes, it's tall and thin, but why
| isn't there an option in povray to get planar straight up mapping?
|
| box{<0,0,0>,<1,1,0.001>
|                 pigment{
|                         image_map{
|                                 tga "c:\My Documents\frontpos2.tga"
|                                 once
|                                 }
|                         }
|                 finish {ambient 1 diffuse 0}
|                 translate <-0.5,-0.5,-0.05>
|                 scale 21
|                 translate -1.5*y  +3*z       -4*x
|         }
|
|         box{<0,0,0>,<1.,1,0.001>
|                 pigment{
|                         image_map{
|                                 tga "c:\My Documents\left2.tga"
|                                 once
|                                }
|                         }
|                 finish {ambient 1 diffuse 0}
|                 translate <-0.5,-0.5,-0.05>
|                 scale 14
|                 translate -17*x -1.5*y  +3*z
|         }
|


--------------------------------------------------------------------------------


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Infernal blasted image maps
Date: 27 Mar 2000 07:50:06
Message: <38DF5802.32786C20@my-dejanews.com>
Nope. I once tried changing the size of the box to fit the aspect ratio of the
image, and still got something stupidly distorted.

Do we have to beg for a fix in mega 0.5, or isn't there SOME way to get pov to
'decal' this without crazy distortions?


Bob Hughes wrote:

> 'image_map {map_type 0' is always going to be a POV Unit square.  Is that where
> it's wrong?  Unless you have a square image to start with you'll need to scale
> the image or object it's on proportionately to what you have to start with.
> Preserving aspect ratio in other words.  So your only overlooking the obvious is
> all.
>
> Bob
>
> "Greg M. Johnson" <"gregj;-)56590\""@aol.c;-)om> wrote in message
> news:38decf06@news.povray.org...
> | Dang! These things make no sense. I've got two images that I want to use
> | as rotoscopes as I tweak my blob character.
> | The image maps are violating the laws of physics. (using mega 0.4).
> |
> | Why is one map unnaturally stretched? Yes, it's tall and thin, but why
> | isn't there an option in povray to get planar straight up mapping?
> |
> | box{<0,0,0>,<1,1,0.001>
> |                 pigment{
> |                         image_map{
> |                                 tga "c:\My Documents\frontpos2.tga"
> |                                 once
> |                                 }
> |                         }
> |                 finish {ambient 1 diffuse 0}
> |                 translate <-0.5,-0.5,-0.05>
> |                 scale 21
> |                 translate -1.5*y  +3*z       -4*x
> |         }
> |
> |         box{<0,0,0>,<1.,1,0.001>
> |                 pigment{
> |                         image_map{
> |                                 tga "c:\My Documents\left2.tga"
> |                                 once
> |                                }
> |                         }
> |                 finish {ambient 1 diffuse 0}
> |                 translate <-0.5,-0.5,-0.05>
> |                 scale 14
> |                 translate -17*x -1.5*y  +3*z
> |         }
> |
>
> --------------------------------------------------------------------------------


Post a reply to this message

From: Gail Shaw
Subject: Re: Infernal blasted image maps
Date: 27 Mar 2000 09:10:43
Message: <38df6be3@news.povray.org>
Greg M. Johnson wrote in message <38DF5802.32786C20@my-dejanews.com>...
>Nope. I once tried changing the size of the box to fit the aspect ratio of
the
>image, and still got something stupidly distorted.


Did you change the size before or after applying the image

>Do we have to beg for a fix in mega 0.5, or isn't there SOME way to get pov
to
>'decal' this without crazy distortions?
>


It's not a bug.

Please assume that img1.gif is 100*500 pixels.

box {
 <0,0,0>,<1,5,0.01>  // box starts with correct ratio
 pigment {
  image_map {
    gif "img1.gif"
  }
  scale <1,5,1>  // scaling the pigment
 }
}

The above code hasn't been tested, but I think it's right.

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* Document program code? Why do you think it's called code?        *
********************************************************************


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Infernal blasted image maps
Date: 27 Mar 2000 09:20:21
Message: <38DF6D27.7E7FBD8E@my-dejanews.com>
My memory is a bit foggy of all the things I tried. I probably should go home
for lunch and post to this ng the actual tracings, but the problem went
something like this:

///THIS IS WICKEDLY DISTORTED
box{<0,0,0>,<1.,1,0.001>
                pigment{
                        image_map{
                                tga "c:\My Documents\left2.tga"
                                once
                               }
                        }
                finish {ambient 1 diffuse 0}
                translate <-0.5,-0.5,-0.05>
                scale 14
                translate -17*x -1.5*y  +3*z
        }

// CHANGE  If my aspect ratio were 0.126  : 1.0 x:y, then

   box{<0,0,0>,<0.126 , 1.0  ,0.001>

didn't work either!  Help!
Let's fix this in mega 0.5!!!!!!

Gail Shaw wrote:

> Greg M. Johnson wrote in message <38DF5802.32786C20@my-dejanews.com>...
> >Nope. I once tried changing the size of the box to fit the aspect ratio of
> the
> >image, and still got something stupidly distorted.
>
> Did you change the size before or after applying the image
>
> >Do we have to beg for a fix in mega 0.5, or isn't there SOME way to get pov
> to
> >'decal' this without crazy distortions?
> >
>
> It's not a bug.
>
> Please assume that img1.gif is 100*500 pixels.
>
> box {
>  <0,0,0>,<1,5,0.01>  // box starts with correct ratio
>  pigment {
>   image_map {
>     gif "img1.gif"
>   }
>   scale <1,5,1>  // scaling the pigment
>  }
> }
>
> The above code hasn't been tested, but I think it's right.
>
> Gail
> ********************************************************************
> * gsh### [at] monotixcoza              * Reality.dat not found         *
> * http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
> ********************************************************************
> * Document program code? Why do you think it's called code?        *
> ********************************************************************


Post a reply to this message

From: Josh English
Subject: Re: Infernal blasted image maps
Date: 27 Mar 2000 15:24:15
Message: <38DFC39F.702AD5C0@spiritone.com>
See my post on your second thread for a similar solution. Bob and Gail are right,
this isn't a bug, but it isn't the clearest idea in the docs sometimes.

Josh

"Greg M. Johnson" wrote:

> My memory is a bit foggy of all the things I tried. I probably should go home
> for lunch and post to this ng the actual tracings, but the problem went
> something like this:
>
> ///THIS IS WICKEDLY DISTORTED
> box{<0,0,0>,<1.,1,0.001>
>                 pigment{
>                         image_map{
>                                 tga "c:\My Documents\left2.tga"
>                                 once
>                                }
>                         }
>                 finish {ambient 1 diffuse 0}
>                 translate <-0.5,-0.5,-0.05>
>                 scale 14
>                 translate -17*x -1.5*y  +3*z
>         }
>
> // CHANGE  If my aspect ratio were 0.126  : 1.0 x:y, then
>
>    box{<0,0,0>,<0.126 , 1.0  ,0.001>
>
> didn't work either!  Help!
> Let's fix this in mega 0.5!!!!!!
>
> Gail Shaw wrote:
>
> > Greg M. Johnson wrote in message <38DF5802.32786C20@my-dejanews.com>...
> > >Nope. I once tried changing the size of the box to fit the aspect ratio of
> > the
> > >image, and still got something stupidly distorted.
> >
> > Did you change the size before or after applying the image
> >
> > >Do we have to beg for a fix in mega 0.5, or isn't there SOME way to get pov
> > to
> > >'decal' this without crazy distortions?
> > >
> >
> > It's not a bug.
> >
> > Please assume that img1.gif is 100*500 pixels.
> >
> > box {
> >  <0,0,0>,<1,5,0.01>  // box starts with correct ratio
> >  pigment {
> >   image_map {
> >     gif "img1.gif"
> >   }
> >   scale <1,5,1>  // scaling the pigment
> >  }
> > }
> >
> > The above code hasn't been tested, but I think it's right.
> >
> > Gail
> > ********************************************************************
> > * gsh### [at] monotixcoza              * Reality.dat not found         *
> > * http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
> > ********************************************************************
> > * Document program code? Why do you think it's called code?        *
> > ********************************************************************

--
Josh English
eng### [at] spiritonecom
"May your hopes, dreams, and plans not be destroyed by a few zeros."


Post a reply to this message

From: Gail Shaw
Subject: Re: Infernal blasted image maps
Date: 28 Mar 2000 05:14:17
Message: <38e085f9@news.povray.org>
Greg M. Johnson wrote in message <38DF6D27.7E7FBD8E@my-dejanews.com>...
>My memory is a bit foggy of all the things I tried. I probably should go
home
>for lunch and post to this ng the actual tracings, but the problem went
>something like this:
>
>///THIS IS WICKEDLY DISTORTED

Yes, it will be

>box{<0,0,0>,<1.,1,0.001>
>                pigment{
>                        image_map{
>                                tga "c:\My Documents\left2.tga"
>                                once
>                               }

                           // add this here
                           scale <0.126,1,1>

>                        }
>                finish {ambient 1 diffuse 0}
>                translate <-0.5,-0.5,-0.05>
>                scale 14
>                translate -17*x -1.5*y  +3*z
>        }
>
>// CHANGE  If my aspect ratio were 0.126  : 1.0 x:y, then
>
>   box{<0,0,0>,<0.126 , 1.0  ,0.001>
>
>didn't work either!  Help!

It will if you add the line scale <0.126,1,1>

>Let's fix this in mega 0.5!!!!!!


As I indicated, it is NOT a bug.

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* Document program code? Why do you think it's called code?        *
********************************************************************


Post a reply to this message

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