POV-Ray : Newsgroups : povray.general : change color of corners in fisheye? Server Time
31 Jul 2024 10:28:28 EDT (-0400)
  change color of corners in fisheye? (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
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

From: William Tracy
Subject: Re: change color of corners in fisheye?
Date: 1 Oct 2007 11:29:12
Message: <47011248$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Warp wrote:
>   Time to submit a formal bug report?-)

Is the POV development team still interested in bugs against 3.6?

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

You know you've been raytracing too long when your source files are
starting to get bigger than the image files.
    -- Matt Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHARJIcCmTzQ++ZncRAvPLAKCWRdHCUfF2vuusWStdAdJaBjKkWgCfWwOP
yVHBWfQqC/4rAVRqmo8yojw=
=LkxO
-----END PGP SIGNATURE-----


Post a reply to this message

From: Alain
Subject: Re: change color of corners in fisheye?
Date: 1 Oct 2007 16:11:51
Message: <47015487$1@news.povray.org>
William Tracy nous apporta ses lumieres en ce 2007/10/01 11:29:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Warp wrote:
>>   Time to submit a formal bug report?-)
> 
> Is the POV development team still interested in bugs against 3.6?
> 
> - --
> William Tracy
Yes, if just not to port those bugs in the new version.

-- 
Alain
-------------------------------------------------
Don’t be irreplaceable. If you can’t be replaced, you can’t be promoted.


Post a reply to this message

<<< Previous 2 Messages Goto Initial 10 Messages

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