POV-Ray : Newsgroups : povray.newusers : taking matrices to next frame : Re: taking matrices to next frame Server Time
30 Jul 2024 16:22:54 EDT (-0400)
  Re: taking matrices to next frame  
From: Warp
Date: 27 Jan 2004 05:38:44
Message: <40163fb4@news.povray.org>
JANWV <jwv|at|planet.nl> wrote:
> I am familiar with writing and reading single values into .txt files with
> the #write and #read statements. But it seams to be impossible to write a
> full matrix (100x100) to a single file.

  Why would it be impossible? Just write each value in the array in a
loop and that's it.

  By the way, the easiest way of doing this is probably making your
code to write valid POV-Ray code to the file declaring the array
(ie. "#declare Matrix = array[100][100] { ...") and then #including
this file in the next frame.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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