POV-Ray : Newsgroups : povray.binaries.animations : no clock gravity : Re: no clock gravity Server Time
17 May 2024 21:38:28 EDT (-0400)
  Re: no clock gravity  
From: alphaQuad
Date: 15 Sep 2009 03:05:02
Message: <web.4aaf3baa4f5daa015c4890ca0@news.povray.org>
Stephen <mcavoysAT@aolDOTcom> wrote:
> Both versions were mpeg for me. Nice animation I like the way that the ball
> deforms as it bounces.
> --
>
> Regards
>      Stephen

Thanks.

Anaglyph effect is not lost with the 3IV2 nor with the MP43 compressors,
as it was lost with JPEG compression. 3D movie is a go.

really needed a reliable L/R frame detector without the clock to depend on being
the same for both frames.

really needed a way to read file vectors. #read returns all kinds of nasty
things from a page of vectors. But if you start an int, the following vectors
return as vectors every 4th number. every other vector as 3 floats.

 #read sets undeclared identifier making it possible to echo the same var for
both vector and float for this discovery

f
f
f
v
f
f
f
v
etc

/**********************************************************
Reads a page of Vectors
must have num vectors on 1st line
***********************************************************/

#include "echo.inc"
#ifndef(READ_VECT_INC_TEMP)
   #declare READ_VECT_INC_TEMP = version;
   #version 3.6;
   #macro vectread(sfile,rarr)
       #local i=0; #local _v = array[3]
       #fopen test sfile read
       #read (test,readp)
       #local n = readp;

       #while (i<n)
         #local j=0;
         #if (mod(i,2)) #read (test,readp) #local rarr[i] = readp;
         #else
            #while (j<3)
                 #read (test,readp)
                 #local _v[j] = readp;
                 #if (j=2) #local rarr[i] = <_v[0],_v[1],_v[2]>;
                 #end
              #local j=j+1;
            #end
         #end

         #local i=i+1;
       #end
       #fclose test
   #end
  #version READ_VECT_INC_TEMP;
#end
/*
#fopen test "test.txt" write
#write(test,2,"\n",<0,-3.56095,76>,"\n",<0,3.56095,-76>,"\n") #fclose test
#declare pagevars = array[2]
vectread("test.txt",pagevars)
echov(pagevars[0]) cr()
echov(pagevars[1]) cr()
  */
      /* test file tested to 8 vects
8
<0,-3.56095,76>
<0,3.56095,-76>
<0,-3.56095,76>
<0,3.56095,-76>
<0,-3.56095,76>
<0,3.56095,-76>
<0,-3.56095,76>
<0,3.56095,-76>

  starting with vector = buggy
<0.00000,-3.56095,76.00000>
0.00000
3.56095
-76.00000
-76.00000

*/


Post a reply to this message


Attachments:
Download 'bucky3d.mp43.mpg' (461 KB)

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