POV-Ray : Newsgroups : povray.news-submissions : Pov-Ray With Subdivision available : Re: Pov-Ray With Subdivision available Server Time
18 Apr 2024 22:54:50 EDT (-0400)
  Re: Pov-Ray With Subdivision available  
From: Christoph Hormann
Date: 11 May 2004 18:40:02
Message: <c7rkne$4ui$1@chho.imagico.de>
Xiaobin Wu wrote:
> During one of my research projects, I needed to quickly create the
> ray-tracing images of subdivision surfaces. What I did is to subdivide
> the object offline and import the subdivided surface into Pov-Ray,
> which of course led to huge pov-ray files.
> 
> I found it extremely convenient to have the mesh2 object directly support
> the subdivision algorithms. So I and another student (Jianhua Fan) spent
> some
> time to expand the mesh2 object so that it can be directly used to
> generate smooth subdivision surfaces.
> 
> The new syntax would be:
>    mesh2 {
>         subdivision {
>              substeps n              // n= steps of subdivision
>              flatshading              // optional flag to set flat shading
>         }
> 
>        vertex_list ...
>        ...
>    }
> 
> Anyway, the examples and new executable can be downloaded from
> 
>   http://www.cise.ufl.edu/~xwu/Pov-Sub

The source would be important to evaluate your patch.  Concerning the 
syntax - 'flatshading' is a bad choice for the keyword - a simple 
'smooth' would be more descriptive and already exists from heightfields.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 01 May. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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