POV-Ray : Newsgroups : povray.general : change color of corners in fisheye? Server Time
28 Nov 2024 02:51:19 EST (-0500)
  change color of corners in fisheye? (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: user
Subject: change color of corners in fisheye?
Date: 24 Aug 2007 10:49:24
Message: <46ceeff4@news.povray.org>
Is there any way to change the color that's rendered outside of the 
circular image in a fisheye projection? I like the smooth dithering at 
the border, but I'd like the corners to be light gray.


Post a reply to this message

From: Larry Wheeler
Subject: Re: change color of corners in fisheye?
Date: 24 Aug 2007 11:24:54
Message: <46cef846@news.povray.org>
use### [at] domaininvalid wrote:
> Is there any way to change the color that's rendered outside of the 
> circular image in a fisheye projection? I like the smooth dithering at 
> the border, but I'd like the corners to be light gray.
Sorry about the from: address in the original article; I hadn't set up 
the group yet.

Larry


Post a reply to this message

From: darenw
Subject: Re: change color of corners in fisheye?
Date: 27 Aug 2007 01:15:01
Message: <web.46d25be1bf35e5dd5eca966c0@news.povray.org>
use### [at] domaininvalid wrote:
> Is there any way to change the color that's rendered outside of the
> circular image in a fisheye projection? I like the smooth dithering at
> the border, but I'd like the corners to be light gray.

From the source code for povray 3.6.1, the outside color is hard-coded to
black.    The relevant file is render.cpp.   It looks to be fairly easy to
patch povray's source code to make this outside color specifiable. Most of
the work would be for adding parsing of a new keyword in the SDL.  Maybe
"outside_background" similar  to "background"?   (further discussion on
details probably should go in the unoffical patches forum)

Lacking an immediately available patch to do this, you are stuck having to
add your outside color in GIMP/Photoshop/whatever.


Post a reply to this message

From: Warp
Subject: Re: change color of corners in fisheye?
Date: 27 Aug 2007 04:05:21
Message: <46d285c1@news.povray.org>
darenw <Gre### [at] comcastnet> wrote:
> Most of
> the work would be for adding parsing of a new keyword in the SDL.

  Yet another new keyword to the already-cluttered namespace? Please no.
Especially not when the keyword would be specific to one single feature
of one single camera type.

-- 
                                                          - Warp


Post a reply to this message

From: Tim Attwood
Subject: Re: change color of corners in fisheye?
Date: 27 Aug 2007 15:15:47
Message: <46d322e3$1@news.povray.org>
>  Yet another new keyword to the already-cluttered namespace? Please no.
> Especially not when the keyword would be specific to one single feature
> of one single camera type.

How about this syntax? That'd be better than a new keyword.

CAMERA_TYPE:
    perspective | orthographic | fisheye [color]| ultra_wide_angle |
    omnimax | panoramic | cylinder CylinderType | spherical


Post a reply to this message

From: Larry Wheeler
Subject: Re: change color of corners in fisheye?
Date: 27 Aug 2007 16:55:00
Message: <web.46d3399fbf35e5dde9b3d1880@news.povray.org>
"darenw" <Gre### [at] comcastnet> wrote:
> use### [at] domaininvalid wrote:
> > Is there any way to change the color that's rendered outside of the
> > circular image in a fisheye projection? I like the smooth dithering at
> > the border, but I'd like the corners to be light gray.
>
> From the source code for povray 3.6.1, the outside color is hard-coded to
> black.    The relevant file is render.cpp.   It looks to be fairly easy to
> patch povray's source code to make this outside color specifiable. Most of
> the work would be for adding parsing of a new keyword in the SDL.  Maybe
> "outside_background" similar  to "background"?   (further discussion on
> details probably should go in the unoffical patches forum)
>
> Lacking an immediately available patch to do this, you are stuck having to
> add your outside color in GIMP/Photoshop/whatever.
Thanks, Daren. I guess if I do actually change it, I'll take the "easy" way
out and compile it hard-coded, rather than adding an option.


Post a reply to this message

From: Alain
Subject: Re: change color of corners in fisheye?
Date: 27 Aug 2007 17:55:12
Message: <46d34840@news.povray.org>
Tim Attwood nous apporta ses lumieres en ce 2007/08/27 15:15:
>>  Yet another new keyword to the already-cluttered namespace? Please no.
>> Especially not when the keyword would be specific to one single feature
>> of one single camera type.
> 
> How about this syntax? That'd be better than a new keyword.
> 
> CAMERA_TYPE:
>     perspective | orthographic | fisheye [color]| ultra_wide_angle |
>     omnimax | panoramic | cylinder CylinderType | spherical
> 
> 
No new keyword, just an optional colour parameter defaulting to black. Clean, 
simple (at least aparently), elegant solution.

-- 
Alain
-------------------------------------------------
An idea is not responsible for the people who believe in it.


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: change color of corners in fisheye?
Date: 28 Sep 2007 17:59:31
Message: <46fd7943$1@news.povray.org>

> "darenw" <Gre### [at] comcastnet> wrote:
>> use### [at] domaininvalid wrote:
>>> Is there any way to change the color that's rendered outside of the
>>> circular image in a fisheye projection? I like the smooth dithering at
>>> the border, but I'd like the corners to be light gray.
>> From the source code for povray 3.6.1, the outside color is hard-coded to
>> black.    The relevant file is render.cpp.   It looks to be fairly easy to
>> patch povray's source code to make this outside color specifiable. Most of
>> the work would be for adding parsing of a new keyword in the SDL.  Maybe
>> "outside_background" similar  to "background"?   (further discussion on
>> details probably should go in the unoffical patches forum)
>>
>> Lacking an immediately available patch to do this, you are stuck having to
>> add your outside color in GIMP/Photoshop/whatever.
> Thanks, Daren. I guess if I do actually change it, I'll take the "easy" way
> out and compile it hard-coded, rather than adding an option.
> 
> 
Wait a minute... You mean it's *black* instead of *transparent*? Have 
you tried rendering with +ua?


Post a reply to this message

From: William Tracy
Subject: Re: change color of corners in fisheye?
Date: 30 Sep 2007 18:58:23
Message: <47002a0f$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nicolas Alvarez wrote:
> Wait a minute... You mean it's *black* instead of *transparent*? Have
> you tried rendering with +ua?

The last time I tried fisheye with alpha, the top and left of the
background was transparent, and the bottom and right parts were black.

Fisheye + alpha seems buggy.

- --
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

> ok I may be dumb here

Yeah, maybe.

    -- Warp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHACoPcCmTzQ++ZncRAoEcAJ4sFKTiR8AXqSXBpx5979MhnRZtIACeIuYY
PzezwI7pXjcQQNATq45Xrkc=
=MmFt
-----END PGP SIGNATURE-----


Post a reply to this message

From: Warp
Subject: Re: change color of corners in fisheye?
Date: 30 Sep 2007 19:10:37
Message: <47002cec@news.povray.org>
William Tracy <wtr### [at] calpolyedu> wrote:
> Fisheye + alpha seems buggy.

  Time to submit a formal bug report?-)

-- 
                                                          - Warp


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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