|
|
Might there be a script out there to create a flat screen monitor? I did
see a picture frame in one of the samples and I am going to start playing
with that to see if I can make it look the way I want, but in the mean time
I thought I might see if someone has a script I could use.
Also, I plan to take a screen shot and place it "in" the monitor I create.
How do I do that in Pov-Ray?
Carleton
Post a reply to this message
|
|
|
|
carleton nous apporta ses lumieres en ce 2007/08/29 18:02:
> Might there be a script out there to create a flat screen monitor? I did
> see a picture frame in one of the samples and I am going to start playing
> with that to see if I can make it look the way I want, but in the mean time
> I thought I might see if someone has a script I could use.
>
> Also, I plan to take a screen shot and place it "in" the monitor I create.
> How do I do that in Pov-Ray?
>
> Carleton
>
>
Create the frame of the monitor. This frame will have a recessed part for the
screen.
In that part, you place a box with an image_map of your screen shot. Give it
finish{ambient 0.95 diffuse 0.05}. The light coming to the ecreen actualy have
an effect.
The image start at <0,0> to <1,1> in the x-y plane. It's extent is independent
of it's actual resolution. We start with a box that is the same dimention as the
default dimention of the image_map, then we scale the box to the desired dimention.
So you can start with:
box{0,<1,1,0.1> texture{image_map{ImageType, "your_image.xxx"}finish{ambient
0.95 diffuse 0.05}} scale Your_dimention thanlate Screen_Bottom_Left}
ImageType can be gif | tga | iff | ppm | pgm | png | jpeg | tiff
.xxx is the actual extention of the image file that you want to use.
There are other parameters that can be used, and are often very usefull. Please
read the documentations about image_map.
This technic can also be used for non_flat monitors and TV screens. Just replace
the box with a flatened sphere: scale<1,1,0.01>
--
Alain
-------------------------------------------------
For 20 dollars, I'll give you a good tagline next time ...
Post a reply to this message
|
|