POV-Ray : Newsgroups : povray.newusers : "Wormhole" effect? : Re: "Wormhole" effect? Server Time
5 Oct 2024 16:22:00 EDT (-0400)
  Re: "Wormhole" effect?  
From: PeYo56 -- MmTr1x3
Date: 23 May 2010 08:45:01
Message: <web.4bf92250c6ae9f079fcefc80@news.povray.org>
"worldbuilder" <nomail@nomail> wrote:
> "Vladimir Panteleev" <the### [at] gmailcom> wrote:
> > Hi,
> >
> > Is it possible to create a surface which - when hit by a ray - simply transmits
> > the ray out of another surface? I'm trying to create an effect similar to that
> > in the video game "Portal".
>
> I don't know exactly what you're going for, (I have never played or even seen
> Portal) but you could render a whole different scene and then simply apply it on
> a disc in the portal as a texture map. Then, set ambient to 1 and diffuse to 0.
> PS. I'm not that experienced with POV-Ray eithe

look at this :
http://farm5.static.flickr.com/4013/4631871576_a5e1eed36e_b.jpg

in megapov the portal dont run because its a camera that is defined

I think a syntax for defining a portal, it will run, we can make that we want,
defining a cube for the first part and a sphere for the second, but for the
wormhole to be correct, we will define the same object tha we just apply
transform propriety, if a wormhole is defined, and no texture defined, it will
let all the ray go from the first to the second and the second to the first, if
its a only one way wormhole, we can use somes trick for defining a object ony in
one part


cylinder { // or a other object, it is not important
 <-1.5,0.5,0>
 <1.5,0.5,0>
 1
 // if you place anything before the wormhole, it run for the two parts of the
wormhole.
 wormhole {
  in "file2.pov" // it will load a second povray file as a second universe, it
just for let the user to create 2 world and the ray pass from the first universe
"file1.pov" to the second "file2.pov", if not defined, it will use the same file
and use only one universe, the two files will be synchronised, all that is in
wormhole for defining it will be virtualy placed in the second file, and we will
not redefine the wormhole in the second ...
  translate <0,10,0>
  rotate <0,30,0>
  scale <2,2,2>
  pigment { rgbft <1,0,0,.5,.5> }
  // if you place anything in the wormhole, it run for only the second part of
the wormhole.
 }
 pigment { rgbft <0,0,1,.5,.5> }
 // if you place anything in the wormhole, it run for only the first part of the
wormhole.
}

I will show you a example later


Post a reply to this message

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