POV-Ray : Newsgroups : povray.general : Mesh rendering artifacts : Re: Mesh rendering artifacts Server Time
14 May 2024 04:36:41 EDT (-0400)
  Re: Mesh rendering artifacts  
From: Tor Olav Kristensen
Date: 31 Jan 2023 20:45:00
Message: <web.63d9c3b2249f00767ba9dec389db30a9@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> TOK,
>
> He posted his scene here :
>
http://news.povray.org/povray.general/attachment/%3Cweb.63d236cb249f00761ffa55cd10800fb2%40news.povray.org%3E/surface
3.
> pov.txt

Yes, I saw that. Thank you.


> I'm not sure how the data is generated from MatLab in order to be exported to
> triangles for POV-Ray, but I'm thinking that it might be better to export the
> geometry for the mesh separately, and then run a macro in POV-Ray to calculate
> the normals and color interpolation - or use the gradient y pigment.

Yes, that may be a possible way to go. But could it not be that some
would want to verify that their Matlab code generates ok normals and
colors ?


> I'm guessing that the normals are probably ok (?) and it's just the hard-coded
> colors getting interpolated that throws it all off.
>
> I'd have to dig through it all to see - but after I just did some more sorting
> macro stuff to handle the function timing (other thread), maybe I could try to
> sort the triangle vertices into a grid so that they can be put into a 2D array
> and then reprocessed.
>
> Purely as a sorting macro exercise for myself, which might prove useful to
> someone else int he future.

Are you thinking of sorting and collecting all the vertices into
a list of unique vertices ?

If so, it would be an interesting challenge to simultaneously
rearrange the colors and the normal vectors so that they are ordered
correspondingly (or respectively ?) in their own lists.

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message

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