POV-Ray : Newsgroups : povray.unofficial.patches : Clothsim constraints question, Megapov 1.21 : Clothsim constraints question, Megapov 1.21 Server Time
5 May 2024 22:08:07 EDT (-0400)
  Clothsim constraints question, Megapov 1.21  
From: Grassblade
Date: 14 Mar 2007 16:35:01
Message: <web.45f869e327503f4b62353b880@news.povray.org>
I'm looking at the append.pov code and I don't understand how the
constraints work. 4.1.1 in the manual doesn't mention constraints at all,
and the 2.4.3.1 bit seems to be talking to people who already know how it
all works.

I gather the relevant code is:
  #write(file, 39*Precision, ", 0.0, 0.0, 0.0,n")
  #write(file, 38*Precision, ", 0.5, 0.5, 0.5,n")
  #write(file, (40+38)*Precision, ", 0.5, 0.5, 0.5,n")
  #write(file, (40+39)*Precision, ", 0.5, 0.5, 0.5,n")

Precision is 2, so what does 39*2 mean? It doesn't seem to be coordinates,
as far as I can tell, but then how do I tell MegaPOV I want the cloth's
center point to remain fixed? I do get the 0.0,0.0,0.0 bit, it's the
localisation of points that baffles me.


Post a reply to this message

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