home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / graphics / 9626 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.2 KB

  1. Xref: sparky comp.graphics:9626 sci.image.processing:677
  2. Newsgroups: comp.graphics,sci.image.processing
  3. Path: sparky!uunet!munnari.oz.au!uniwa!swanee.ee.uwa.oz.au!phillips
  4. From: phillips@swanee.ee.uwa.oz.au (Christopher Phillips)
  5. Subject: Re: Creating texture tiles
  6. Message-ID: <phillips.716202247@infs4>
  7. Sender: news@swanee.ee.uwa.oz.au
  8. Organization: Elec Eng, Univ of Western Australia
  9. References: <1992Sep4.103405.25183@eye.com> <1598@lysator.liu.se>
  10. Date: 11 Sep 92 09:04:07 GMT
  11. Lines: 22
  12.  
  13. (Hi zap!)
  14.  
  15. One method that works well for creating seamless tilings that
  16. requires little work and produces good results is to take
  17. a texture function you know and like, then instead of feeding
  18. it X and Y, you feed it the result of putting X and Y through
  19. periodic functions like sin and cos.
  20. Eg:
  21.  
  22. pixel=textureat(sin(x),cos(x),sin(y),cos(y));
  23.  
  24. This will take a bi-disk(?) shaped cross section of a 4d texture
  25. space and map it on to the plane in a way that repeates every 2pi 
  26. units in the X and Y directions.
  27.  
  28. Have fun all,
  29.  
  30. --
  31. Christopher Jam    __________________________________________________
  32. phillips@swanee.ee.uwa.oz.au            c64 forever!!!!
  33. 300,000 c64's were sold in the fiscal year ending June 1991 :)
  34. ------------------------------------------------------------------
  35.