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 / 1314
1313  |  1315
Subject: 
Re: How can I hide an object in a frame?
Newsgroups: 
lugnet.cad.ray
Date: 
Mon, 17 Jun 2002 18:05:21 GMT
Viewed: 
850 times
  
   Yes, it will work as Roland has suggested using a bunch of #if statements.

   I have used this technique to make a parade of Classic Space vehicles
(I'll upload the movie soon) passing by the camera. I wanted to save memory
and parse time by only loading the vehicles which were inside the camera's
view at a particular time. So I did it like this:


#declare starting_offset_452 = starting_offset_885 + 22.5;
#declare offset_452 = starting_offset_452 - my_clock*parade_speed;

#if (offset_452 < 30 & offset_452 > -30)
    #include "452 - Mobile Tracking Station.inc"
    object { vehicle_452   translate <0, 0, offset_452> }
#end


   Oh, and I just had an evil thought. If time is no concern and/or you have
infinite patience, a CSG 'difference' box edge at <0, 0, -2800> could also
be used to make your train disappear. This effect would be really cool,
kinda Tron-esque. (Or at least that's what the lil' devil on my shoulder is
telling me.)



In lugnet.cad.ray, Roland Melkert writes:
Funny, I was thinking about this myself yesterday while testing some
stuff. I think you've got to play around with major #IF structures based
upon the clock variable.

Roland.

Eduardo Vazquez Harte wrote:

I'm making an animation where I need to hide pieces of a trains as they pass
the end of a track "just like in simcity games" How can I tell pov-ray to hide a
piece when it gets to <0,0,-2800> if the trains goes from <0,0,300> and it ends
at <0,0,-3200>?




Message is in Reply To:
  Re: How can I hide an object in a frame?
 
Funny, I was thinking about this myself yesterday while testing some stuff. I think you've got to play around with major #IF structures based upon the clock variable. Roland. (...) (22 years ago, 17-Jun-02, 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