POV-Ray : Newsgroups : povray.binaries.images : Torus problem (69KB) : Re: Torus problem (69KB) Server Time
2 Oct 2024 14:12:57 EDT (-0400)
  Re: Torus problem (69KB)  
From: Bob Hughes
Date: 21 Apr 2000 22:13:00
Message: <39010aac@news.povray.org>
"Tor Olav Kristensen" <tor### [at] hotmailcom> wrote in message
news:3900C930.F7039ED4@hotmail.com...
|
| I have now tried to replace the difference with an
| intersection of a sphere and a torus with the
| 'inverse' keyword. (Is this what you meant?)
|
| ==> Same result. No change in the reflections. :(

Nope.  I was talking about the torus surface itself, maybe if it's inversed then
perhaps the reflection will right itself by then being on the "outside".
Realize though that by turning the torus inside-out then the CSG will
change too.  I think that a inverse used in the intersection or difference
should cancel that change.
Rather than try and make guesses I just tried to make such a thing myself
and I couldn't even see any reversed (or whatever) reflection:

light_source { <-5,10,-10> color rgb 1.5
}
camera {
  location  <-1,1,-10>
  angle 25
  look_at   <0, 0, 0>
}
sphere {0,1
        pigment {gradient y color_map {
                [0,1 color rgb <.9,.2,.1> color rgb <.2,.4,.8>]
        }} scale 30
}

#declare Connector=
union {
difference { // torus core, capped
        sphere {0,1}
        torus {1.5,1}
      translate -y*.6615 // approximation only
}
difference { // torus anti-core
        torus {1.5,1}
        sphere {0,1 inverse}
      translate y*.6615 // approximation only
}
        pigment {rgb <.25,1,.25>}
        finish {reflection .5}
}

object {Connector
         scale <.5,2,.5> rotate <-30,70,-90> translate -y
}
object {Connector
         scale <.5,2,.5> rotate <30,-70,90> translate y
}


Post a reply to this message

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