POV-Ray : Newsgroups : povray.general : Feature Request - Texture Override, Help Request : Re: Feature Request - Texture Override, Help Request Server Time
21 May 2024 13:23:23 EDT (-0400)
  Re: Feature Request - Texture Override, Help Request  
From: "Jérôme M. Berger"
Date: 18 Jan 2008 16:27:24
Message: <479119bc$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SharkD wrote:
 I did this to illustrate the fact that, in order for the texture
not to repeat
> for each section, the value for S must be passed to the texture. This is not
> possible if the declaration of the object comes before the declaration of the
> parameter, S.
> 
> This was in response to your remark that my *earlier* suggestion would not work
> for this reason. If you combine the two methods (e.g., define an object that
> gets re-used for each section, apply a texture to each re-use of this object
> that takes into account the parameter S), it will work.
> 
	In fact, you can manage something similar with a single texture
using the "repeat" warp. For example (untested, so may need some
tweaking):

texture {
   pigment {p_Stripe_z}
   translate x*.5
   scale 10
   translate -10*x

   warp {
      repeat x*(8+l_Gap)
   }
   warp {
      repeat z*21*(4+l_Gap)/12
      offset x*(8+l_Gap)/2
   }
}

	See: http://povray.org/documentation/view/3.6.1/407/

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeb### [at] freefr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHkRm7d0kWM4JG3k8RAoPhAJ93dy+sdTo8CXVKRdpIN4AYGi4DBACfRZQR
NfqMxXhb4jBmgUz68G6NH8k=
=Rtxv
-----END PGP SIGNATURE-----


Post a reply to this message

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