POV-Ray : Newsgroups : povray.advanced-users : how to get a 360 degrees picture of an object? : Re: how to get a 360 degrees picture of an object? Server Time
28 Jul 2024 10:22:50 EDT (-0400)
  Re: how to get a 360 degrees picture of an object?  
From: Warp
Date: 5 May 2006 12:24:05
Message: <445b7c24@news.povray.org>
RBRiddick <nomail@nomail> wrote:
> 1.
> either the 360 degrees picture on the inside of a hollow 100%-reflective
> (just reflective for the camera, while the camera can't see anything else
> than that reflection) cylinder, that has been put over that metallic object
> A (this might be something similar to a cylindrical camera, that shows the
> picture on its inside, while it surrounds the scene)

  As a side note, you seem to have a common misconception about "hollow"
objects in povray.
  All "objects" in povray are "hollow". They are just surfaces, nothing
else. Surfaces do not contain anything inside them, just empty space.
There are no "solids" in povray, just surfaces.
  The keyword 'hollow' has nothing to do with the "solidness" of objects
and has only an effect on media and fog, nothing else. (A different keyword
could be less confusing for this.)

  Anyways, this might be what you want, if I understood you correctly:

#declare UseSphericalProjection = no;

#if(UseSphericalProjection)
  camera { spherical location 0 look_at -x angle 360 }
  sphere
  { 0, 100 inverse
    pigment { rgb 0 }
    finish { reflection 1 diffuse 0 }
  }
#else
  camera { location -z*5 look_at 0 angle 35 }
#end

light_source { <10, 20, -30>, 1 }
light_source { <-20, 5, 10>, <.5, .3, 0> }
light_source { <10, -10, 20>, <0, .3, .5> }

#declare Pigm =
  pigment
  { object
    { text
      { ttf "timrom" "Hello there!" 2, 0
        scale <.2, .4, 1>
        translate y*.4
      }
      rgb 0, rgb 1
    }
    warp { spherical }
  };

// The object:
sphere
{ 0, 1
  pigment
  { pigment_pattern { Pigm }
    pigment_map
    { [0 granite color_map { [0 rgb 1][1 rgb .5] }]
      [1 granite color_map { [0 rgb x][1 rgb 0] } scale .5 ]
    }
  }
  finish { specular .5 }

  #if(UseSphericalProjection)
    no_image
  #end
}


-- 
                                                          - Warp


Post a reply to this message

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