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 / 2766
2765  |  2767
Subject: 
A question about an animation scene
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 4 Apr 2007 11:29:32 GMT
Viewed: 
6719 times
  
I have made a scene where a car follows a spline

this is the main co

-----------------------------------------------------------------------------
object { car_dot_dat matrix <0,0,1,0,1,0,-1,0,0,0,0,0> #if (version >= 3.1)
material #else texture #end { Color7 }
//translate<-960,-24,1860>
rotate -90*y
animate_by_spline (east_to_south, auto_banking (0))}
-----------------------------------------------------------------------------

so far works the car follows the spline all frames 60 = 4 seconds animation

I want to make another but this time that it renders all frames of 1st car and
then the second without having to change the name of the spline or without
having to make another scene file.

so this is the code i believe should work

#if ( frame_number > 0 & frame_number < 61)
object { car_dot_dat matrix <0,0,1,0,1,0,-1,0,0,0,0,0> #if (version >= 3.1)
material #else texture #end { Color7 }
//translate<-960,-24,1860>
rotate -90*y
animate_by_spline (east_to_south, auto_banking (0))}
#end

#if ( frame_number > 60 & frame_number < 121)
object { car_dot_dat matrix <0,0,1,0,1,0,-1,0,0,0,0,0> #if (version >= 3.1)
material #else texture #end { Color7 }
//translate<-960,-24,1860>
rotate -90*y
animate_by_spline (south_to_east, auto_banking (0))}
#end

It looks like it works but the 1st car stops at frame 60 and is only half way
the spline and the 2nd car starts at frame 61 but starts in the middle of the
spline and ends correctly.

Why doesn't the 1st car follow all the spline ?

Why doesn't the 2nd car start at the beginning of the spline?

Why does it work if i seperate them if each in to 2 files?

And why I can't get them working all in one file ?

I hope someone can help me.

Thanks



Message has 2 Replies:
  Re: A question about an animation scene
 
(...) --snip-- (...) Hi Eduardo, The spline macro would be useful too ;) Tim (18 years ago, 4-Apr-07, to lugnet.cad.ray)
  Re: A question about an animation scene
 
(...) You are not specifying a custom clock value so your spline lasts from frames 1 to 121. You actually want to specify a custom clock value. Something like this: animate_by_spline (east_to_south, auto_banking (0) + spline_clock ( ..... ) )} The (...) (18 years ago, 6-Apr-07, to lugnet.cad.ray)

3 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