POV-Ray : Newsgroups : povray.general : Mesh rendering artifacts : Re: Mesh rendering artifacts Server Time
2 Nov 2024 01:32:41 EDT (-0400)
  Re: Mesh rendering artifacts  
From: yesbird
Date: 26 Jan 2023 09:00:00
Message: <web.63d28410249f0076419688c110800fb2@news.povray.org>
> Likely your smoothest option would be to use an isosurface object and "graph"
> the equation directly.

Thanks for this suggestion, I know about isosurface and this approach would be
the best, but the idea is to get data from Matlab's generated surface, including
colormap and render ray-traced equivalent. Now it looks following:

......
size = 60;
[X,Y,Z] = peaks(size);
s = surf(X,Y,Z);

pl.surface('surface', s, 'colormap', 'turbo', 'scale', [1, 1, 3/10]);
......

where 'pl' is POV object.

As you can see it works and results are acceptable, but not perfect.

I am planing to wrap _all_ POV entities entities in future and seriously extend
not only Matlab's visualization capabilities, but the way Matlab's users are
working with surfaces.

> Nice that you have those smooth_triangles in there  :)
Yes, I have a special option for than in my API. )


Post a reply to this message

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