To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 1013
1012  |  1014
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: LDA2001 and batch .pov file creation
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 24 Oct 2001 23:13:04 GMT
Viewed: 
1583 times
  
In lugnet.cad.ray, Lars C. Hassing writes:
#declare model_dot_dat = union {
// FILE model.dat
// L3P IFPOV
#if (1)
#include "hills.pov"
// L3P ENDPOV
#end
  object {
...

which is probably not what you want.


...but it gives me another idea:

0 Anim03
0 Author: Tore Eriksson
1 7  0 0 0  1 0 0  0 1 0  0 0 1  700.dat

0 L3P IFPOV
0 #if (clock=0.0)
1 2  80 -28 -70  1 0 0  0 1 0  0 0 1  3001.dat
0 #end
0 #if (clock=0.05)
1 2  100 -28 -70  1 0 0  0 1 0  0 0 1  3001.dat
0 #end
0 #if (clock=0.1)
1 2  120 -28 -70  1 0 0  0 1 0  0 0 1  3001.dat
0 #end
0 L3P ENDPOV
0

gives this POV output:

#declare Anim03_dot_dat = union {
// Anim03
// Author: Tore Eriksson
object {
_700_dot_dat
matrix <1-SW/400,0,0,0,1-SW/28,0,0,0,1-SW/200,0,SW/2.8,0>
matrix <1,0,0,0,1,0,0,0,1,0,0,0>
#if (version >= 3.1) material #else texture #end { Color7 }
}
// L3P IFPOV
#if (1)
#if (clock=0.0)
object {
_3001_dot_dat
matrix <1-SW/80,0,0,0,1-SW/28,0,0,0,1-SW/40,0,SW/2.8,0>
matrix <1,0,0,0,1,0,0,0,1,80,-28,-70>
#if (version >= 3.1) material #else texture #end { Color2 }
}
#end
#if (clock=0.05)
object {
_3001_dot_dat
matrix <1-SW/80,0,0,0,1-SW/28,0,0,0,1-SW/40,0,SW/2.8,0>
matrix <1,0,0,0,1,0,0,0,1,100,-28,-70>
#if (version >= 3.1) material #else texture #end { Color2 }
}
#end
#if (clock=0.1)
object {
_3001_dot_dat
matrix <1-SW/80,0,0,0,1-SW/28,0,0,0,1-SW/40,0,SW/2.8,0>
matrix <1,0,0,0,1,0,0,0,1,120,-28,-70>
#if (version >= 3.1) material #else texture #end { Color2 }
}
#end
// L3P ENDPOV
#end
//
}


And yet another idea:
Maybe it is more powerful to insert variables in the matrix and let POV take
the lion share of the calculations.
(In this example, I had to make sure the object (_3002_dot_dat) and Color2
are declared. x, y, z, & c:o are not declared in this code fragment.)


0 L3P IFPOV
0 #if (0)
1 2  0 0 0  1 0 0  0 1 0  0 0 1  3002.dat
0 #end
0 #if (clock>0.6)
0 object {
0 _3002_dot_dat
0 matrix <1-SW/80,0,0,0,1-SW/28,0,0,0,1-SW/40,0,SW/2.8,0>
0 matrix <1,0,sin(DeltaC*PI/whatever),0,1,0,0,0,1,x,y,z>
0 #if (version >= 3.1) material #else texture #end { Color2 }
0 }
0 #end
0 L3P ENDPOV
0

Yes, this must be the way. One POV file, no post-processing of it.

But I have also thought that it is not very hard to include instructions to
a post-processor with "0 LDA2001_..." that L3P will hand over with a //
instead of 0.


(To be continued...)
/Tore



Message is in Reply To:
  Re: LDA2001 and batch .pov file creation
 
Tore Eriksson wrote... (...) Yes, it has been discussed before, and No, nothing came out of it... I would prefer something like 0 L3P OPTIONS -cc-1500,-72,-400 -cla-1420,-120,-200 -ca62 (...) 0 FILE model.dat 0 L3P IFPOV 0 #include "hills.pov" 0 L3P (...) (23 years ago, 30-Sep-01, to lugnet.cad.ray)

12 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR