Re: [R] rgl and lighting

2010-09-10 Thread james.foadi
Alt Email: j.fo...@imperial.ac.uk -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Thu 09/09/2010 18:00 To: Foadi, James (Imperial Coll.,RAL,DIA) Cc: r-help@r-project.org Subject: Re: [R] rgl and lighting On 09/09/2010 12:02 PM, james.fo

Re: [R] rgl and lighting

2010-09-09 Thread Duncan Murdoch
On 09/09/2010 12:02 PM, james.fo...@diamond.ac.uk wrote: Dear R community (and Duncan more specifically), I can't work out how to make additional light sources work in rgl. Here is the example. First I create a cube and visualize it: > cubo<- cube3d(col="black") > shade3d(cubo) Next I posit

[R] rgl and lighting

2010-09-09 Thread james.foadi
Dear R community (and Duncan more specifically), I can't work out how to make additional light sources work in rgl. Here is the example. First I create a cube and visualize it: > cubo <- cube3d(col="black") > shade3d(cubo) Next I position the viewpoint at theta=0 and phi=30: > view3d(theta=0,ph