POV-Ray : Newsgroups : povray.general : pigment image map big image Server Time
29 Jul 2024 06:14:49 EDT (-0400)
  pigment image map big image (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: handos
Subject: Re: pigment image map big image
Date: 3 Jul 2013 12:10:01
Message: <web.51d44bf7958a06f4d7ae32040@news.povray.org>
Many thanks for your reply everyone, I finally managed to get it working!

Ankur.

James Holsenback <nom### [at] nonecom> wrote:
> On 07/02/2013 01:51 PM, handos wrote:
> > I have this image floor_stonechip that I want to map on a planar surface. I used
> > the following code for that:
> >
> > plane {
> >      y,0
> >      translate table3_pos
> >      translate 300*y
> >      pigment {
> >        image_map {png "floor_stonechip.png"}
> >      }
> >    }
> >
> > A sample result of my rendering generates this:
> > www.doc.ic.ac.uk/~ahanda/scene_16_0040.png
> > However, the floor doesn't look exactly like I want to see. The
> > floor_stonechip.png looks like this:
> > www.doc.ic.ac.uk/~ahanda/floor_stonechip.png
> >
> > Can povray experts point me what is it that I need to change in this code to get
> > similar looking floor (the floor_stonechip.png is quite a big image)
> >
> > Thank you
> >
> >
> >
> >
> maybe this might help:
> http://wiki.povray.org/content/Reference:Vector_Expressions#Index_Entry_max_extent
>
> the 2nd code example


Post a reply to this message

From: Alain
Subject: Re: pigment image map big image
Date: 4 Jul 2013 12:46:06
Message: <51d5a6ce@news.povray.org>
Le 13-07-02 19:19, Warp a écrit :
> handos <han### [at] gmailcom> wrote:
>> so I did scale the pigment to a very large value but in vain :(
>
> Don't just do trial-and-error to see what happens. Try to understand
> what's going on.
>
> The image map will be mapped on a 1x1 unit square on the x-y plane
> (and repeated on both of those axes.)
>
> Your floor is on the x-z plane (because its normal vector is pointing
> in the y direction.) Therefore you need to rotate the image map so that
> it will be on the x-z plane instead of the x-y plane. If you rotate the
> pigment by 90 degrees around the x axis, then it will end up being on
> the x-z plane. (Try to visualize why that's so.)
>
> What size is the floor, approximately, visible on the image, in units?
> Is it like 10x10 units? 1000x1000 units? 0.01x0.01 units? Something else?
>
> If the visible portion of the floor is, for example, 1000x1000 units,
> then you need to scale your image map pigment by about 100 to get what
> you want (ie. something like 10x10 tiles.)
>
> If you just have no idea what the size of the floor is, then put a
> box { 0, 1 } on it and see how large it is. It will give you a notion
> of the scale of the image. (If the box is so large that it covers
> everything, make it smaller.)
>

You also can replace the image_map by a simple checkers pattern. It will 
give you a nice green and blue pattern of 1x1 unit squares.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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