POV-Ray : Newsgroups : povray.newusers : a table base and having problems with modelling : Re: a table base and having problems with modelling Server Time
4 Nov 2024 21:23:43 EST (-0500)
  Re: a table base and having problems with modelling  
From: Warp
Date: 6 Sep 2001 18:58:37
Message: <3b97ff9d@news.povray.org>
Wade <Zav### [at] aolcom> wrote:
: My second question is: how do I model a winged-back chair?

  Perhaps the easiest way of modelling things like chairs for a beginner is
to use properly sized boxes (eg. one flat box is the seat, four long boxes
form the feet and so on). Better get accustomed with POV-Ray coordinate
system and modelling with simple primitives before even trying to model
smooth objects (which is difficult even for the pros).
  Here is an example of a simple chair made of boxes:


camera { location <-10,20,-30>/3 look_at 0 angle 35 }
light_source { <100,200,-300>, 1 }
plane { y,-2 pigment { checker rgb 1, rgb .5 } }

#declare Chair =
  union
  { box { <-1,0,-1><1,.2,1> translate y*2 }
    box { <-.1,0,-.1><.1,2,.1> translate <-.8,0,-.8> }
    box { <-.1,0,-.1><.1,2,.1> translate < .8,0,-.8> }
    box { <-.1,0,-.1><.1,2,.1> translate <-.8,0, .8> }
    box { <-.1,0,-.1><.1,2,.1> translate < .8,0, .8> }
    box { <-.08,0,-.08><.08,2,.08> translate <-.7,1.8,.9> }
    box { <-.08,0,-.08><.08,2,.08> translate < .7,1.8,.9> }
    box { <-1,0,0><1,1,-.1> translate <0,3,.9> }
  }

object
{ Chair
  pigment { rgb <.8,.6,.4> }
  rotate y*-20
  translate -y*2
}


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


Post a reply to this message

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