POV-Ray : Newsgroups : povray.binaries.animations : Re: Mechanical Glow Dangler : Re: Mechanical Glow Dangler Server Time
19 Jul 2024 11:28:50 EDT (-0400)
  Re: Mechanical Glow Dangler  
From: Christoph Hormann
Date: 29 Jan 2003 08:18:39
Message: <3E37D4AB.B801B506@gmx.de>
Philippe_Gibone wrote:
> 
> Hi Andrew,
> 
> I've been playing around with the mechsim patch for a while, but did'nt find
> out how to give different textures to different masses : how did you do that
> ?

You can access the mass positions everywhere in the scene file so you can
place spheres, glows or anything else at their position.  Something like:

#local Cnt=0;

#while (Cnt<mechsim:mass_count)
  sphere {
    mechsim:mass(Cnt):position,
    mechsim:mass(Cnt):radius
  }
  #local Cnt=Cnt+1;
#end

will show all masses - nothing prevents you from texturing them
differently.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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