POV-Ray : Newsgroups : povray.general : Volumetric textures : Re: Volumetric textures Server Time
26 Jun 2024 11:02:00 EDT (-0400)
  Re: Volumetric textures  
From: Anthony D  Baye
Date: 5 Jan 2015 00:35:00
Message: <web.54aa21c453bf8cb8bd92286f0@news.povray.org>
"Nekar Xenos" <nomail@nomail> wrote:
> "Anthony D. Baye" <Sha### [at] spamnomorehotmailcom> wrote:
> > "MichaelJF" <mi-### [at] t-onlinede> wrote:
> > > Le_Forgeron <jgr### [at] freefr> wrote:
> > > > Le 03/01/2015 10:13, Warp a écrit :
> > > > > Anthony D. Baye <Sha### [at] spamnomorehotmailcom> wrote:
> > > > >> So povray's textures are supposed to be 3D, and indeed the patterns are
> > > > >> demonstrably three-dimensional, however they do not seem to be sampled for
the
> > > > >> inside of an object.
> > > > >
> > > > >> So I guess my question is: Why not?
> > > > >
> > > > > POV-Ray renders *surfaces*.
> > > > >
> > > > Sampling 3D is done with media (and there is three kind of them), inside
> > > > surface.
> > >
> > >
> > > Obviously media are the way to go. A good way here may be the use of df3-files.
> > > Bill Pokorny has given the link to an interesting visualisation tool just some
> > > days ago
> > >
> > >
http://news.povray.org/povray.general/thread/%3C54a2dc7e%241%40news.povray.org%3E/
> > >
> > > Of course one must generate or obtain the df3-files first. But this is another
> > > story...
> > >
> > > Best regards,
> > > Michael
> >
> > There's a key difference between media and textures. Textures have finishes.
> >
> > As for Warps glib response about povray only rendering surfaces: that hasn't
> > been true since media was added. Subsurface scattering is also b.d. not on the
> > surface.  Why can't textures be sampled for the interior as well?
> >
> > A.D.B.
>
> Maybe I misunderstood what you meant. Can you show me an example of such a
> texture?

I'll admit that I'm having problems finding good examples of what I'm after.
Most uses of volumetric textures in games seem to be about doing smoke effects,
which is what we have media for, or hair effects, which are better handled in
other ways.

What I was hoping to accomplish is to create a believable compound material with
solid and transparent parts.

With the current system, when you look through the transparent parts of a
texture, you see the texture on the back surface of the object, with nothing
inside.

What I'd like to see is the internal boundaries between transparent and opaque
parts of the texture.

The way I imagine this happening is that, as you trace along a ray, you sample
the texture continuously at intervals, until you hit an opaque pixel, or the
blended result of your previous samples is "reasonably opaque".

this method could even account for things like flaws or air pockets in a
transparent material without having to resort to a csg object or isosurface.

Admittedly, I have no experience with this sort of programming, so I'm just
theorizing how it could work without thinking about things like overhead.

As it is, the only way I can think of to achieve the effect I'd like is to use a
compound object with each part having its own texture.

I can't think of any way to get this effect using simple layered textures, but
I'm not that much of an artist.  If anyone has examples of this sort of thing
using the current system, I'd love to see them.

Regards,
A.D.B.


Post a reply to this message

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