POV-Ray : Newsgroups : povray.binaries.images : Mesh2 bug? [JPG, 800 x 600, 42881 bytes] : Re: Mesh2 bug? [JPG, 800 x 600, 42881 bytes] Server Time
9 Aug 2024 09:05:06 EDT (-0400)
  Re: Mesh2 bug? [JPG, 800 x 600, 42881 bytes]  
From: Tim Nikias
Date: 24 Apr 2005 06:49:00
Message: <426b799c$1@news.povray.org>
> Obviously this is designed for using smooth_triangles... but I did (at
> least for the moment) not specify any normal vectors at all!
>
> Can I use the macros nonetheless?

You might be able use my MMM (available from the Download-Section of my
website), if you can store the data in a 2d-array.
E.g., if the DEM-data is in a rectangular grid, the first pixel (top left)
would be at array[0][0] and the last pixel (bottom right) would be at
array[100][100], the first dimension being the x-space.

They convert a rectangular grid of vertices into triangles/a mesh, and I've
got macros to generate some normals off of the data for smooth_triangles.
I've lately add Wavefront-OBJ export, so you could also save the mesh to
disk and smoothen/subdivide it with a different programm.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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