POV-Ray : Newsgroups : povray.advanced-users : Random rotation don't work ? : Re: Random rotation don't work ? Server Time
29 Jul 2024 20:28:22 EDT (-0400)
  Re: Random rotation don't work ?  
From: Warp
Date: 7 Mar 2002 12:43:41
Message: <3c87a6cd@news.povray.org>
Slime <noo### [at] hotmailcom> wrote:
> I believe all orientations are covered by just

> rotate 360*<rand(R1),rand(R2),rand(R3)>

  So give me a "rotate <A,B,C>" command which, when replacing the two rotates
with it in the scene below, will give the exact same image:

camera { location <1,2,-3> look_at y*.5 angle 35 }
light_source { <100,250,-50>, 1 }
plane { y,0 pigment { checker rgb 1, rgb .5 } }

#declare Object =
  intersection
  { cone { 0,.5, y,.2 }
    box { <-.5,-.01,0><.5,1.01,.5> }
    pigment { rgb x+y }
  }

object
{ Object
  rotate y*45 rotate x*45
}


-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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