POV-Ray : Newsgroups : povray.general : A newbie request Server Time
25 Nov 2024 08:52:15 EST (-0500)
  A newbie request (Message 1 to 3 of 3)  
From: BillR31
Subject: A newbie request
Date: 7 Dec 2015 18:45:01
Message: <web.566619718c133f205259f0910@news.povray.org>



I would appreciate a simple walk-thru on how to do this. I have a good quality
bitmapped file which I wish to project onto a plane, so that a cylindrical
mirror (at right angles) will view it correctly view it. I would appreciate any
setup assistance. This is for a wedding present for my step-daughter and her new
husband, to see a reflection of a piece of calligraphy which they cherish. I
would like a setup so that I can input my image, vary the angle of view, and
render the projection.

I am using the current Windows version of Pov-Ray on Windows 7 Pro, but am quite
used to command-line operation of programs.

Thanks in advance for any assistance!

Bill


Post a reply to this message

From: Alain
Subject: Re: A newbie request
Date: 8 Dec 2015 15:02:25
Message: <56673751@news.povray.org>



>
> I would appreciate a simple walk-thru on how to do this. I have a good quality
> bitmapped file which I wish to project onto a plane, so that a cylindrical
> mirror (at right angles) will view it correctly view it. I would appreciate any
> setup assistance. This is for a wedding present for my step-daughter and her new
> husband, to see a reflection of a piece of calligraphy which they cherish. I
> would like a setup so that I can input my image, vary the angle of view, and
> render the projection.
>
> I am using the current Windows version of Pov-Ray on Windows 7 Pro, but am quite
> used to command-line operation of programs.
>
> Thanks in advance for any assistance!
>
> Bill
>
>
>
>

When you place an image, it's 1 unit whide and tall in the x-y place 
extending infinitely along the z axis. You need to scale it to your 
need. If the image is not square, your scaling must take that into 
account. If the image have a 4:3 aspect ratio, the scalling can be 
something like scale<1, 3/4> or scale<4/3, 1> or scale<4,3>,...
Normaly, it repeat itself verticaly and across to cover the whole plane. 
Unsing the once keyword limit it to a single instance.

Start with a simple plane: plane{-z,0}
Add your image this way:
pigment{image_map{bmp Your image}scale 10 once}
Your image now reside with one corner at 0,0 spaning 10 units up and to 
the right.

Assuming that the area for the mirror is in the middle top side:
cylinder{<5,10,0><5,10,-20>, Radius_Of_The_Mirror
	texture{
		pigment{rgb 0}
		finish{ambient 0 diffuse 0 reflection 1}
	}
}
If the place for the mirror is elsewhere, you need to place the cylinder 
in that location.
Another possible location is in the middle of the image, so, at 5,5 in 
this case.

It now look like:
union{
  plane{-z,0
   pigment{image_map{bmp Your image}scale 10 once} finish{emission 1 
ambient 0 diffuse 0}
   }
  cylinder{<5,10,0><5,10,-20>, Radius_Of_The_Mirror
   texture{
    pigment{rgb 0}
    finish{ambient 0 diffuse 0 reflection 1}
    }
   }
rotate 90*x
}

The rotate makes the plane horizontal.
Now, you only need to place the camera. Something like:
camera{location<5, -20, 5 look_at<5, 0, 10>}
The camera should look at the base of the mirror or some place along it.

The area outside the image will be black.
This example don't use any light but use a light emiting finish to make 
things visible.


Alain


Post a reply to this message

From: William F Pokorny
Subject: Re: A newbie request
Date: 8 Dec 2015 17:00:25
Message: <566752f9$1@news.povray.org>
On 12/07/2015 06:42 PM, BillR31 wrote:


>
> I would appreciate a simple walk-thru on how to do this. I have a good quality
> bitmapped file which I wish to project onto a plane, so that a cylindrical
> mirror (at right angles) will view it correctly view it. I would appreciate any
> setup assistance. This is for a wedding present for my step-daughter and her new
> husband, to see a reflection of a piece of calligraphy which they cherish. I
> would like a setup so that I can input my image, vary the angle of view, and
> render the projection.
>
> I am using the current Windows version of Pov-Ray on Windows 7 Pro, but am quite
> used to command-line operation of programs.
>
> Thanks in advance for any assistance!
>
> Bill
>
>
>
Hi Bill,

Your task caught my interest so I played with code on and off today - my 
daughter got married just over a year ago and I used POV-Ray to create 
table place cards for the reception. For what I worked up see the 
povray.binaries.images newsgroup for the post "Anamorphic images for 
mirrored cylinder."

http://news.povray.org/povray.binaries.images/message/%3C56674f14%40news.povray.org%3E/#%3C56674f14%40news.povray.org%3E

-------------- Other information.

One povray user I recall doing this kind of work and more with povray 
was fdecomite, not sure if currently active but see: 
https://www.flickr.com/photos/fdecomite/sets/72157604984910048/ for a 
large image gallery.

An article showing various ways to create the distorted images - 
including a pointer to free canned software for the job - can be found at:

https://anamorphicart.wordpress.com/2010/04/21/cylindrical-mirror-anamorphoses/

The latter article uses povray to the view the resultant image on a 
mirrored cylinder which I suppose to be similar to the set up Alain 
offered a bit ago.

Bill P.


Post a reply to this message

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