POV-Ray : Newsgroups : povray.newusers : Reading Raster ASCII data for animation : Reading Raster ASCII data for animation Server Time
28 Sep 2024 07:37:29 EDT (-0400)
  Reading Raster ASCII data for animation  
From: Erick
Date: 3 Apr 2012 01:20:06
Message: <web.4f7a881bc5fd7c09108129760@news.povray.org>
Hello
I am very new at POV-Ray but I saw it is quite powerful and high quality
rendered images. My goal is to make an animation out of several RASTER data in
ASCII format I have. It is related to wave propagation in the coast. The data
looks like this:

ncols         1099               ---> # of grids X
nrows         1453               ---> # of grids Y
xllcorner     451497.16550264    ---> Long. Coord.
yllcorner     3950829.9769289    ---> Lat. Coord.
cellsize      405                ---> size of grid
NODATA_value  -99              ---> no data - no height (m)
 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000
 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000
 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000
 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000
 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000 -99.000   0.000
   0.000   0.000  -0.001  -0.001  -0.001  -0.001  -0.001  -0.001  -0.002  -0.002
  -0.002  -0.002  -0.002  -0.002  -0.003  -0.003  -0.003  -0.003  -0.003  -0.003
  -0.004  -0.004  -0.004  -0.004  [...]

I normally used Transform for a 2D animation, but I wish I can make a 3D
animation of these data. How can I read into POV-Ray such data and use it to
generate an image of a map with terrain (negative values) and sea (positive
values)?.
I would appreciate your help, thank you!

Erick


Post a reply to this message

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