POV-Ray : Newsgroups : povray.binaries.images : Example images for the related post: "Rendering an electromagnetic field an= : Re: Example images for the related post: "Rendering an electromagnetic fiel= Server Time
26 Jun 2024 03:20:40 EDT (-0400)
  Re: Example images for the related post: "Rendering an electromagnetic fiel=  
From: cbpypov
Date: 28 Oct 2017 09:45:02
Message: <web.59f489d9231a9fe3306cf3e40@news.povray.org>
Alain <kua### [at] videotronca> wrote:

>
> The media container on the right never overlap the other two, while
> there is a visual overlap on the left, and maybe also a physical
> overlap. Those overlaping part are known to cause that kind of problems.
>
> You should use a single container. When you have multiple medias within
> a single container, they add up.
> Multiple densities within the same media will multiply instead.
>
> So, you should place the small spheres, then fill a box with your medias.
> You may need to increase the number of samples.
> The render time will increase as the number of medias increase.


Thank you very much Alain for pointing these things out! I set the radiosity
option (media on) as you said and it seems to work. I think the route is now
pretty much clear to me, except for _one_ thing, and I'd be glad to have your
help one more time...

What I did so far is the following:
  - I changed to modeling the photonic crystal as a single membrane with hole,
    just as Bald Eagle suggested (thanks for this hint and the link to
    Lohmuellers hole with edge radius :) ).
  - I randomly generated a list of emitter coordinates with intensities
    proportional to the field strength at their location.
  - I changed the light drastically. It now uses 3 spot lights, an area light
    along x-direction, an HDRI light environment, ... and ... each emitter
    now features an additional light source proportional to its intensity at
    its location (so these are many light sources :) ).
  - I tweaked the material parameters to look more realistic.

The result is in the attachment, and I am really satisfied with the improvements
(do you like it?).

So the mentioned final step should be:
  - Model the superspace in which the fields are defined as a single object
    (I already did, this is just the difference of a large box and the
     photonic crystal geometry)
  - Define the (1) emitter's glowing spheres and (2) the field renders as
    separate media statements inside the interior of this object.
(Their intensities will add up and the overlapping issues will be gone, am I
right Alain?)

THE FINAL PROBLEM:
How do I specify these media inside the interior with the proper alignment? Say
I have a singe field and set it as the density (as before). It will then take
the complete object's vomume, right? How can I get the scaling and the
positioning of these separate media right?

Any help greatly appreciated and thank you so much for guiding me this far. Im
sure it will be beautiful in the end :)


Post a reply to this message


Attachments:
Download '20171028_field_single.png' (1079 KB)

Preview of image '20171028_field_single.png'
20171028_field_single.png


 

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