POV-Ray : Newsgroups : povray.newusers : Follow the bouncing object : Re: Follow the bouncing object Server Time
15 May 2024 03:51:49 EDT (-0400)
  Re: Follow the bouncing object  
From: Bald Eagle
Date: 22 Mar 2014 20:08:25
Message: <532e25f9$1@news.povray.org>
The macro is clean.  It's only 3 lines.
Object{frame}, text, and object {door}.  Done.
Not much to keep track of.

> In your sub-scene, you need to have an union binding all parts.
> Otherwise, your translate and rotate will miss some, or most, elements.

Well, I essentially do just that:  When the subscene gets invoked as an 
included file, Povray should just act like the whole file was pasted 
into the main scene in place of the include directive.  So when I

	#declare Subscene = union {#include "subscene.inc"}
Then essentially the whole subscene file is encapsulated in the union 
directive.

Then this:
	object {Subscene rotate y*90 translate <19*8*Feet, 0, 7*8*Feet>}

should give exactly the same results as what you're suggesting since the 
entire subscene file is the object being rotated and translated.  And it 
works, because there's a LOT of stuff in that subscene file.

> Alain


Post a reply to this message

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