POV-Ray : Newsgroups : povray.general : Perfect Image Re-Render? Server Time
5 Nov 2024 08:04:30 EST (-0500)
  Perfect Image Re-Render? (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: How Camp
Subject: Perfect Image Re-Render?
Date: 13 Oct 2005 14:45:00
Message: <web.434eaaf55d09ff87af56bf270@news.povray.org>
I'm having a mental block at the moment.  This seriously can't be hard...

I'm attempting to render an image_map of a previously traced scene - the
goal of which is to allow me the luxury of rendering a frame/border/special
effect of some sort around the original image.

I need to re-render my image_map such that every pixel traced is correlated
to the original image_map pixel.  How can I set up my image_map (distance
from camera, mainly) to ensure this to be the case?  After some basic math,
I've gotten close, but it's not a perfect match.

Any thoughts?

- How


Post a reply to this message

From: Chris B
Subject: Re: Perfect Image Re-Render?
Date: 13 Oct 2005 16:48:12
Message: <434ec80c$1@news.povray.org>
"How Camp" <hac### [at] gmailcom> wrote in message 
news:web.434eaaf55d09ff87af56bf270@news.povray.org...
> I'm having a mental block at the moment.  This seriously can't be hard...
>
> I'm attempting to render an image_map of a previously traced scene - the
> goal of which is to allow me the luxury of rendering a 
> frame/border/special
> effect of some sort around the original image.
>
> I need to re-render my image_map such that every pixel traced is 
> correlated
> to the original image_map pixel.  How can I set up my image_map (distance
> from camera, mainly) to ensure this to be the case?  After some basic 
> math,
> I've gotten close, but it's not a perfect match.
>
> Any thoughts?
>
> - How
>

If you're using a perspective camera you'll get problems because you'll need 
to adjust for the distortion that perspective introduces (and that is likely 
to be inordinately difficult). You should be able to achieve this fairly 
simply with an orthographic camera.

Chris B.


Post a reply to this message

From: Warp
Subject: Re: Perfect Image Re-Render?
Date: 13 Oct 2005 17:09:04
Message: <434eccf0@news.povray.org>
Chris B <c_b### [at] btconnectcomnospam> wrote:
> If you're using a perspective camera you'll get problems because you'll need 
> to adjust for the distortion that perspective introduces (and that is likely 
> to be inordinately difficult).

  If the plane containing the image map is completely perpendicular to
the direction of the camera, can you explain what kind of perspective
distortion happens there?

-- 
                                                          - Warp


Post a reply to this message

From: Chris B
Subject: Re: Perfect Image Re-Render?
Date: 13 Oct 2005 18:36:09
Message: <434ee159@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message 
news:434eccf0@news.povray.org...
> Chris B <c_b### [at] btconnectcomnospam> wrote:
>> If you're using a perspective camera you'll get problems because you'll 
>> need
>> to adjust for the distortion that perspective introduces (and that is 
>> likely
>> to be inordinately difficult).
>
>  If the plane containing the image map is completely perpendicular to
> the direction of the camera, can you explain what kind of perspective
> distortion happens there?
>
> -- 
>                                                          - Warp

Ah. I think I'm wrong. I was thinking of the distortion you get when a flat 
surface is projected onto the curved surface of a retina, but of course the 
camera in a ray tracer is a perfect point and the projection is onto a flat 
plane, so you should be able to get a mapping from one plane to another. 
With the default image_map scaling giving you an image from <0,0,0> to 
<1,1,0> you should then be able to set the up vector to y and the right 
vector to x with the camera at <0.5,0.5,-1> and look_at <0.5,0.5,0> and get 
a perfect pixel for pixel mapping.

Chris B.


Post a reply to this message

From: How Camp
Subject: Re: Perfect Image Re-Render?
Date: 14 Oct 2005 06:55:01
Message: <web.434f8dc6cfbe6099af56bf270@news.povray.org>
> With the default image_map scaling giving you an image from <0,0,0> to
> <1,1,0> you should then be able to set the up vector to y and the right
> vector to x with the camera at <0.5,0.5,-1> and look_at <0.5,0.5,0> and get
> a perfect pixel for pixel mapping.

Well, I'm silly.  Yes, this is what I was doing... but I applied an
antialias value without thinking about it.  Blush.

Thanks, both Chris and Warp.

- How


Post a reply to this message

From: How Camp
Subject: Re: Perfect Image Re-Render?
Date: 14 Oct 2005 08:05:01
Message: <web.434f9ec9cfbe6099af56bf270@news.povray.org>
Hmph.  Okay, I'm still a bit of a dunce.

My image now renders perfectly in terms of pixel reconstruction, but the
colors of the 'rerendered' image are significantly darker than the original
copy.

I have no light sources, and my ambient value is 1.  What else am I
forgetting?

- How


Post a reply to this message

From: Warp
Subject: Re: Perfect Image Re-Render?
Date: 14 Oct 2005 09:58:55
Message: <434fb99f@news.povray.org>
How Camp <hac### [at] gmailcom> wrote:
> My image now renders perfectly in terms of pixel reconstruction, but the
> colors of the 'rerendered' image are significantly darker than the original
> copy.

  Probably gamma issues.
  Do you have a assumed_gamma setting in your scene? If yes, comment it out.
If no, then try something like 1.0 or 2.2. Or something.

-- 
                                                          - Warp


Post a reply to this message

From: How Camp
Subject: Re: Perfect Image Re-Render?
Date: 14 Oct 2005 11:20:00
Message: <web.434fcba0cfbe6099af56bf270@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:

>   Probably gamma issues.
>   Do you have a assumed_gamma setting in your scene? If yes, comment it out.
> If no, then try something like 1.0 or 2.2. Or something.

You're good, Warp.  :)

No, I don't have assumed_gamma.  I added it, with a value of 1.0, and things
are better, but not perfect.  I ended up lowering the image_map's ambient
value to some screwy value (0.57) to compensate.  Not sure why this is.

My original image has no specific assumed_gamma value, either.  Naively, I
would think if I have identical assumed_gamma values in my original and my
're-rendered' scene, shouldn't I get the same color from each pixel?

Were I to add an assumed_gamma of 1.0 to my original image, I would not
expect any improvement, since originally both renders lacked any
assumed_gamma setting.

- How


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: Perfect Image Re-Render?
Date: 14 Oct 2005 15:49:17
Message: <43500bbd$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How Camp wrote:
> No, I don't have assumed_gamma.  I added it, with a value of 1.0,
> and things are better, but not perfect.  I ended up lowering the
> image_map's ambient value to some screwy value (0.57) to
> compensate.  Not sure why this is.

	I would go with an assumed gamma of 1/2.2 or 1/2.5 (whichever your
disply gamma is) along with the ambient 1.0

		Jerome
- --
******************************
*      Jerome M. Berger      *
*  mailto:jeb### [at] freefr   *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFDUAu9qIYJdJhyixIRAgp0AJsFB1T3ZoSkHw1fvSeDKRbj4FC80wCbB5nC
wXp7h+lymblRazihodmYlfY=
=+ihD
-----END PGP SIGNATURE-----


Post a reply to this message

From: Stefan Persson
Subject: Re: Perfect Image Re-Render?
Date: 15 Oct 2005 12:53:05
Message: <435133f1@news.povray.org>
I'm sorry.. but perhaps I don't understand your problem entirely.
How about smacking that old render onto a plane, scale it down,
add the border and render with a orthographic camera?

Stefan

"How Camp" <hac### [at] gmailcom> skrev i meddelandet 
news:web.434eaaf55d09ff87af56bf270@news.povray.org...
> I'm having a mental block at the moment.  This seriously can't be hard...
>
> I'm attempting to render an image_map of a previously traced scene - the
> goal of which is to allow me the luxury of rendering a 
> frame/border/special
> effect of some sort around the original image.
>
> I need to re-render my image_map such that every pixel traced is 
> correlated
> to the original image_map pixel.  How can I set up my image_map (distance
> from camera, mainly) to ensure this to be the case?  After some basic 
> math,
> I've gotten close, but it's not a perfect match.
>
> Any thoughts?
>
> - How
>
>
>


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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