POV-Ray : Newsgroups : povray.advanced-users : mesh_camera Server Time
9 Oct 2025 15:53:05 EDT (-0400)
  mesh_camera (Message 1 to 10 of 10)  
From: Paul Bourke
Subject: mesh_camera
Date: 6 Oct 2025 03:05:00
Message: <web.68e3695d526a3701f518fc70784a083c@news.povray.org>
I have the need for a custom camera, specifically an omni directional
stereoscopic panorama (cylindrical, not equirectangular). I've done this in the
long distant past by modifying the source and building my own version.

I thought I would try the mesh_camera but it seems not as useful as I imagined.
I can readily create the meshes and am getting the right results but ...

1. Loading the mesh takes a very long time for high resolution images. The LED
cylinder I'm creating for is 12816x2048 pixels, even for 1/4 resolution tests
the mesh loading takes longer than the rendering and it's probably 16x longer
for the full resolution.

2. Is there there still no efficient/clean way to do antialising.

Am I missing something?


Post a reply to this message

From: Mr
Subject: Re: mesh_camera
Date: 6 Oct 2025 07:40:00
Message: <web.68e3aa17e548611c16086ed06830a892@news.povray.org>
"Paul Bourke" <pau### [at] gmailcom> wrote:
> I have the need for a custom camera, specifically an omni directional
> stereoscopic panorama (cylindrical, not equirectangular). I've done this in the
> long distant past by modifying the source and building my own version.
>
> I thought I would try the mesh_camera but it seems not as useful as I imagined.
> I can readily create the meshes and am getting the right results but ...
>
> 1. Loading the mesh takes a very long time for high resolution images. The LED
> cylinder I'm creating for is 12816x2048 pixels, even for 1/4 resolution tests
> the mesh loading takes longer than the rendering and it's probably 16x longer
> for the full resolution.
>
> 2. Is there there still no efficient/clean way to do antialising.
>
> Am I missing something?

Hi! Wouldn't using stochastic sampling ("AM3") with zero value for aa but a tiny
camera depth of field "aperture" so that you can keep its sample count minimal
between 3 and 5, the whole thing focused at the distance of your cylinder's
surface do the trick for you ? (I often ended uo using no aa and using only
aperture instead in the cases where I wanted some really photographic look
anyway. and it ended being a better trade off.

Otherwise, Le Forgeron's branch (HGPOVRAY38) has many additional camera types,
(among which a stereo one) does none suit your use?


Post a reply to this message

From: yesbird
Subject: Re: mesh_camera
Date: 6 Oct 2025 09:18:14
Message: <68e3c196$1@news.povray.org>
On 06/10/2025 10:01, Paul Bourke wrote:
> I have the need for a custom camera, specifically an omni directional
> stereoscopic panorama (cylindrical, not equirectangular). ...
I remember your 'Market' project:
https://povlab.yesbird.online/pb/

For rendering this animation I used HgPovray38:
https://github.com/LeForgeron/povray
with Omni Directional Stereo camera:
https://wiki.povray.org/content/User:Le_Forgeron/cameras
and then, applied video to cylinders with Three.js.

I guess the projection is fine and without noticeable distortions.
After exploring mesh cameras I switched to HgPovray, as a more reliable
solution.
-- 
YB


Post a reply to this message

From: Josh English
Subject: Re: mesh_camera
Date: 6 Oct 2025 11:19:41
Message: <68e3de0d@news.povray.org>
On 10/6/2025 12:01 AM, Paul Bourke wrote:
> I have the need for a custom camera, specifically an omni directional
> stereoscopic panorama (cylindrical, not equirectangular). I've done this in the
> long distant past by modifying the source and building my own version.
> 
> I thought I would try the mesh_camera but it seems not as useful as I imagined.
> I can readily create the meshes and am getting the right results but ...
> 
> 1. Loading the mesh takes a very long time for high resolution images. The LED
> cylinder I'm creating for is 12816x2048 pixels, even for 1/4 resolution tests
> the mesh loading takes longer than the rendering and it's probably 16x longer
> for the full resolution.
> 
> 2. Is there there still no efficient/clean way to do antialising.
> 
> Am I missing something?
> 
> 
In my Mesh Camera experiments I stole some code from Jaime Vives 
Piqueres on how to save the meshes to files once I had generated them so 
subsequent renders went faster.

The only way I've found to anti-alias is to use multiple copies of the 
mesh moved along the view plane. This also allowed for focal blur and 
motion blur. Since meshes are quick to copy this doesn't add a lot of 
overload.

I've started to experiment with the user-defined camera but I'm not 
getting results yet. The user-defined camera supposedly supports 
anti-aliasing.

Josh


Post a reply to this message


Attachments:
Download 'meshcam07c.png' (211 KB)

Preview of image 'meshcam07c.png'
meshcam07c.png


 

From: Paul Bourke
Subject: Re: mesh_camera
Date: 8 Oct 2025 23:30:00
Message: <web.68e72c25e548611cf518fc70784a083c@news.povray.org>
> Hi! Wouldn't using stochastic sampling ("AM3") with zero value for aa but a tiny
> camera depth of field "aperture" so that you can keep its sample count minimal
> between 3 and 5, the whole thing focused at the distance of your cylinder's
> surface do the trick for you ? (I often ended uo using no aa and using only
> aperture instead in the cases where I wanted some really photographic look
> anyway. and it ended being a better trade off.

Antialiasing is not about depth of field.
The distance to the cylinder is related to where zero parallax in the ODSP.

> Otherwise, Le Forgeron's branch (HGPOVRAY38) has many additional camera types,
> (among which a stereo one) does none suit your use?

Yes, the "Omni Directional Stereo camera" in HGPOVRAY38 is what I'm looking for,
but while building version 3.7 works out of the box on MacOS, I haven't been
able to build HGPOVRAY38 yet. Anyone done this? Preferably just the command line
version, no gui.


Post a reply to this message

From: Paul Bourke
Subject: Re: mesh_camera
Date: 8 Oct 2025 23:35:00
Message: <web.68e72c5fe548611cf518fc70784a083c@news.povray.org>
yesbird wrote:
> On 06/10/2025 10:01, Paul Bourke wrote:
> > I have the need for a custom camera, specifically an omni directional
> > stereoscopic panorama (cylindrical, not equirectangular). ...
> I remember your 'Market' project:
> https://povlab.yesbird.online/pb/
>
> For rendering this animation I used HgPovray38:
> https://github.com/LeForgeron/povray
> with Omni Directional Stereo camera:
> https://wiki.povray.org/content/User:Le_Forgeron/cameras
> and then, applied video to cylinders with Three.js.
>
> I guess the projection is fine and without noticeable distortions.
> After exploring mesh cameras I switched to HgPovray, as a more reliable
> solution.

Yes, the "Omni Directional Stereo camera" in HGPOVRAY38 is what I'm looking for,
but while building version 3.7 works out of the box on MacOS, I haven't been
able to build HGPOVRAY38 yet. Anyone done this? Preferably just the command line
version, no gui.


Post a reply to this message

From: Paul Bourke
Subject: Re: mesh_camera
Date: 8 Oct 2025 23:35:00
Message: <web.68e72d48e548611cf518fc70784a083c@news.povray.org>
> In my Mesh Camera experiments I stole some code from Jaime Vives
> Piqueres on how to save the meshes to files once I had generated them so
> subsequent renders went faster.

I saw your work and examples, it was useful when I started exploring the
mesh_camera, so thanks.

I'm creating them as an inc file also, except I'm creating them from C/C++.

But the issue remains, for high resolution images reading the mesh data is slow.
But without (efficient) antialiasing I've decided to drop this as an option.


Post a reply to this message

From: ingo
Subject: Re: mesh_camera
Date: 9 Oct 2025 01:40:00
Message: <web.68e749f7e548611c17bac71e8ffb8ce3@news.povray.org>
"Paul Bourke" <pau### [at] gmailcom> wrote:

> "Omni Directional Stereo camera"

Have you looked at the "User defined projection" in POV-Ray 3.8?

https://wiki.povray.org/content/Reference:Camera#User_defined_projection

An ODS camera has been built with it:

https://www.clodo.it/blog/omnidirectional-stereo-ods-with-pov-ray/

ingo


Post a reply to this message

From: yesbird
Subject: Re: mesh_camera
Date: 9 Oct 2025 04:33:12
Message: <68e77348@news.povray.org>
On 09/10/2025 06:30, Paul Bourke wrote:
> Yes, the "Omni Directional Stereo camera" in HGPOVRAY38 is what I'm looking for,
> but while building version 3.7 works out of the box on MacOS, I haven't been
> able to build HGPOVRAY38 yet. Anyone done this? Preferably just the command line
> version, no gui.

I've built it for Windows and Ubuntu 24.04, if you have some issues
building for MacOS, please send details and I will try to help,
although, unfortunately, I have no MacOS platform.
--
YB


Post a reply to this message

From: Paul Bourke
Subject: Re: mesh_camera
Date: 9 Oct 2025 05:00:00
Message: <web.68e77875e548611cf518fc70784a083c@news.povray.org>
> Have you looked at the "User defined projection" in POV-Ray 3.8?
> https://wiki.povray.org/content/Reference:Camera#User_defined_projection
> An ODS camera has been built with it:
> https://www.clodo.it/blog/omnidirectional-stereo-ods-with-pov-ray/

Ahhhh, that would be PEFECT. Easy to modify that example to create cylindrical
rather than equirectangular ODSP.

But now back to building 3.8 on MacOS, preferably without the GUI. Anyone with
more skills than I have done this? I didn't succeed with HgPovray38 but perhaps
the base 3.8 version?


Post a reply to this message

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