POV-Ray : Newsgroups : povray.general : Pov-ray and The Sims : Re: Pov-ray and The Sims Server Time
9 Aug 2024 23:27:38 EDT (-0400)
  Re: Pov-ray and The Sims  
From: Greg M  Johnson
Date: 20 Apr 2000 13:51:43
Message: <38FF42A3.EDFEAF57@my-dejanews.com>
Steven Jones wrote:

> The new game 'The Sims' from Maxis lets you use BMP files as wallpaper in
> the character's homes.  Does anyone know how to use POV-Ray to generate a
> seamless pattern for this purpose?

Let's see:

// put your blobman, tree.inc, etc., object definition here:
#declare OldeObjecte = ........

//  n is  a number between 0.8x and 5.0x  your OldeObjecte's largest
dimension, depending on taste.
#declare n=................

camera{
        location<0,0,-30>
        look_at 0
        orthographic
        up<0,n,0>
        right <n*320/240,0,0>   //this will work for any image proportional
to 320x240.
       }
#declare xn=0;
#while(xn<5)
   #declare yn=0;
   #while (yn<5)
      object{OldeObjecte
                 translate n*<xn-2,yn-2,0>
                 }
   #declare yn=yn+1;
   #end
#declare yn=0;
#declare xn=xn+1;
#end

// Add lighting and background to taste.


Post a reply to this message

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