POV-Ray : Newsgroups : povray.general : is there any feature for volume raytracing with povray? : Re: is there any feature for volume raytracing with povray? Server Time
31 Jul 2024 20:25:49 EDT (-0400)
  Re: is there any feature for volume raytracing with povray?  
From: Tim Attwood
Date: 17 Jan 2007 05:23:24
Message: <45adf91c$1@news.povray.org>
> Yes, there is indeed blocky appearance, but i think if there is no any
> tessellation, what kind of primitives povray is using to represent the
> intersection between a ray and the on-surface cube. And for each
> intersection point, its normal should be calculated from the volume data.
>
> Is that possible that povray is just using a rectangle to reprensent the
> intersection of the on-surface cube? which is something like billboards,
> since it is very efficient. If so, there would be no way to make the
> resulting surface  smoother, except using finer volume data.

Pov doesn't tessellate anything ever. All of pov's primitives are
volumetric, or surfaces. Since a DF3 is an array, the
data is represented as cube shaped data, if more than one
ray hits in each data spot it looks blocky because it is blocky.

You might try averaging a bit - interpolate 2 or ...
function{ // untested
   ( dens(x,y,z)
     +dens(x+0.05,y,z) + dens(x-0.05,y,z)
     +dens(x,y+0.05,z) + dens(x,y-0.05,z)
     +dens(x,y,z+0.05) + dens(x,y,z-0.05)
   )/7
}


Post a reply to this message

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