POV-Ray : Newsgroups : povray.programming : A few ideas : Re: A few ideas Server Time
29 Jul 2024 06:22:54 EDT (-0400)
  Re: A few ideas  
From: Ronald L  Parker
Date: 2 Jun 1998 22:26:11
Message: <3574b373.360298007@news.povray.org>
On Sun, 31 May 1998 05:55:18 -0500, Mike Hough <POV### [at] aolcom>
wrote:
>1)A true spherical camera, such that if rendered and then mapped onto a
>sphere in POV would look just like the original scene.  Such images
>could be used in VRML, Livepicture, or QTVR.  I think the trick here is
>that a ray for the screen space should be matched to a sphere.  I
>couldn't figure it out, but I know it can be done.  I actually found
>where I think this would be added in create_ray in render.c.

The ultra_wide_angle camera type is almost what you're looking for.
If you set the angle to 360 * pi (not 360, due to a bug in render.c)
then chop off the top and bottom quarter of the image, you get an
image that would wrap correctly.  If you duplicate the
ultra_wide_angle code into, say, the placeholder left for
test_camera_1, then divide y0 by 2 just before setting cy and sy, and
fix it so instead of dividing by 180 it multiplies by M_PI_180, you'll
get what you're looking for.


Post a reply to this message

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