POV-Ray : Newsgroups : povray.general : 'Orthographic spherical' camera? Server Time
30 Jul 2024 04:13:15 EDT (-0400)
  'Orthographic spherical' camera? (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: David Given
Subject: 'Orthographic spherical' camera?
Date: 3 Jan 2010 18:41:29
Message: <4b412b29$1@news.povray.org>
I've finally got my planetary model working! Proper accurate topographic
information, geoid compensation, the lot. Looks good, too.

Now I want to construct a map of my moon (which was one of the reasons
behind the whole project). Ideally I want to produce something like a
spherical imagemap --- they're similar enough to a classic Mercator map
to be usable. Originally I was hoping that the spherical camera would
help here, but it turns out I'd misread it and instead of being a
spherical camera looking *inwards* it's a spherical camera looking
*outwards*.

I could place the camera at the centre of my moon, but unfortunately due
to the way I'm treating the surface (an isosurface intersected with a
sphere representing sea level) that will have the effect of reversing
the land and the sea.

Having thought about it some more, I think that what I'm looking for is
a cross between an orthographic and spherical camera --- I want Povray
to cast rays radially inwards from a spherical viewing surface towards
the centre of my model. Does such a thing exist? If not, can I fake it?

-- 
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│
│ "Sufficiently advanced incompetence is indistinguishable from
│ malice." -- Vernon Schryver


Post a reply to this message

From: Warp
Subject: Re: 'Orthographic spherical' camera?
Date: 4 Jan 2010 14:59:03
Message: <4b424887@news.povray.org>
David Given <dg### [at] cowlarkcom> wrote:
> I could place the camera at the centre of my moon, but unfortunately due
> to the way I'm treating the surface (an isosurface intersected with a
> sphere representing sea level) that will have the effect of reversing
> the land and the sea.

  By "intersected" do you mean using the 'intersection' CSG? Or do you
simply mean that you are using an union of the isosurface and the sphere
(the two surfaces would "intersect" with each other yes, but it's not an
intersection CSG).

  If it is just a union, then make it an intersection CSG, but invert the
sphere. That way you will get a "hollow" moon surface which you can look
from the inside (with no overlapping surface pairs from the isosurface and
the sphere).

  Another possibility is to invert the height function for the isosurface
so that everything that is pointing out will point in instead.

-- 
                                                          - Warp


Post a reply to this message

From: David Given
Subject: Re: 'Orthographic spherical' camera?
Date: 5 Jan 2010 20:59:57
Message: <4b43ee9d$1@news.povray.org>
On 04/01/10 19:59, Warp wrote:
[...]
>   If it is just a union, then make it an intersection CSG, but invert the
> sphere. That way you will get a "hollow" moon surface which you can look
> from the inside (with no overlapping surface pairs from the isosurface and
> the sphere).

Yeah, but it does involve a fair bit of fiddling with the model to make
work. I'd like to avoid this if possible --- too many opportunities to
break things!

Would it be feasible to use a plain orthographic camera imaging a plane,
and then have a function pigment on the plain that used the trace()
function to manually cast rays at the model? In other words, manually
building my own camera with trace()? Would this actually work?

-- 
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│
│ "Sufficiently advanced incompetence is indistinguishable from
│ malice." -- Vernon Schryver


Post a reply to this message

From: Kevin Wampler
Subject: Re: 'Orthographic spherical' camera?
Date: 5 Jan 2010 21:42:54
Message: <4b43f8ae@news.povray.org>
David Given wrote:
> Having thought about it some more, I think that what I'm looking for is
> a cross between an orthographic and spherical camera --- I want Povray
> to cast rays radially inwards from a spherical viewing surface towards
> the centre of my model. Does such a thing exist? If not, can I fake it?

I haven't actually tried this, but perhaps you could put a spherical 
camera at the center of your moon, put everything in your scene into an 
object{...} construct with the no_image attribute, and then put a large 
perfectly reflective sphere centered at your camera around the scene?


Post a reply to this message

From: CShake
Subject: Re: 'Orthographic spherical' camera?
Date: 5 Jan 2010 22:23:15
Message: <4b440223@news.povray.org>
Kevin Wampler wrote:
> David Given wrote:
>> Having thought about it some more, I think that what I'm looking for is
>> a cross between an orthographic and spherical camera --- I want Povray
>> to cast rays radially inwards from a spherical viewing surface towards
>> the centre of my model. Does such a thing exist? If not, can I fake it?
> 
> I haven't actually tried this, but perhaps you could put a spherical 
> camera at the center of your moon, put everything in your scene into an 
> object{...} construct with the no_image attribute, and then put a large 
> perfectly reflective sphere centered at your camera around the scene?
Good idea, but make sure to set max_trace_level so you don't get 
infinite internal reflection.


Post a reply to this message

From: Kevin Wampler
Subject: Re: 'Orthographic spherical' camera?
Date: 5 Jan 2010 23:23:09
Message: <4b44102d$1@news.povray.org>
CShake wrote:
> Good idea, but make sure to set max_trace_level so you don't get 
> infinite internal reflection.

Good point. Perhaps giving the large sphere the no_reflection (and 
no_shadow just to make things easier) would work too.


Post a reply to this message

From: Warp
Subject: Re: 'Orthographic spherical' camera?
Date: 6 Jan 2010 07:05:38
Message: <4b447c92@news.povray.org>
CShake <cshake+pov### [at] gmailcom> wrote:
> Good idea, but make sure to set max_trace_level so you don't get 
> infinite internal reflection.

  When have you got infinite internal reflection?

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: 'Orthographic spherical' camera?
Date: 6 Jan 2010 07:06:31
Message: <4b447cc6@news.povray.org>
David Given <dg### [at] cowlarkcom> wrote:
> On 04/01/10 19:59, Warp wrote:
> [...]
> >   If it is just a union, then make it an intersection CSG, but invert the
> > sphere. That way you will get a "hollow" moon surface which you can look
> > from the inside (with no overlapping surface pairs from the isosurface and
> > the sphere).

> Yeah, but it does involve a fair bit of fiddling with the model to make
> work. I'd like to avoid this if possible --- too many opportunities to
> break things!

  I don't think adding an 'inverse' keyword will break anything.

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: 'Orthographic spherical' camera?
Date: 6 Jan 2010 07:07:02
Message: <4b447ce6@news.povray.org>
Kevin Wampler <wam### [at] uwashingtonedu> wrote:
> CShake wrote:
> > Good idea, but make sure to set max_trace_level so you don't get 
> > infinite internal reflection.

> Good point. Perhaps giving the large sphere the no_reflection (and 
> no_shadow just to make things easier) would work too.

  Don't listen to him. You can't get "infinite internal reflection" with
povray.

-- 
                                                          - Warp


Post a reply to this message

From: Kevin Wampler
Subject: Re: 'Orthographic spherical' camera?
Date: 6 Jan 2010 12:04:11
Message: <4b44c28b$1@news.povray.org>
Warp wrote:
>   Don't listen to him. You can't get "infinite internal reflection" with
> povray.

I was more worried that the technique I proposed would make it 
impossible for any rays to ever get to the background, since they'd just 
be bounced by the sphere until the trace_limit was hit.  I don't think 
this would be a problem in David's case since all the rays will hit the 
moon anyway, but for a different scene it might make a difference.


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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