To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 11125
11124  |  11126
Subject: 
L3P and Animation (Was: Automated minifig walking animation...)
Newsgroups: 
lugnet.cad, lugnet.animation
Date: 
Thu, 19 Feb 2004 02:26:15 GMT
Viewed: 
9241 times
  
In lugnet.cad, Tore Eriksson wrote:
In lugnet.cad, Miguel Agullo wrote:

- L3P can take the main file and use the "clock" from povray to batch-process
the files (I know it's not ideal for your system, but at least you can create
loops to check how it looks).

I didn't know that. How does L3P use POV's "clock"? This is really interesting!

Oh, almost there...
This is what L3P produces:
#declare _40_MyAn_dot_dat = union {
// "MyAn" - (MyAn)
// Name: @MyAn.dat
// Author: Tore Eriksson
// LDraw Animation Master File
// Frame 000
object { _40_myan000_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
// STEP
#if (clock > 1)
// Frame 001
// CLEAR
object { _40_myan001_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
#end
// STEP
#if (clock > 2)
// Frame 002
// CLEAR
object { _40_myan002_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
#end
// STEP
#if (clock > 3)
// Frame 003
// CLEAR
object { _40_myan003_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
#end
// STEP
#if (clock > 4)
#end // if clock
}


/////////////////////////////////////////////////////////////

And this is how I wish the output looked like:


#declare _40_MyAn_dot_dat = union {
// "MyAn" - (MyAn)
// Name: @MyAn.dat
// Author: Tore Eriksson
// LDraw Animation Master File
#if (clock = 0)
// Frame 000
object { _40_myan000_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
// STEP
#end
#if (clock = 1)
// Frame 001
// CLEAR
object { _40_myan001_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
#end
// STEP
#if (clock = 2)
// Frame 002
// CLEAR
object { _40_myan002_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
#end
// STEP
#if (clock = 3)
// Frame 003
// CLEAR
object { _40_myan003_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
#end
// STEP
}

/////////////////////////////////////////////////////////////


The only problem is that L3P superimposes the new frame on old ones instead of
showing just the new.

Lars, is there any way we can work this out??? :)))



Message has 2 Replies:
  Re: L3P and Animation (Was: Automated minifig walking animation...)
 
(...) Yep, I've encountered this before and "solved" it the same way. LPUB will render this correctly, however. Place a CLEAR statement at the beginning of each step, then load the master file in LPUB and ask it to generate instruction steps without (...) (20 years ago, 19-Feb-04, to lugnet.cad, lugnet.animation)
  Re: L3P and Animation (Was: Automated minifig walking animation...)
 
(...) ---...--- Yes, that is quite a good solution. It misses frame #000, but that is easily done by hand. Or, anybody familiar with JavaScript or VBS could make your suggested Search&Replace combined with Search: "// Frame 000" Replaceby: "#if (...) (20 years ago, 19-Feb-04, to lugnet.cad, lugnet.animation)

Message is in Reply To:
  Re: Automated minifig walking animation include file for Povray (Was: 8002 destroyer)
 
(...) I think I have the same idea as you have. The function (method?) "<Minifig01>.MFWalk = 40" is unfortunately hard-coded inside the exe file. I don't want it that way. I want it to be an external, easy-to-make module from a library, and the next (...) (20 years ago, 18-Feb-04, to lugnet.cad, lugnet.animation)

26 Messages in This Thread:










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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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